Package javax.swing

Examples of javax.swing.JPanel.invalidate()


   * @return
   */
  private JPanel createProgressBarPanel() {
    JPanel pbPanel = new JPanel();
    pbPanel.setLayout(new BoxLayout(pbPanel, BoxLayout.X_AXIS));
    pbPanel.invalidate();
    pbPanel.setVisible(true);
    pbPanel.add(GuiConstructionUtilities.newHorizontalFiller(15));
    pbPanel.add(progressBar);
    pbPanel.add(GuiConstructionUtilities.newHorizontalFiller(15));
    return pbPanel;
View Full Code Here


   */
  public static Object info(String htmlMessage, String[] buttonCaptions,
      String dialogCaption) {
    JPanel messagePanel = new JPanel();
    messagePanel.setVisible(true);
    messagePanel.invalidate();
    messagePanel.setLayout(new GridLayout(1, 1));
    // messagePanel.setBorder(new LineBorder(Color.black,1));

    JEditorPane editorPane = setupHtmlComponent(htmlMessage);
    messagePanel.add(editorPane);
View Full Code Here

  }

  public static JEditorPane setupHtmlComponent(String htmlMessage) {
    JPanel messagePanel = new JPanel();
    messagePanel.setVisible(true);
    messagePanel.invalidate();
    messagePanel.setLayout(new GridLayout(1, 1));

    // Setup the background color HTML fragment
    Color BkColor = messagePanel.getBackground();
    StringBuffer ColorBuf = new StringBuffer();
View Full Code Here

    captionLabel.invalidate();
    captionLabel.setVisible(true);
    panel.add(captionLabel, BorderLayout.NORTH);

    panel.add(comp);
    panel.invalidate();
    panel.setVisible(true);
    return panel;
  }
}
View Full Code Here

     * op.setOptions(new Object[] { });
     */

    // JDialog dlg = op.createDialog(null, caption);
    JPanel holder = new JPanel();
    holder.invalidate();
    holder.setVisible(true);
    holder.setLayout(new GridLayout(1, 1));
    holder.add(wrapperScrollPane);
    JDialog dlg = Dialog.newDialog(holder, 800, 600);
    FrameUtils.centerDialog(dlg);
View Full Code Here

     * op.setOptions(new Object[] { });
     */

    // JDialog dlg = op.createDialog(null, caption);
    JPanel holder = new JPanel();
    holder.invalidate();
    holder.setVisible(true);
    holder.setLayout(new GridLayout(1, 1));
    holder.add(wrapperScrollPane);
    JDialog dlg = Dialog.newDialog(holder, 800, 600);
    /*
 
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.