{
JPanel useColsPanel = new JPanel(new BorderLayout());
// i18n[editWhereColsPanel.useColumns=Use Columns]
useColsPanel.add(new JLabel(s_stringMgr.getString("editWhereColsPanel.useColumns")), BorderLayout.NORTH);
useColsList = new JList(initalUseColsArray);
JScrollPane scrollPane = new JScrollPane(useColsList);
scrollPane.setPreferredSize(new Dimension(200, 200));
useColsPanel.add(scrollPane, BorderLayout.SOUTH);
add(useColsPanel);
JPanel moveButtonsPanel = new JPanel();
JPanel buttonPanel = new JPanel(new GridLayout(3,1));
//????? if desired, get fancy and use icons in buttons instead of text ?????????
JButton moveToNotUsedButton = new JButton("=>");
moveToNotUsedButton.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
moveToNotUsed();
}
});
buttonPanel.add(moveToNotUsedButton);
JButton moveToUsedButton = new JButton("<=");
moveToUsedButton.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
moveToUsed();
}
});
buttonPanel.add(moveToUsedButton);
JButton usePKButton = new JButton(EditWhereColsPanelI18N.USE_PK);
usePKButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
usePK();
}
});
buttonPanel.add(usePKButton);
moveButtonsPanel.add(buttonPanel, BorderLayout.CENTER);
add(moveButtonsPanel);
JPanel notUseColsPanel = new JPanel(new BorderLayout());
// i18n[editWhereColsPanel.notUseColumns=Not Use Columns]
notUseColsPanel.add(new JLabel(s_stringMgr.getString("editWhereColsPanel.notUseColumns")), BorderLayout.NORTH);
notUseColsList = new JList(initalNotUseColsArray);
JScrollPane notUseScrollPane = new JScrollPane(notUseColsList);
notUseScrollPane.setPreferredSize(new Dimension(200, 200));
notUseColsPanel.add(notUseScrollPane, BorderLayout.SOUTH);
add(notUseColsPanel);
}