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);
}
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);
}
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);
}
Aggregations