Package javax.swing

Examples of javax.swing.JFrame.invalidate()


        } else {
            frame.applyComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);

        }
        frame.getRootPane().revalidate();
        frame.invalidate();
        frame.validate();
        frame.repaint();

    }
View Full Code Here


   
    frame.setLayout(new BorderLayout());
    frame.add(p, BorderLayout.CENTER);
   
    frame.setSize(500, 500);
    frame.invalidate();
    p.zoomFit();
   
    frame.setVisible(true);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  }
View Full Code Here

      public void actionPerformed(ActionEvent e) {
        try {
          LookAndFeelInfo info = (LookAndFeelInfo) box.getSelectedItem();
          UIManager.setLookAndFeel(info.getClassName());
          SwingUtilities.updateComponentTreeUI(f);
          f.invalidate();
          f.repaint();
        } catch (Exception e1) {
          SimSystem.report(e1);
        }
      }
View Full Code Here

        JMenuBar menubar = new JMenuBar();
        menubar.add(storyMenu);

        frame.setJMenuBar(menubar);
        frame.invalidate();
        frame.validate();
    }

    public static Story getDefaultStory() {
        Document document = Story.importStoryDocument(new String[]{});
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.