Last active
March 10, 2019 12:15
-
-
Save ezhov-da/0d3c05484ba434bdc85043be4007e995 to your computer and use it in GitHub Desktop.
java jframe вставляем форму в приложение 1.8
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
import javax.swing.SwingUtilities; | |
import javax.swing.UIManager; | |
public class _____________ | |
{ | |
public static void main(String[] args) | |
{ | |
SwingUtilities.invokeLater(() -> | |
{ | |
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); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment