Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ezhov-da/b64673fc6d407c55289dbe7c03a4333b to your computer and use it in GitHub Desktop.
Save ezhov-da/b64673fc6d407c55289dbe7c03a4333b to your computer and use it in GitHub Desktop.
java вставляем форму в приложение
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