Last active
March 10, 2019 12:21
-
-
Save ezhov-da/b64673fc6d407c55289dbe7c03a4333b 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
import javax.swing.JFrame; | |
import javax.swing.SwingUtilities; | |
import javax.swing.UIManager; | |
public class _____________ | |
{ | |
public static void main(String[] args) | |
{ | |
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); | |
} | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment