ciao!
questo è il main:
e ho levato la riga nel jframe.codice:public class Main { /** * @param args the command line arguments */ public static void main(String args[]) { try { System.setProperty("apple.laf.useScreenMenuBar", "true"); System.setProperty("com.apple.mrj.application.apple.menu.about.name", "Test"); UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) { JOptionPane.showMessageDialog(null, ex.getMessage()); } java.awt.EventQueue.invokeLater(new Runnable() { @Override public void run() { FrameMain fm = new FrameMain(); fm.setVisible(true); fm.setResizable(false); } }); } }
così facendo si mette a tutto schermo, per è ridimensionabile.
se invece sposto la riga sopra a setVisible allora non è ridimensionabile ma neanche a tutto schermo.

Rispondi quotando