Search in sources :

Example 1 with CPanelTwoButtons

use of com.google.security.zynamics.zylib.gui.CPanelTwoButtons in project binnavi by google.

the class CAddressSelectionDialog method createGui.

/**
   * Creates the GUI of the dialog.
   */
private void createGui(final List<INaviModule> modules) {
    setLayout(new BorderLayout());
    final JTextArea field = new JTextArea("The current graph has more then one module.\nPlease choose the one to search in.");
    field.setEditable(false);
    add(field, BorderLayout.NORTH);
    m_table = new JTable(new CAddressSelectionTableModel(modules));
    m_table.addMouseListener(m_listener);
    add(new JScrollPane(m_table), BorderLayout.CENTER);
    final CPanelTwoButtons panel = new CPanelTwoButtons(m_listener, "OK", "Cancel");
    add(panel, BorderLayout.SOUTH);
    setSize(500, 300);
}
Also used : JScrollPane(javax.swing.JScrollPane) JTextArea(javax.swing.JTextArea) BorderLayout(java.awt.BorderLayout) JTable(javax.swing.JTable) CPanelTwoButtons(com.google.security.zynamics.zylib.gui.CPanelTwoButtons)

Example 2 with CPanelTwoButtons

use of com.google.security.zynamics.zylib.gui.CPanelTwoButtons in project binnavi by google.

the class CGraphSelectionDialog method createGui.

/**
   * Creates the GUI of the dialog.
   *
   * @param views The views to be shown in the table.
   */
private void createGui(final List<INaviView> views) {
    setLayout(new BorderLayout());
    final JTextArea field = new JTextArea("The debugger stopped at an instruction that does not belong to any open graphs.\nPlease select a graph from the list to continue debugging.");
    field.setEditable(false);
    add(field, BorderLayout.NORTH);
    m_table = new JTable(new CGraphSelectionTableModel(views));
    m_table.addMouseListener(m_listener);
    add(new JScrollPane(m_table), BorderLayout.CENTER);
    final CPanelTwoButtons panel = new CPanelTwoButtons(m_listener, "OK", "Cancel");
    add(panel, BorderLayout.SOUTH);
    setSize(500, 300);
}
Also used : JScrollPane(javax.swing.JScrollPane) JTextArea(javax.swing.JTextArea) BorderLayout(java.awt.BorderLayout) JTable(javax.swing.JTable) CPanelTwoButtons(com.google.security.zynamics.zylib.gui.CPanelTwoButtons)

Example 3 with CPanelTwoButtons

use of com.google.security.zynamics.zylib.gui.CPanelTwoButtons in project binnavi by google.

the class CViewSearcherDialog method createGui.

/**
   * Creates the GUI of the dialog.
   */
private void createGui() {
    setLayout(new BorderLayout());
    final JPanel panel = new JPanel(new BorderLayout());
    final JLabel lbl = new JLabel("Address" + ":");
    lbl.setBorder(new EmptyBorder(5, 5, 5, 5));
    panel.add(lbl, BorderLayout.WEST);
    m_offsetField.setSize(400, 20);
    final ActionListener listener = new ActionListener() {

        @Override
        public void actionPerformed(final ActionEvent e) {
            search();
        }
    };
    m_offsetField.addActionListener(listener);
    panel.add(m_offsetField, BorderLayout.CENTER);
    panel.add(new JButton(CActionProxy.proxy(new SearchAction(this))), BorderLayout.EAST);
    add(panel, BorderLayout.NORTH);
    m_table = new JTable(tableModel);
    m_table.addMouseListener(m_listener);
    add(new JScrollPane(m_table), BorderLayout.CENTER);
    add(new CPanelTwoButtons(CActionProxy.proxy(new InternalActionListener()), "OK", "Cancel"), BorderLayout.SOUTH);
    setSize(500, 300);
}
Also used : JScrollPane(javax.swing.JScrollPane) JPanel(javax.swing.JPanel) BorderLayout(java.awt.BorderLayout) ActionListener(java.awt.event.ActionListener) ActionEvent(java.awt.event.ActionEvent) JTable(javax.swing.JTable) JButton(javax.swing.JButton) JLabel(javax.swing.JLabel) CPanelTwoButtons(com.google.security.zynamics.zylib.gui.CPanelTwoButtons) EmptyBorder(javax.swing.border.EmptyBorder)

Aggregations

CPanelTwoButtons (com.google.security.zynamics.zylib.gui.CPanelTwoButtons)3 BorderLayout (java.awt.BorderLayout)3 JScrollPane (javax.swing.JScrollPane)3 JTable (javax.swing.JTable)3 JTextArea (javax.swing.JTextArea)2 ActionEvent (java.awt.event.ActionEvent)1 ActionListener (java.awt.event.ActionListener)1 JButton (javax.swing.JButton)1 JLabel (javax.swing.JLabel)1 JPanel (javax.swing.JPanel)1 EmptyBorder (javax.swing.border.EmptyBorder)1