Java Code Examples for com.sun.java.swing.ui.StatusBar

The following examples show how to use com.sun.java.swing.ui.StatusBar. These examples are extracted from open source projects. 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
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 2
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 3
Source Project: jdk8u60   Source File: ObjectHistogramPanel.java    License: GNU General Public License v2.0 5 votes vote down vote up
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 4
Source Project: jdk8u60   Source File: ClassBrowserPanel.java    License: GNU General Public License v2.0 5 votes vote down vote up
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
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
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 7
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 8
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 9
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 10
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 11
Source Project: hottub   Source File: ObjectHistogramPanel.java    License: GNU General Public License v2.0 5 votes vote down vote up
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 Project: hottub   Source File: ClassBrowserPanel.java    License: GNU General Public License v2.0 5 votes vote down vote up
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
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
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
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 16
Source Project: openjdk-8   Source File: ClassBrowserPanel.java    License: GNU General Public License v2.0 5 votes vote down vote up
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 17
public ObjectHistogramToolBar(StatusBar status) {
    super(HSDBActionManager.getInstance(), status);
}
 
Example 18
public ClassBrowserToolBar(StatusBar status) {
   super(HSDBActionManager.getInstance(), status);
}
 
Example 19
Source Project: jdk8u60   Source File: ObjectHistogramPanel.java    License: GNU General Public License v2.0 4 votes vote down vote up
public ObjectHistogramToolBar(StatusBar status) {
    super(HSDBActionManager.getInstance(), status);
}
 
Example 20
Source Project: jdk8u60   Source File: ClassBrowserPanel.java    License: GNU General Public License v2.0 4 votes vote down vote up
public ClassBrowserToolBar(StatusBar status) {
   super(HSDBActionManager.getInstance(), status);
}
 
Example 21
public ObjectHistogramToolBar(StatusBar status) {
    super(HSDBActionManager.getInstance(), status);
}
 
Example 22
public ClassBrowserToolBar(StatusBar status) {
   super(HSDBActionManager.getInstance(), status);
}
 
Example 23
public ObjectHistogramToolBar(StatusBar status) {
    super(HSDBActionManager.getInstance(), status);
}
 
Example 24
public ClassBrowserToolBar(StatusBar status) {
   super(HSDBActionManager.getInstance(), status);
}
 
Example 25
public ObjectHistogramToolBar(StatusBar status) {
    super(HSDBActionManager.getInstance(), status);
}
 
Example 26
public ClassBrowserToolBar(StatusBar status) {
   super(HSDBActionManager.getInstance(), status);
}
 
Example 27
Source Project: hottub   Source File: ObjectHistogramPanel.java    License: GNU General Public License v2.0 4 votes vote down vote up
public ObjectHistogramToolBar(StatusBar status) {
    super(HSDBActionManager.getInstance(), status);
}
 
Example 28
Source Project: hottub   Source File: ClassBrowserPanel.java    License: GNU General Public License v2.0 4 votes vote down vote up
public ClassBrowserToolBar(StatusBar status) {
   super(HSDBActionManager.getInstance(), status);
}
 
Example 29
public ObjectHistogramToolBar(StatusBar status) {
    super(HSDBActionManager.getInstance(), status);
}
 
Example 30
public ClassBrowserToolBar(StatusBar status) {
   super(HSDBActionManager.getInstance(), status);
}