mirror of
https://github.com/2martens/uni.git
synced 2026-05-06 19:36:26 +02:00
ID-5: Aufgabe 2 bearbeitet
This commit is contained in:
28
id/blatt5/code/wam/Main.java
Normal file
28
id/blatt5/code/wam/Main.java
Normal file
@ -0,0 +1,28 @@
|
||||
import javax.swing.SwingUtilities;
|
||||
import javax.swing.UIManager;
|
||||
import javax.swing.UnsupportedLookAndFeelException;
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] argv) {
|
||||
final Umrechner rechner = new Umrechner();
|
||||
SwingUtilities.invokeLater(new Runnable()
|
||||
{
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
try
|
||||
{
|
||||
UIManager.setLookAndFeel(UIManager
|
||||
.getSystemLookAndFeelClassName());
|
||||
}
|
||||
catch (ClassNotFoundException | InstantiationException
|
||||
| IllegalAccessException
|
||||
| UnsupportedLookAndFeelException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
new HauptWerkzeug(rechner);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user