backgroundPanel.add(_toolbar, BorderLayout.PAGE_START);
}
/** Toolbar és menü action-öket itt hozzuk létre */
private void createActions() {
saveAction = new GuiAction("Save", "save", "Save new skeleton action",
new Integer(KeyEvent.VK_S), GuiAction.CTRL) {
public void actionPerformed(ActionEvent e) {
saveNewAction();
}
};
exitAction = new GuiAction("Exit", "close", "Exit action", new Integer(
KeyEvent.VK_Q), GuiAction.CTRL) {
public void actionPerformed(ActionEvent e) {
exitAction();
}
};
testAction = new GuiAction("Test", "fill", "Test table action", new Integer(
KeyEvent.VK_T), GuiAction.CTRL) {
public void actionPerformed(ActionEvent e) {
testAction();
}
};
listAction = new GuiAction("Open", "open", "List skeleton action", new Integer(
KeyEvent.VK_O), GuiAction.CTRL) {
public void actionPerformed(ActionEvent e) {
listAction();
}
};
newAction = new GuiAction("New", "newfile", "New skeleton action", new Integer(
KeyEvent.VK_N), GuiAction.CTRL) {
public void actionPerformed(ActionEvent e) {
newAction();
}
};
loadAction = new GuiAction("Load", "open", "Load skeleton action", new Integer(
KeyEvent.VK_L), GuiAction.CTRL) {
public void actionPerformed(ActionEvent e) {
loadAction();
}
};
createAction = new GuiAction("Create", "wizard", "Create skeleton action", new Integer(
KeyEvent.VK_W), GuiAction.CTRL) {
public void actionPerformed(ActionEvent e) {
createAction();
}
};
refreshAction = new GuiAction("Refresh", "refresh", "Refresh skeleton action", new Integer(
KeyEvent.VK_R), GuiAction.CTRL) {
public void actionPerformed(ActionEvent e) {
refreshAction();
}
};