Last active
March 10, 2019 12:21
-
-
Save ezhov-da/926c0b5bb416ecc5fbc66da32bfa7d4f to your computer and use it in GitHub Desktop.
java вставляем форму в приложение
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[code:]java[:code] | |
SwingUtilities.invokeLater(new Runnable() | |
{ | |
@Override | |
public void run() | |
{ | |
try | |
{ | |
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); | |
} catch (Throwable ex) | |
{ | |
// | |
} | |
JFrame frame = new JFrame("_________"); | |
frame.setSize(1000, 600); | |
frame.setLocationRelativeTo(null); | |
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | |
frame.setVisible(true); | |
} | |
}); | |
[/code] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment