com.sun.java.swing.ui.StatusBar Java Examples
The following examples show how to use
com.sun.java.swing.ui.StatusBar.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ClassBrowserPanel.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public ClassBrowserPanel() { htmlGen = new HTMLGenerator(); HyperlinkListener hyperListener = new HyperlinkListener() { public void hyperlinkUpdate(HyperlinkEvent e) { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) { contentEditor.setText(htmlGen.genHTMLForHyperlink(e.getDescription())); } } }; classesEditor = new SAEditorPane(); classesEditor.addHyperlinkListener(hyperListener); contentEditor = new SAEditorPane(); contentEditor.addHyperlinkListener(hyperListener); JPanel topPanel = new JPanel(); topPanel.setLayout(new BorderLayout()); topPanel.add(new JScrollPane(classesEditor), BorderLayout.CENTER); JPanel bottomPanel = new JPanel(); bottomPanel.setLayout(new BorderLayout()); bottomPanel.add(new JScrollPane(contentEditor), BorderLayout.CENTER); splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, topPanel, bottomPanel); splitPane.setDividerLocation(0); setLayout(new BorderLayout()); add(splitPane, BorderLayout.CENTER); statusBar = new StatusBar(); add(statusBar, BorderLayout.SOUTH); toolBar = new ClassBrowserToolBar(statusBar); add(toolBar, BorderLayout.NORTH); registerActions(); }
Example #2
Source File: ObjectHistogramPanel.java From hottub with GNU General Public License v2.0 | 5 votes |
public ObjectHistogramPanel(ObjectHistogram histo) { dataModel = new ObjectHistogramTableModel(histo); statusBar = new StatusBar(); table = new JTable(dataModel, new ObjectHistogramColummModel()); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); table.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent evt) { if (evt.getClickCount() == 2) { fireShowObjectsOfType(); } } }); JTableHeader header = table.getTableHeader(); header.setDefaultRenderer(new SortHeaderCellRenderer(header, dataModel)); header.addMouseListener(new SortHeaderMouseAdapter(table, dataModel)); setLayout(new BorderLayout()); toolbar = new ObjectHistogramToolBar(statusBar); add(toolbar, BorderLayout.NORTH); add(new JScrollPane(table), BorderLayout.CENTER); add(statusBar, BorderLayout.SOUTH); registerActions(); }
Example #3
Source File: ClassBrowserPanel.java From hottub with GNU General Public License v2.0 | 5 votes |
public ClassBrowserPanel() { htmlGen = new HTMLGenerator(); HyperlinkListener hyperListener = new HyperlinkListener() { public void hyperlinkUpdate(HyperlinkEvent e) { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) { contentEditor.setText(htmlGen.genHTMLForHyperlink(e.getDescription())); } } }; classesEditor = new SAEditorPane(); classesEditor.addHyperlinkListener(hyperListener); contentEditor = new SAEditorPane(); contentEditor.addHyperlinkListener(hyperListener); JPanel topPanel = new JPanel(); topPanel.setLayout(new BorderLayout()); topPanel.add(new JScrollPane(classesEditor), BorderLayout.CENTER); JPanel bottomPanel = new JPanel(); bottomPanel.setLayout(new BorderLayout()); bottomPanel.add(new JScrollPane(contentEditor), BorderLayout.CENTER); splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, topPanel, bottomPanel); splitPane.setDividerLocation(0); setLayout(new BorderLayout()); add(splitPane, BorderLayout.CENTER); statusBar = new StatusBar(); add(statusBar, BorderLayout.SOUTH); toolBar = new ClassBrowserToolBar(statusBar); add(toolBar, BorderLayout.NORTH); registerActions(); }
Example #4
Source File: ClassBrowserPanel.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public ClassBrowserPanel() { htmlGen = new HTMLGenerator(); HyperlinkListener hyperListener = new HyperlinkListener() { public void hyperlinkUpdate(HyperlinkEvent e) { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) { contentEditor.setText(htmlGen.genHTMLForHyperlink(e.getDescription())); } } }; classesEditor = new SAEditorPane(); classesEditor.addHyperlinkListener(hyperListener); contentEditor = new SAEditorPane(); contentEditor.addHyperlinkListener(hyperListener); JPanel topPanel = new JPanel(); topPanel.setLayout(new BorderLayout()); topPanel.add(new JScrollPane(classesEditor), BorderLayout.CENTER); JPanel bottomPanel = new JPanel(); bottomPanel.setLayout(new BorderLayout()); bottomPanel.add(new JScrollPane(contentEditor), BorderLayout.CENTER); splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, topPanel, bottomPanel); splitPane.setDividerLocation(0); setLayout(new BorderLayout()); add(splitPane, BorderLayout.CENTER); statusBar = new StatusBar(); add(statusBar, BorderLayout.SOUTH); toolBar = new ClassBrowserToolBar(statusBar); add(toolBar, BorderLayout.NORTH); registerActions(); }
Example #5
Source File: ObjectHistogramPanel.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public ObjectHistogramPanel(ObjectHistogram histo) { dataModel = new ObjectHistogramTableModel(histo); statusBar = new StatusBar(); table = new JTable(dataModel, new ObjectHistogramColummModel()); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); table.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent evt) { if (evt.getClickCount() == 2) { fireShowObjectsOfType(); } } }); JTableHeader header = table.getTableHeader(); header.setDefaultRenderer(new SortHeaderCellRenderer(header, dataModel)); header.addMouseListener(new SortHeaderMouseAdapter(table, dataModel)); setLayout(new BorderLayout()); toolbar = new ObjectHistogramToolBar(statusBar); add(toolbar, BorderLayout.NORTH); add(new JScrollPane(table), BorderLayout.CENTER); add(statusBar, BorderLayout.SOUTH); registerActions(); }
Example #6
Source File: ObjectHistogramPanel.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public ObjectHistogramPanel(ObjectHistogram histo) { dataModel = new ObjectHistogramTableModel(histo); statusBar = new StatusBar(); table = new JTable(dataModel, new ObjectHistogramColummModel()); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); table.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent evt) { if (evt.getClickCount() == 2) { fireShowObjectsOfType(); } } }); JTableHeader header = table.getTableHeader(); header.setDefaultRenderer(new SortHeaderCellRenderer(header, dataModel)); header.addMouseListener(new SortHeaderMouseAdapter(table, dataModel)); setLayout(new BorderLayout()); toolbar = new ObjectHistogramToolBar(statusBar); add(toolbar, BorderLayout.NORTH); add(new JScrollPane(table), BorderLayout.CENTER); add(statusBar, BorderLayout.SOUTH); registerActions(); }
Example #7
Source File: ClassBrowserPanel.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public ClassBrowserPanel() { htmlGen = new HTMLGenerator(); HyperlinkListener hyperListener = new HyperlinkListener() { public void hyperlinkUpdate(HyperlinkEvent e) { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) { contentEditor.setText(htmlGen.genHTMLForHyperlink(e.getDescription())); } } }; classesEditor = new SAEditorPane(); classesEditor.addHyperlinkListener(hyperListener); contentEditor = new SAEditorPane(); contentEditor.addHyperlinkListener(hyperListener); JPanel topPanel = new JPanel(); topPanel.setLayout(new BorderLayout()); topPanel.add(new JScrollPane(classesEditor), BorderLayout.CENTER); JPanel bottomPanel = new JPanel(); bottomPanel.setLayout(new BorderLayout()); bottomPanel.add(new JScrollPane(contentEditor), BorderLayout.CENTER); splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, topPanel, bottomPanel); splitPane.setDividerLocation(0); setLayout(new BorderLayout()); add(splitPane, BorderLayout.CENTER); statusBar = new StatusBar(); add(statusBar, BorderLayout.SOUTH); toolBar = new ClassBrowserToolBar(statusBar); add(toolBar, BorderLayout.NORTH); registerActions(); }
Example #8
Source File: ObjectHistogramPanel.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public ObjectHistogramPanel(ObjectHistogram histo) { dataModel = new ObjectHistogramTableModel(histo); statusBar = new StatusBar(); table = new JTable(dataModel, new ObjectHistogramColummModel()); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); table.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent evt) { if (evt.getClickCount() == 2) { fireShowObjectsOfType(); } } }); JTableHeader header = table.getTableHeader(); header.setDefaultRenderer(new SortHeaderCellRenderer(header, dataModel)); header.addMouseListener(new SortHeaderMouseAdapter(table, dataModel)); setLayout(new BorderLayout()); toolbar = new ObjectHistogramToolBar(statusBar); add(toolbar, BorderLayout.NORTH); add(new JScrollPane(table), BorderLayout.CENTER); add(statusBar, BorderLayout.SOUTH); registerActions(); }
Example #9
Source File: ClassBrowserPanel.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public ClassBrowserPanel() { htmlGen = new HTMLGenerator(); HyperlinkListener hyperListener = new HyperlinkListener() { public void hyperlinkUpdate(HyperlinkEvent e) { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) { contentEditor.setText(htmlGen.genHTMLForHyperlink(e.getDescription())); } } }; classesEditor = new SAEditorPane(); classesEditor.addHyperlinkListener(hyperListener); contentEditor = new SAEditorPane(); contentEditor.addHyperlinkListener(hyperListener); JPanel topPanel = new JPanel(); topPanel.setLayout(new BorderLayout()); topPanel.add(new JScrollPane(classesEditor), BorderLayout.CENTER); JPanel bottomPanel = new JPanel(); bottomPanel.setLayout(new BorderLayout()); bottomPanel.add(new JScrollPane(contentEditor), BorderLayout.CENTER); splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, topPanel, bottomPanel); splitPane.setDividerLocation(0); setLayout(new BorderLayout()); add(splitPane, BorderLayout.CENTER); statusBar = new StatusBar(); add(statusBar, BorderLayout.SOUTH); toolBar = new ClassBrowserToolBar(statusBar); add(toolBar, BorderLayout.NORTH); registerActions(); }
Example #10
Source File: ObjectHistogramPanel.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public ObjectHistogramPanel(ObjectHistogram histo) { dataModel = new ObjectHistogramTableModel(histo); statusBar = new StatusBar(); table = new JTable(dataModel, new ObjectHistogramColummModel()); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); table.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent evt) { if (evt.getClickCount() == 2) { fireShowObjectsOfType(); } } }); JTableHeader header = table.getTableHeader(); header.setDefaultRenderer(new SortHeaderCellRenderer(header, dataModel)); header.addMouseListener(new SortHeaderMouseAdapter(table, dataModel)); setLayout(new BorderLayout()); toolbar = new ObjectHistogramToolBar(statusBar); add(toolbar, BorderLayout.NORTH); add(new JScrollPane(table), BorderLayout.CENTER); add(statusBar, BorderLayout.SOUTH); registerActions(); }
Example #11
Source File: ObjectHistogramPanel.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public ObjectHistogramPanel(ObjectHistogram histo) { dataModel = new ObjectHistogramTableModel(histo); statusBar = new StatusBar(); table = new JTable(dataModel, new ObjectHistogramColummModel()); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); table.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent evt) { if (evt.getClickCount() == 2) { fireShowObjectsOfType(); } } }); JTableHeader header = table.getTableHeader(); header.setDefaultRenderer(new SortHeaderCellRenderer(header, dataModel)); header.addMouseListener(new SortHeaderMouseAdapter(table, dataModel)); setLayout(new BorderLayout()); toolbar = new ObjectHistogramToolBar(statusBar); add(toolbar, BorderLayout.NORTH); add(new JScrollPane(table), BorderLayout.CENTER); add(statusBar, BorderLayout.SOUTH); registerActions(); }
Example #12
Source File: ClassBrowserPanel.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public ClassBrowserPanel() { htmlGen = new HTMLGenerator(); HyperlinkListener hyperListener = new HyperlinkListener() { public void hyperlinkUpdate(HyperlinkEvent e) { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) { contentEditor.setText(htmlGen.genHTMLForHyperlink(e.getDescription())); } } }; classesEditor = new SAEditorPane(); classesEditor.addHyperlinkListener(hyperListener); contentEditor = new SAEditorPane(); contentEditor.addHyperlinkListener(hyperListener); JPanel topPanel = new JPanel(); topPanel.setLayout(new BorderLayout()); topPanel.add(new JScrollPane(classesEditor), BorderLayout.CENTER); JPanel bottomPanel = new JPanel(); bottomPanel.setLayout(new BorderLayout()); bottomPanel.add(new JScrollPane(contentEditor), BorderLayout.CENTER); splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, topPanel, bottomPanel); splitPane.setDividerLocation(0); setLayout(new BorderLayout()); add(splitPane, BorderLayout.CENTER); statusBar = new StatusBar(); add(statusBar, BorderLayout.SOUTH); toolBar = new ClassBrowserToolBar(statusBar); add(toolBar, BorderLayout.NORTH); registerActions(); }
Example #13
Source File: ObjectHistogramPanel.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public ObjectHistogramPanel(ObjectHistogram histo) { dataModel = new ObjectHistogramTableModel(histo); statusBar = new StatusBar(); table = new JTable(dataModel, new ObjectHistogramColummModel()); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); table.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent evt) { if (evt.getClickCount() == 2) { fireShowObjectsOfType(); } } }); JTableHeader header = table.getTableHeader(); header.setDefaultRenderer(new SortHeaderCellRenderer(header, dataModel)); header.addMouseListener(new SortHeaderMouseAdapter(table, dataModel)); setLayout(new BorderLayout()); toolbar = new ObjectHistogramToolBar(statusBar); add(toolbar, BorderLayout.NORTH); add(new JScrollPane(table), BorderLayout.CENTER); add(statusBar, BorderLayout.SOUTH); registerActions(); }
Example #14
Source File: ClassBrowserPanel.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public ClassBrowserPanel() { htmlGen = new HTMLGenerator(); HyperlinkListener hyperListener = new HyperlinkListener() { public void hyperlinkUpdate(HyperlinkEvent e) { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) { contentEditor.setText(htmlGen.genHTMLForHyperlink(e.getDescription())); } } }; classesEditor = new SAEditorPane(); classesEditor.addHyperlinkListener(hyperListener); contentEditor = new SAEditorPane(); contentEditor.addHyperlinkListener(hyperListener); JPanel topPanel = new JPanel(); topPanel.setLayout(new BorderLayout()); topPanel.add(new JScrollPane(classesEditor), BorderLayout.CENTER); JPanel bottomPanel = new JPanel(); bottomPanel.setLayout(new BorderLayout()); bottomPanel.add(new JScrollPane(contentEditor), BorderLayout.CENTER); splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, topPanel, bottomPanel); splitPane.setDividerLocation(0); setLayout(new BorderLayout()); add(splitPane, BorderLayout.CENTER); statusBar = new StatusBar(); add(statusBar, BorderLayout.SOUTH); toolBar = new ClassBrowserToolBar(statusBar); add(toolBar, BorderLayout.NORTH); registerActions(); }
Example #15
Source File: ClassBrowserPanel.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public ClassBrowserPanel() { htmlGen = new HTMLGenerator(); HyperlinkListener hyperListener = new HyperlinkListener() { public void hyperlinkUpdate(HyperlinkEvent e) { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) { contentEditor.setText(htmlGen.genHTMLForHyperlink(e.getDescription())); } } }; classesEditor = new SAEditorPane(); classesEditor.addHyperlinkListener(hyperListener); contentEditor = new SAEditorPane(); contentEditor.addHyperlinkListener(hyperListener); JPanel topPanel = new JPanel(); topPanel.setLayout(new BorderLayout()); topPanel.add(new JScrollPane(classesEditor), BorderLayout.CENTER); JPanel bottomPanel = new JPanel(); bottomPanel.setLayout(new BorderLayout()); bottomPanel.add(new JScrollPane(contentEditor), BorderLayout.CENTER); splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, topPanel, bottomPanel); splitPane.setDividerLocation(0); setLayout(new BorderLayout()); add(splitPane, BorderLayout.CENTER); statusBar = new StatusBar(); add(statusBar, BorderLayout.SOUTH); toolBar = new ClassBrowserToolBar(statusBar); add(toolBar, BorderLayout.NORTH); registerActions(); }
Example #16
Source File: ObjectHistogramPanel.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public ObjectHistogramPanel(ObjectHistogram histo) { dataModel = new ObjectHistogramTableModel(histo); statusBar = new StatusBar(); table = new JTable(dataModel, new ObjectHistogramColummModel()); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); table.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent evt) { if (evt.getClickCount() == 2) { fireShowObjectsOfType(); } } }); JTableHeader header = table.getTableHeader(); header.setDefaultRenderer(new SortHeaderCellRenderer(header, dataModel)); header.addMouseListener(new SortHeaderMouseAdapter(table, dataModel)); setLayout(new BorderLayout()); toolbar = new ObjectHistogramToolBar(statusBar); add(toolbar, BorderLayout.NORTH); add(new JScrollPane(table), BorderLayout.CENTER); add(statusBar, BorderLayout.SOUTH); registerActions(); }
Example #17
Source File: ClassBrowserPanel.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public ClassBrowserToolBar(StatusBar status) { super(HSDBActionManager.getInstance(), status); }
Example #18
Source File: ClassBrowserPanel.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public ClassBrowserToolBar(StatusBar status) { super(HSDBActionManager.getInstance(), status); }
Example #19
Source File: ObjectHistogramPanel.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public ObjectHistogramToolBar(StatusBar status) { super(HSDBActionManager.getInstance(), status); }
Example #20
Source File: ObjectHistogramPanel.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public ObjectHistogramToolBar(StatusBar status) { super(HSDBActionManager.getInstance(), status); }
Example #21
Source File: ClassBrowserPanel.java From hottub with GNU General Public License v2.0 | 4 votes |
public ClassBrowserToolBar(StatusBar status) { super(HSDBActionManager.getInstance(), status); }
Example #22
Source File: ObjectHistogramPanel.java From hottub with GNU General Public License v2.0 | 4 votes |
public ObjectHistogramToolBar(StatusBar status) { super(HSDBActionManager.getInstance(), status); }
Example #23
Source File: ClassBrowserPanel.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public ClassBrowserToolBar(StatusBar status) { super(HSDBActionManager.getInstance(), status); }
Example #24
Source File: ObjectHistogramPanel.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public ObjectHistogramToolBar(StatusBar status) { super(HSDBActionManager.getInstance(), status); }
Example #25
Source File: ClassBrowserPanel.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public ClassBrowserToolBar(StatusBar status) { super(HSDBActionManager.getInstance(), status); }
Example #26
Source File: ObjectHistogramPanel.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public ObjectHistogramToolBar(StatusBar status) { super(HSDBActionManager.getInstance(), status); }
Example #27
Source File: ClassBrowserPanel.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public ClassBrowserToolBar(StatusBar status) { super(HSDBActionManager.getInstance(), status); }
Example #28
Source File: ObjectHistogramPanel.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public ObjectHistogramToolBar(StatusBar status) { super(HSDBActionManager.getInstance(), status); }
Example #29
Source File: ClassBrowserPanel.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public ClassBrowserToolBar(StatusBar status) { super(HSDBActionManager.getInstance(), status); }
Example #30
Source File: ObjectHistogramPanel.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public ObjectHistogramToolBar(StatusBar status) { super(HSDBActionManager.getInstance(), status); }