public static void main(String[] args) { setNimbusLookAndFeel(); showComponent(new JScrollPane(getDemoTable())); }
public static void main(String[] args) { setNimbusLookAndFeel(); showComponent(new JScrollPane(getDemoTable())); }
public static void main(String[] args) { setNimbusLookAndFeel(); showComponent(createButton(), "JButtonBuilder demo"); }
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(); } }