ActionListener a1 = new ActionListener()
...
UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
...
};
ActionListener a2 = new ActionListener()
...
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
...
};
ActionListener a2 = new ActionListener()
...
UIManager.setLookAndFeel("javax.swing.plaf.synth.SynthLookAndFeel");
...
};
ActionListener a1 = new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
try //überwachter Code
{
UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
SwingUtilities.updateComponentTreeUI(Swing2.this);
}
catch (Exception button1)
{
button1.printStackTrace();
}
}
};
...
class LaFListener implements ActionListener {
String laf;
public LaFListener(String laf) {
this.laf = laf;
}
public void actionPerformed(ActionEvent ae) {
try {
UIManager.setLookAndFeel(laf);
SwingUtilities.updateComponentTreeUI(Swing2.this);
}
catch (Exception e) {
e.printStackTrace();
}
}
}
ActionListener a1 = new LaFListener("...");
Mit Java relevanten Text einer Webseite anzeigen lassen
JohnArenque 31.01.2007 - 106 Hits - 4 Antworten
iceweasel / firefox: java installation
Sichtbarer 12.06.2007 - 220 Hits - 5 Antworten
java
petty 16.09.2007 - 111 Hits - 2 Antworten
Phex - java 1.5.0
Wolkra 20.10.2007 - 115 Hits - 4 Antworten
*.java, wie aufrufen?
Marilana 17.01.2008 - 156 Hits - 2 Antworten