Lecture about Netbeans for Art & Technology at UCSD


Published on

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

Published in: Education, Technology
1 Comment
  • Price & Review Motorola Krave ZN4 Verizon


    Review & Price Motorola Krave ZN4 Verizon

    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Lecture about Netbeans for Art & Technology at UCSD

  1. 1. Netbeans (with rice…) @ UCSD, 2008 Cicero Silva www.cicerosilva.com
  2. 2. First…downloads… <ul><li>To run Netbeans, you’ll need: </li></ul><ul><li>JDK: Java Development Kit, from: </li></ul><ul><li>http: //java . sun . com/javase/downloads/ea . jsp </li></ul>
  3. 3. and….. <ul><li>J2ME (now Java Wireless Toolkit), to test your MIDlets: </li></ul><ul><li>http: //java . sun . com/products/sjwtoolkit/download . html ? feed=JSC </li></ul>
  4. 4. and, finally <ul><li>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…) </li></ul><ul><li>http: //download . netbeans . org/netbeans/6 .1/final/ </li></ul>
  5. 5. Hello World! <ul><li>Your first Java application with Netbeans: </li></ul><ul><li>Netbeans is a IDE (Integrated Development Environment), which comes with a Mobility package/interface for Java apps; </li></ul><ul><li>The JAVA app for cell phones is called MIDlet, also called MIDP (Mobile Information Device Profile) </li></ul>
  6. 6. My first… <ul><li>FILE > New Project (CTRL+SHIFT+N) </li></ul><ul><li>Categories: MOBILITY </li></ul><ul><li>Projects: MIDP APPLICATION </li></ul>
  7. 10. <ul><li>Right click on the “Projects/HelloUCSD” </li></ul>
  8. 12. <ul><li>Select “Properties” </li></ul><ul><li>Select “Creating JAR”: the NAME of the FILE that users will download from your website to their cell phones… </li></ul>
  9. 14. Obfuscating… <ul><li>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… </li></ul>
  10. 16. <ul><li>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… </li></ul>
  11. 18. Inserting images <ul><li>Drag and Drop a “SplashScreen” cell below your “form” cell… </li></ul><ul><li>Click on the name of the “SplashScreen” cell and rename it… </li></ul>
  12. 20. <ul><li>Click in the “exit command” and delete it from the “form” cell… </li></ul>
  13. 22. <ul><li>Drag and Drop a “ScreenCommand” cell into the “form” cell… </li></ul>
  14. 24. <ul><li>In the “Screen Commands Properties”, on your right, select “TYPE” and OK. </li></ul><ul><li>Click in the option “Action” and where you read “do nothing”, click twice and then select “go to previous…” </li></ul>
  15. 27. <ul><li>Drag the arrow and point it to the cell that you want to send the “command” </li></ul>
  16. 30. <ul><li>Click twice on the SplashScreen name option and rename it (it’ll be thename of the class) </li></ul><ul><li>Click twice in the option “Commands” </li></ul>
  17. 33. <ul><li>Click on “image not specified” and select the image by clicking “add” </li></ul>
  18. 38. suggestions <ul><li>images: if you want your project running on 90% of the cell phones, I suggest that you use 30x30 or 40x40px (always PNG format) </li></ul><ul><li>Text: avoid embedded fonts (90% of the cell phones will leak memory (sometimes, reboot many many times the system…) </li></ul><ul><li>Draw your project first, on a MAP, using UML or something like, or just the same orientated object model of Netbeans… </li></ul>
  19. 39. Thanks!