congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
VisualizationUtils
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.sing_group.gc4s.visualization.VisualizationUtils (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

public static void main(String[] args)  {
  setNimbusLookAndFeel();
  showComponent(createButton(), "JButtonBuilder 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)  {
    showDialog(
      new ItemSelectionDialog<>(new JFrame(), asList("A", "B", "C"), 2)
    );
  }
}
origin: sing-group/GC4S

/**
 * Sets the value of the property {@code Nimbus.keepAlternateRowColor} in
 * {@code UIManager} to {@code true}.
 * 
 */
public static void setNimbusKeepAlternateRowColor() {
  setNimbusKeepAlternateRowColor(Boolean.TRUE);
}
origin: sing-group/GC4S

  @Override
  public void actionPerformed(ActionEvent e) {
    String tabName = "Tab "
      + String.valueOf(tabbedPane.getTabCount() + 1);
    tabbedPane.addTab(tabName,
      createPanelAndCenterComponent(new JLabel(tabName)));
  }
});
origin: sing-group/GC4S

public static void main(String[] args) {
  Wizard dialog = 
    new Wizard(new JFrame(), "Demo Wizard", getWizardSteps()) {
      private static final long serialVersionUID = 1L;

      @Override
      protected void wizardFinished() {
        System.err.println("Wizard finished!");
        super.wizardFinished();
      }
    };
  showDialog(dialog);
}
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) {
  setNimbusLookAndFeel();
  showComponent(new JScrollPane(getDemoTable()));
}
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) throws InvalidClassException {
    ListSelectionDialog<String> dialog = new ListSelectionDialog<>(
      new JFrame(), emptyList(),
      asList(new String[] { "a", "b", "c", "d" }));

    showDialog(dialog);
  }
}
origin: sing-group/GC4S

public static void main(String[] args) {
  showComponent(
    createJOptionPaneMessageDemooComponent(),
    "JOptionPaneMessage 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) {
    String[] items = {
      "Item 1: this item needs more width to be visible",
      "Item 2: this item also needs more width to be visible", 
    };
    ExtendedJComboBox<String> combobox = 
      new ExtendedJComboBox<String>(items);
    combobox.setPreferredSize(new Dimension(180, 20));
    combobox.setAutoAdjustWidth(true);
    
    JPanel demoPanel = createPanelAndCenterComponent(combobox);
    showComponent(demoPanel, "ExtendedJComboBox demo");
  }
}
origin: sing-group/GC4S

  public static void main(String[] args) {
    showDialog(new ColorsSelectionDialog(new JFrame(), 1, 2, COLORS));
  }
}
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) throws IOException {
  downloadTestData();
  setNimbusLookAndFeel();
  try {
    // First, the GenomeIndex object required by the GenomeBrowser to
    // work is created.
    GenomeIndex genomeIndex = new PileLineGenomeIndex(
      PILELINE_INDEX_FILE);
    // Then, the GenomeBrowser is instantiated and visualized. Note that
    // it only requires a GenomeIndex to be created.
    GenomeBrowser genomeBrowser = new GenomeBrowser(genomeIndex);
    showComponent(genomeBrowser);
    // At this moment the GenomeBrowser is being shown and a new
    // sequence (chromosome) and positions range are set. Note that they
    // can also be established manually by the user trough the component
    // controls.
    genomeBrowser.setSequence("22");
    genomeBrowser.seekPositions(14880570, 18748443);
    // Finally, two files are programmatically added as tracks to the
    // GenomeBrowser. Again, note that they can be added by the user
    // through the component controls.
    sleep(1000);
    genomeBrowser.addTrack(BED_FILE);
    sleep(1000);
    genomeBrowser.addTrack(BAM_FILE);
  } catch (InterruptedException e) {
    e.printStackTrace();
  }
}
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");
  }
}
origin: sing-group/GC4S

  public static void main(String[] args) {
    showDialog(new FontConfigurationDialog(new JFrame()));
  }
}
origin: sing-group/GC4S

  public static void main(String[] args) {
    java.util.Locale.setDefault(java.util.Locale.ENGLISH);

    CsvTable table = new CsvTable(dataValues, columnNames);

    showComponent(new JScrollPane(table), "CsvTable demo");
  }
}
org.sing_group.gc4s.visualizationVisualizationUtils

Javadoc

Utility methods for showing components.

Most used methods

  • showComponent
    Shows a JFrame containing the specified component, title and frame extended state.
  • 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

  • Start an intent from android
  • getContentResolver (Context)
  • setContentView (Activity)
  • getApplicationContext (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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