translation-tool: stubs for additional buttons
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@663 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
99756b5d0a
commit
d8a0c8fe45
1 changed files with 25 additions and 1 deletions
|
@ -40,13 +40,20 @@ public class TranslationTool extends JFrame
|
|||
getContentPane().add(buttonPane, BorderLayout.SOUTH);
|
||||
|
||||
JButton btn;
|
||||
btn = new JButton("Add Locale");
|
||||
btn = new JButton("Add Locale...");
|
||||
btn.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent evt) {
|
||||
onAddLocaleClicked();
|
||||
}});
|
||||
buttonPane.add(btn);
|
||||
|
||||
btn = new JButton("Remove Locale");
|
||||
btn.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent evt) {
|
||||
onRemoveLocaleClicked();
|
||||
}});
|
||||
buttonPane.add(btn);
|
||||
|
||||
btn = new JButton("Save");
|
||||
btn.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent evt) {
|
||||
|
@ -61,6 +68,13 @@ public class TranslationTool extends JFrame
|
|||
}});
|
||||
buttonPane.add(btn);
|
||||
|
||||
btn = new JButton("Submit");
|
||||
btn.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent evt) {
|
||||
onSubmitClicked();
|
||||
}});
|
||||
buttonPane.add(btn);
|
||||
|
||||
pack();
|
||||
setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
|
||||
setLocationRelativeTo(null);
|
||||
|
@ -165,6 +179,16 @@ public class TranslationTool extends JFrame
|
|||
}
|
||||
}
|
||||
|
||||
private void onRemoveLocaleClicked()
|
||||
{
|
||||
//TODO
|
||||
}
|
||||
|
||||
private void onSubmitClicked()
|
||||
{
|
||||
//TODO
|
||||
}
|
||||
|
||||
public static void main(String [] args)
|
||||
throws Exception
|
||||
{
|
||||
|
|
Reference in a new issue