Download
slide1 n.
Skip this Video
Loading SlideShow in 5 Seconds..
User interface PowerPoint Presentation
Download Presentation
User interface

User interface

86 Views Download Presentation
Download Presentation

User interface

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. User interface

  2. Widget toolkits • AWT • Swing • JavaFX • SWT (Eclipse) • ...

  3. AWT and Swing

  4. Look&Feel • CrossPlatformLookAndFeel • SystemLookAndFeel (Windows, Motif/GTK) • Synth (Nimbus)

  5. Look&Feel try { UIManager.setLookAndFeel( "javax.swing.plaf.metal.MetalLookAndFeel"); // UIManager.setLookAndFeel( // UIManager.getSystemLookAndFeelClassName()); // SwingUtilities.updateComponentTreeUI(this); } catch (Exception e){ //Exception handle }

  6. JTable Demo Metal

  7. JTable Demo Nimbus

  8. JTable Demo Windows

  9. Hello, World! import javax.swing.*; public final class HelloWorld implements Runnable { public static void main(String[] args) { SwingUtilities.invokeLater(new HelloWorld()); } public void run() { JFrame f = new JFrame("Hello, World!"); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.add(new JLabel("Hello World")); f.pack(); f.setVisible(true); } }

  10. AWT Layout managers

  11. Swing Layout managers

  12. Q&A