Package javax.swing

Examples of javax.swing.JFrame.repaint()


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

    }

    protected JMenu createLookAndFeelMenu() {
        JMenu menu = new JMenu();
View Full Code Here


    jDialog.setContentPane(panelWait);
    jDialog.setPreferredSize(new Dimension(200, 100));
    jDialog.setLocation(GUIUtils.getCenterPositionForComponent(200, 100));
    jDialog.pack();
    jDialog.validate();
    jDialog.repaint();
    return jDialog;
  }
 
}
View Full Code Here

                if (display != null) {
                        display.setVisible(visibility);
                        if (dispose) {
                                display.dispose();
                        } else {
                                display.repaint();
                        }
                }
                return id;
        }
View Full Code Here

    jf.getContentPane().add(setBt, BorderLayout.SOUTH);
    jf.getContentPane().setFont( new java.awt.Font( "SansSerif", java.awt.Font.PLAIN, 11) );
    jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    jf.setSize(800, 600);
    jf.setVisible(true);
    jf.repaint();
  }

 
  /**
     Internal class responsible for displaying the actual matrix
View Full Code Here

        frame.setVisible(true);
        frame.setLocationRelativeTo(null);//center the frame on the screen

        char c;
        do {
            frame.repaint();
            c = key.next().getKeyChar();
            label.setText("\nKey pressed: " + c);
        } while (true);
    }
}
View Full Code Here

    jf.getContentPane().add(setBt, BorderLayout.SOUTH);
    jf.getContentPane().setFont( new java.awt.Font( "SansSerif", java.awt.Font.PLAIN, 11) );
    jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    jf.setSize(800, 600);
    jf.setVisible(true);
    jf.repaint();
  }

 
  /**
     Internal class responsible for displaying the actual matrix
View Full Code Here

        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

    jf.getContentPane().add(setBt, BorderLayout.SOUTH);
    jf.getContentPane().setFont( new java.awt.Font( "SansSerif", java.awt.Font.PLAIN, 11) );
    jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    jf.setSize(800, 600);
    jf.setVisible(true);
    jf.repaint();
  }

 
  /**
     Internal class responsible for displaying the actual matrix
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.