Tabnine Logo
VisualizationUtils.showComponent
Code IndexAdd Tabnine to your IDE (free)

How to use
showComponent
method
in
org.sing_group.gc4s.visualization.VisualizationUtils

Best Java code snippets using org.sing_group.gc4s.visualization.VisualizationUtils.showComponent (Showing top 20 results out of 315)

origin: sing-group/GC4S

/**
 * Shows a {@code JFrame} containing the specified {@code component} and 
 * frame extended {@code state}.
 * 
 * @param component the {@code Component} to show
 * @param state the extended state of the frame
 */
public static final void showComponent(Component component, int state) {
  showComponent(component, "", state);
}
origin: sing-group/GC4S

/**
 * Shows a {@code JFrame} containing the specified {@code component}.
 * 
 * @param component the {@code Component} to show
 */
public static final void showComponent(Component component) {
  showComponent(component, "");
}
origin: sing-group/GC4S

public static void main(String[] args) {
  showComponent(
    createJOptionPaneMessageDemooComponent(),
    "JOptionPaneMessage demo");
}
origin: sing-group/GC4S

  public static void main(String[] args) {
    JFileChooserPanel fileChooserPanel = new JFileChooserPanel(SAVE, "csv");

    /**
     * Uncomment the following line to hide the label.
     */
    /*
     * fileChooserPanel.getComponentLabelFile().setVisible(false);
     */

    showComponent(fileChooserPanel, "JFileChooserPanel demo");
  }
}
origin: sing-group/GC4S

  public static void main(String[] args) {
    showComponent(
      new JColorChooserButton(Color.LIGHT_GRAY),
      "JColorChooserButton demo"
    );
  }
}
origin: sing-group/GC4S

  public static void main(String[] args) {
    JPanel demoPanel = new JPanel(new GridLayout(2, 2));
    demoPanel.add(new JLabel("With limit 1:"));
    demoPanel.add(new JLimitedTextField("1", 1));
    demoPanel.add(new JLabel("With limit 5:"));
    demoPanel.add(new JLimitedTextField("12345", 5));
    demoPanel.setBorder(createEmptyBorder(5, 5, 5, 5));

    showComponent(demoPanel, "JLimitedTextField demo");
  }
}
origin: sing-group/GC4S

  public static void main(String[] args) {
    JTabbedPane demoPanel = new CloseableJTabbedPane();
    demoPanel.addTab("Tab 1", new JLabel("Tab 1"));
    demoPanel.addTab("Tab 2", new JLabel("Tab 2"));
    demoPanel.addTab("Tab 3", new JLabel("Tab 3"));
    demoPanel.setPreferredSize(new Dimension(300,200));

    showComponent(demoPanel, "CloseableJTabbedPane demo");
  }
}
origin: sing-group/GC4S

  public static void main(String[] args) {
    DoubleRangeInputPanel panel = new DoubleRangeInputPanel(0d, 3d);
    panel.addPropertyChangeListener(DoubleRangeInputPanel.PROPERTY_RANGE,
      e -> {
        System.err.println(e.getNewValue().toString());
      });
    showComponent(panel, "DoubleRangeInputPanel demo");
  }
}
origin: sing-group/GC4S

public static void main(String[] args) {
  setNimbusLookAndFeel();
  showComponent(new JScrollPane(getDemoTable()));
}
origin: sing-group/GC4S

public static void main(String[] args) {
  JFileChooserPanel fileChooserPanel1 = createJFileChooserPanel(); 
  fileChooserPanel1.setUseSharedLastFileFilter(true);
  JFileChooserPanel fileChooserPanel2 = createJFileChooserPanel(); 
  fileChooserPanel2.setUseSharedLastFileFilter(true);
  JPanel panel = new JPanel(new GridLayout(0, 1));
  panel.add(fileChooserPanel1);
  panel.add(fileChooserPanel2);
  showComponent(panel, "JFileChooserPanel demo");
}
origin: sing-group/GC4S

  public static void main(String[] args) {
    JInputList inputList = new JInputList();
    inputList.setElementIntroductionEnabled(true);
    showComponent(inputList, "JInputList demo");
  }
}
origin: sing-group/GC4S

  public static void main(String[] args) {
    java.util.Locale.setDefault(java.util.Locale.ENGLISH);
    
    RowHeaderExtendedJXTable table = 
      new RowHeaderExtendedJXTable(dataValues, columnNames, rowNames);
    table.setColumnControlVisible(true);
    table.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 12));
    
    showComponent(new JScrollPane(table), "RowHeaderJXTable demo");
  }
}
origin: sing-group/GC4S

  public static void main(String[] args) throws InvalidClassException {
    List<String> data = asList(
      new String[] { "a", "ab", "abc", "abcd", "abcde" });

    ExtendedDefaultListModel<String> listModel = new ExtendedDefaultListModel<String>();
    listModel.addElements(data);

    JList<String> list = new JList<String>(listModel);

    JListPanel<String> listPanel = 
      new JListPanel<String>(list, false, true);

    showComponent(listPanel, "JListPanel with filter demo");
  }
}
origin: sing-group/GC4S

  public static void main(String[] args) {
    CsvPanel csvPanel = new CsvPanel();
    csvPanel.addCsvListener(new CsvListener() {

      @Override
      public void onFormatEdited(ChangeEvent event) {
        System.err.println("CSV format edited. Is valid: "
          + csvPanel.isValidFormat());
      }
    });
    showComponent(csvPanel, "CsvPanel demo");
  }
}
origin: sing-group/GC4S

  public static void main(String[] args) {
    JLabel verticalLabel = new JLabel("A vertical label");
    verticalLabel.setUI(new VerticalLabelUI(false));
    showComponent(
      createPanelAndCenterComponent(verticalLabel),
      "JVerticalLabel demo"
    );
  }
}
origin: sing-group/GC4S

public static void main(String[] args) {
  ColorLegend colorLegend = new ColorLegend(getColors(), VERTICAL);
  showComponent(
    createPanelAndCenterComponent(colorLegend),
    "ColorLegend demo"
  );
}
origin: sing-group/GC4S

public static void main(String[] args) {
  java.util.Locale.setDefault(java.util.Locale.ENGLISH);
  
  FilterableJXTable table = new FilterableJXTable(dataValues, columnNames);
  table.setColumnControlVisible(true);
  table.setColumVisibilityActionsEnabled(false);
  
  showComponent(createDemoPanel(table), "FilterableJXTable demo");
}
origin: sing-group/GC4S

  public static void main(String[] args) {
    RangeInputPanel rangeInputPanel = new RangeInputPanel(0,10);
    
    rangeInputPanel.addChangeListener((e) -> {
      System.err.println("Range changed to: ["
        + rangeInputPanel.getMinValue() + ", "
        + rangeInputPanel.getMaxValue() + "]");
    });
    
    showComponent(rangeInputPanel, "RangeInputPanel demo");
  }
}
origin: sing-group/GC4S

  public static void main(String[] args) {
    IntegerRangeInputPanel rangeInputPanel = 
        new IntegerRangeInputPanel(0, 10);
    
    rangeInputPanel.addChangeListener((e) -> {
      System.err.println("Range changed to: ["
        + rangeInputPanel.getMinValue() + ", "
        + rangeInputPanel.getMaxValue() + "]");
    });

    showComponent(rangeInputPanel, "IntegerRangeInputPanel demo");
  }
}
origin: sing-group/GC4S

  public static void main(String[] args) {
    List<Bean> beans = asList(new Bean("Row 1", 1), new Bean("Row 2", 2));
    JXTable table = new JXTable(new BeanTableModel<Bean>(beans));
    showComponent(
      createPanelAndCenterComponent(new JScrollPane(table)),
      "BeanTableModel demo");
  }
}
org.sing_group.gc4s.visualizationVisualizationUtilsshowComponent

Javadoc

Shows a JFrame containing the specified component.

Popular methods of VisualizationUtils

  • setNimbusLookAndFeel
    Sets the Nimbus look and feel.
  • createPanelAndCenterComponent
    Returns a new JPanel with component in the center.
  • setNimbusKeepAlternateRowColor
    Sets the value of the property Nimbus.keepAlternateRowColor in UIManager.
  • showDialog
    Shows dialog and ends the application after it is closed.

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • getSystemService (Context)
  • getSharedPreferences (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Kernel (java.awt.image)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Notification (javax.management)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now