notAssignedTable = new JXTable();
notAssignedTable.setSortable(false);
notAssignedTable.setEditable(false);
notAssignedTable.setColumnControlVisible(false);
notAssignedTable.setHorizontalScrollEnabled(true);
HighlighterPipeline highlighters = new HighlighterPipeline();
highlighters.addHighlighter(new AlternateRowHighlighter());
highlighters.addHighlighter(new RolloverHighlighter(Color.BLACK, Color.WHITE));
notAssignedTable.setHighlighters(highlighters);
notAssignedTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
notAssignedTable.addMouseListener(this);
scrollPane.setViewportView(notAssignedTable);
}
panel.add(scrollPane, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(0, 0, 0, 0), 0, 0));
}
contentPane.add(panel, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(0, 0, 5, 0), 0, 0));
panel = new JPanel();
{
panel.setLayout(new FlowLayout());
JButton upButton = new JButton();
upButton.setIcon(ImageManager.getImage(ImageManager.ARROW_UP_IMAGE));
upButton.setActionCommand("UP");
upButton.addActionListener(this);
panel.add(upButton);
JButton downButton = new JButton();
downButton.setIcon(ImageManager.getImage(ImageManager.ARROW_DOWN_IMAGE));
downButton.setActionCommand("DOWN");
downButton.addActionListener(this);
panel.add(downButton);
}
contentPane.add(panel, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(0, 0, 5, 0), 0, 0));
panel = new JPanel();
{
panel.setBorder(new TitledBorder(TxtManager.getTxt("VIEW.OBJECTEDIT.REG.ASSIGNEDBUDGETS")));
panel.setLayout(new GridBagLayout());
((GridBagLayout)panel.getLayout()).columnWidths = new int[] {0, 0};
((GridBagLayout)panel.getLayout()).rowHeights = new int[] {0, 0};
((GridBagLayout)panel.getLayout()).columnWeights = new double[] {1.0, 1.0E-4};
((GridBagLayout)panel.getLayout()).rowWeights = new double[] {1.0, 1.0E-4};
JScrollPane scrollPane = new JScrollPane();
{
scrollPane.setPreferredSize(new Dimension(500, 150));
assignedTable = new JXTable();
assignedTable.setSortable(false);
assignedTable.setEditable(false);
assignedTable.setColumnControlVisible(false);
assignedTable.setHorizontalScrollEnabled(true);
HighlighterPipeline highlighters = new HighlighterPipeline();
highlighters.addHighlighter(new AlternateRowHighlighter());
highlighters.addHighlighter(new RolloverHighlighter(Color.BLACK, Color.WHITE));
assignedTable.setHighlighters(highlighters);
assignedTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
assignedTable.setComponentPopupMenu(popupMenu);
assignedTable.addMouseListener(this);
scrollPane.setViewportView(assignedTable);