39
Netbeans (with rice…) @ UCSD, 2008 Cicero Silva www.cicerosilva.com

Lecture about Netbeans for Art & Technology at UCSD

Embed Size (px)

DESCRIPTION

Lecture about Netbeans for Art & Technology at Calit2, UCSD, 2008.

Citation preview

Page 1: Lecture about Netbeans for Art & Technology at UCSD

Netbeans (with rice…)

@ UCSD, 2008Cicero Silva

www.cicerosilva.com

Page 4: Lecture about Netbeans for Art & Technology at UCSD

and, finally

• Netbeans, from netbeans.org . You can install the latest version, 6.1 (which is not stable and can crash some old Windows Mobile OS and also Symbiam systems…)

http://download.netbeans.org/netbeans/6.1/final/

Page 5: Lecture about Netbeans for Art & Technology at UCSD

Hello World!

• Your first Java application with Netbeans:

• Netbeans is a IDE (Integrated Development Environment), which comes with a Mobility package/interface for Java apps;

• The JAVA app for cell phones is called MIDlet, also called MIDP (Mobile Information Device Profile)

Page 6: Lecture about Netbeans for Art & Technology at UCSD

My first…

• FILE > New Project (CTRL+SHIFT+N)• Categories: MOBILITY• Projects: MIDP APPLICATION

Page 7: Lecture about Netbeans for Art & Technology at UCSD
Page 8: Lecture about Netbeans for Art & Technology at UCSD
Page 9: Lecture about Netbeans for Art & Technology at UCSD
Page 10: Lecture about Netbeans for Art & Technology at UCSD

• Right click on the “Projects/HelloUCSD”

Page 11: Lecture about Netbeans for Art & Technology at UCSD
Page 12: Lecture about Netbeans for Art & Technology at UCSD

• Select “Properties”• Select “Creating JAR”: the NAME of

the FILE that users will download from your website to their cell phones…

Page 13: Lecture about Netbeans for Art & Technology at UCSD
Page 14: Lecture about Netbeans for Art & Technology at UCSD

Obfuscating…

• If you are pro Intellectual Property, it’s better use this in the level 10, but be careful ‘cause you can crash some Windows Mobile phones and also some Blackberry’s…

Page 15: Lecture about Netbeans for Art & Technology at UCSD
Page 16: Lecture about Netbeans for Art & Technology at UCSD

• Select “Deploying” to save a copy of your project and select a “Deployment Method”. You can chose “FILE”, publish it online using FTP (you’ll need to set up an account..) or send it to a cell phone device…it also has an option to send it to Windows cell phone environments…

Page 17: Lecture about Netbeans for Art & Technology at UCSD
Page 18: Lecture about Netbeans for Art & Technology at UCSD

Inserting images

• Drag and Drop a “SplashScreen” cell below your “form” cell…

• Click on the name of the “SplashScreen” cell and rename it…

Page 19: Lecture about Netbeans for Art & Technology at UCSD
Page 20: Lecture about Netbeans for Art & Technology at UCSD

• Click in the “exit command” and delete it from the “form” cell…

Page 21: Lecture about Netbeans for Art & Technology at UCSD
Page 22: Lecture about Netbeans for Art & Technology at UCSD

• Drag and Drop a “ScreenCommand” cell into the “form” cell…

Page 23: Lecture about Netbeans for Art & Technology at UCSD
Page 24: Lecture about Netbeans for Art & Technology at UCSD

• In the “Screen Commands Properties”, on your right, select “TYPE” and OK.

• Click in the option “Action” and where you read “do nothing”, click twice and then select “go to previous…”

Page 25: Lecture about Netbeans for Art & Technology at UCSD
Page 26: Lecture about Netbeans for Art & Technology at UCSD
Page 27: Lecture about Netbeans for Art & Technology at UCSD

• Drag the arrow and point it to the cell that you want to send the “command”

Page 28: Lecture about Netbeans for Art & Technology at UCSD
Page 29: Lecture about Netbeans for Art & Technology at UCSD
Page 30: Lecture about Netbeans for Art & Technology at UCSD

• Click twice on the SplashScreen name option and rename it (it’ll be thename of the class)

• Click twice in the option “Commands”

Page 31: Lecture about Netbeans for Art & Technology at UCSD
Page 32: Lecture about Netbeans for Art & Technology at UCSD
Page 33: Lecture about Netbeans for Art & Technology at UCSD

• Click on “image not specified” and select the image by clicking “add”

Page 34: Lecture about Netbeans for Art & Technology at UCSD
Page 35: Lecture about Netbeans for Art & Technology at UCSD
Page 36: Lecture about Netbeans for Art & Technology at UCSD
Page 37: Lecture about Netbeans for Art & Technology at UCSD
Page 38: Lecture about Netbeans for Art & Technology at UCSD

suggestions

• images: if you want your project running on 90% of the cell phones, I suggest that you use 30x30 or 40x40px (always PNG format)

• Text: avoid embedded fonts (90% of the cell phones will leak memory (sometimes, reboot many many times the system…)

• Draw your project first, on a MAP, using UML or something like, or just the same orientated object model of Netbeans…

Page 39: Lecture about Netbeans for Art & Technology at UCSD

Thanks!