Presentation is loading. Please wait.

Presentation is loading. Please wait.

CPSC150 Java Lynn Lambert Create your own GUI From lab3 From lab3 Build an empty Window with 4 button Build an empty Window with 4 button Each button should.

Similar presentations


Presentation on theme: "CPSC150 Java Lynn Lambert Create your own GUI From lab3 From lab3 Build an empty Window with 4 button Build an empty Window with 4 button Each button should."— Presentation transcript:

1 CPSC150 Java Lynn Lambert Create your own GUI From lab3 From lab3 Build an empty Window with 4 button Build an empty Window with 4 button Each button should pop up a different kind of JOptionPane Each button should pop up a different kind of JOptionPane

2 CPSC150 Java Lynn Lambert Adding JOptionPanes Go to http://java.sun.com/j2se/1.4.2/docs/api/javax/swi ng/package-summary.html Go to http://java.sun.com/j2se/1.4.2/docs/api/javax/swi ng/package-summary.html http://java.sun.com/j2se/1.4.2/docs/api/javax/swi ng/package-summary.html http://java.sun.com/j2se/1.4.2/docs/api/javax/swi ng/package-summary.html Find JOptionPane and read it Find JOptionPane and read it Create the following 4 types of JOptionPanes Create the following 4 types of JOptionPanes a showConfirmDialog a showConfirmDialog a ShowInputDialog (print the resulting message using System.out.println) a ShowInputDialog (print the resulting message using System.out.println) a ShowMessageDialog a ShowMessageDialog a showOptionDialogu a showOptionDialogu

3 CPSC150 Java Lynn Lambert More Add icons to the JOptionPane Add icons to the JOptionPane (you can find ones you like or use jpegs in your programming assignments) Go back to your original button window. Use different layout managers to arrange them Go back to your original button window. Use different layout managers to arrange them Add a JLabel to the bottom of your button window Add a JLabel to the bottom of your button window Loop up another component (e.g., JRadioButton) and implement it Loop up another component (e.g., JRadioButton) and implement it

4 CPSC150 Java Lynn Lambert Finally turn in your blueJ code as classwork assignment 6 turn in your blueJ code as classwork assignment 6


Download ppt "CPSC150 Java Lynn Lambert Create your own GUI From lab3 From lab3 Build an empty Window with 4 button Build an empty Window with 4 button Each button should."

Similar presentations


Ads by Google