protected JInternalFrame mainFrame = new JInternalFrame(
getFTSFrameTitle());
- protected JTabbedPane tabs = jalview.jbgui.swing.JTabbedPane.createTabbedPane();
+ protected JTabbedPane tabs = jalview.jbgui.GDesktop.createTabbedPane();
protected IProgressIndicator progressIndicator;
protected JLabel lbl_blank = new JLabel(balnkPlaceholderImage);
- private JTabbedPane tabbedPane = jalview.jbgui.swing.JTabbedPane.createTabbedPane();
+ private JTabbedPane tabbedPane = jalview.jbgui.GDesktop.createTabbedPane();
private JPanel pnl_actions = new JPanel();
// revert to a tabbed pane.
JScrollPane firstpane;
this.remove(firstpane = (JScrollPane) jobPanes.get(0));
- subjobs = jalview.jbgui.swing.JTabbedPane.createTabbedPane();
+ subjobs = jalview.jbgui.GDesktop.createTabbedPane();
this.add(subjobs, BorderLayout.CENTER);
subjobs.add(firstpane);
subjobs.setTitleAt(0, firstpane.getName());
*/
private void jbInit() throws Exception
{
- final JTabbedPane tabbedPane = jalview.jbgui.swing.JTabbedPane.createTabbedPane();
+ final JTabbedPane tabbedPane = jalview.jbgui.GDesktop.createTabbedPane();
this.setLayout(new BorderLayout());
JPanel okCancelPanel = initOkCancelPanel();
this.add(tabbedPane, BorderLayout.CENTER);
paste.setLayout(
new MigLayout("", "[grow 100, fill]", "[][grow 100,fill]"));
- panels = jalview.jbgui.swing.JTabbedPane.createTabbedPane();
+ panels = jalview.jbgui.GDesktop.createTabbedPane();
panels.addTab(details.getName(), details);
panels.addTab(inputs.getName(), inputs);
panels.addTab(paste.getName(), paste);
protected JTable tbl_local_pdb = new JTable();
- protected JTabbedPane pnl_filter = jalview.jbgui.swing.JTabbedPane.createTabbedPane();
+ protected JTabbedPane pnl_filter = jalview.jbgui.GDesktop.createTabbedPane();
protected FTSDataColumnPreferences pdbDocFieldPrefs = new FTSDataColumnPreferences(
PreferenceSource.STRUCTURE_CHOOSER,
mainFrame.pack();
} catch (Exception e)
{
+ System.out.println(e); // for JavaScript TypeError
e.printStackTrace();
}
}
public class JTabbedPane extends JPanel
{
- @SuppressWarnings("unused")
- public static javax.swing.JTabbedPane createTabbedPane()
- {
- // BH 2018 coercing jalview.jbgui.swing.JTabbedPane() for now
- if (/** @j2sNative false && */
- true)
- {
- // Java
- return new javax.swing.JTabbedPane();
- }
- // JavaScript
- return (javax.swing.JTabbedPane) (Object) new jalview.jbgui.swing.JTabbedPane();
- }
-
+ // no longer necessary
+
private JPanel pagePanel;
private JComboBox<String> tabs;