}
private void initialViews() {
DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance();
//======== columnVisiblePanel ========
JPanel columnVisiblePanel = new JPanel();
columnVisiblePanel.setLayout(new GridBagLayout());
((GridBagLayout)columnVisiblePanel.getLayout()).columnWidths = new int[] {0, 0, 0, 0};
((GridBagLayout)columnVisiblePanel.getLayout()).rowHeights = new int[] {0, 0};
((GridBagLayout)columnVisiblePanel.getLayout()).columnWeights = new double[] {0.0, 0.0, 1.0, 1.0E-4};
((GridBagLayout)columnVisiblePanel.getLayout()).rowWeights = new double[] {1.0, 1.0E-4};
//======== left_columnVisiblePanel ========
JPanel left_columnVisiblePanel = new JPanel();
left_columnVisiblePanel.setPreferredSize(new Dimension(250, 300));
left_columnVisiblePanel.setBorder(LineBorder.createBlackLineBorder());
left_columnVisiblePanel.setLayout(new GridBagLayout());
((GridBagLayout)left_columnVisiblePanel.getLayout()).columnWidths = new int[] {0, 0};
((GridBagLayout)left_columnVisiblePanel.getLayout()).rowHeights = new int[] {0, 0, 0, 0};
((GridBagLayout)left_columnVisiblePanel.getLayout()).columnWeights = new double[] {1.0, 1.0E-4};
((GridBagLayout)left_columnVisiblePanel.getLayout()).rowWeights = new double[] {0.0, 0.0, 1.0, 1.0E-4};
JComponent separator = compFactory.createSeparator(TxtManager.getTxt("LAYOUT.COLUMNTODISPLAY"));
left_columnVisiblePanel.add(separator, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(5, 5, 10, 5), 0, 0));
//======== toolBar ========
JToolBar toolBar = new JToolBar();
JPanel toolPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
//---- upButton ----
JButton upButton = new JButton();
upButton.setIcon(ImageManager.getImage(ImageManager.ARROW_UP_IMAGE));
upButton.setActionCommand("Display Item up");
upButton.addActionListener(listener);
toolPanel.add(upButton);
//---- downButton ----
JButton downButton = new JButton();
downButton.setIcon(ImageManager.getImage(ImageManager.ARROW_DOWN_IMAGE));
downButton.setActionCommand("Display Item down");
downButton.addActionListener(listener);
toolPanel.add(downButton);
left_columnVisiblePanel.add(toolPanel, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(0, 0, 5, 0), 0, 0));
//======== scrollPane1 ========
JScrollPane scrollPane1 = new JScrollPane();
//---- columnDisplayTable ----
columnDisplayTable = new JTableX();
getColumnDisplayTable().setHorizontalScrollEnabled(true);
getColumnDisplayTable().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
getColumnDisplayTable().setSortable(false);
scrollPane1.setViewportView(getColumnDisplayTable());
scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
left_columnVisiblePanel.add(scrollPane1, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(0, 0, 0, 0), 0, 0));
columnVisiblePanel.add(left_columnVisiblePanel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(10, 10, 30, 15), 0, 0));
//======== middle_columnVisiblePanel ========
JPanel middle_columnVisiblePanel = new JPanel();
middle_columnVisiblePanel.setLayout(new GridBagLayout());
((GridBagLayout)middle_columnVisiblePanel.getLayout()).columnWidths = new int[] {0, 0};
((GridBagLayout)middle_columnVisiblePanel.getLayout()).rowHeights = new int[] {0, 0, 0};
((GridBagLayout)middle_columnVisiblePanel.getLayout()).columnWeights = new double[] {0.0, 1.0E-4};
((GridBagLayout)middle_columnVisiblePanel.getLayout()).rowWeights = new double[] {1.0, 1.0, 1.0E-4};
//---- leftButton ----
JButton leftButton = new JButton();
leftButton.setActionCommand("Display Item Left");
leftButton.addActionListener(listener);
leftButton.setIcon(ImageManager.getImage(ImageManager.ARROW_LEFT_IMAGE));
middle_columnVisiblePanel.add(leftButton, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
GridBagConstraints.SOUTH, GridBagConstraints.NONE,
new Insets(0, 0, 5, 0), 0, 0));
//---- rightButton ----
JButton rightButton = new JButton();
rightButton.setActionCommand("Display Item Right");
rightButton.addActionListener(listener);
rightButton.setIcon(ImageManager.getImage(ImageManager.ARROW_RIGHT_IMAGE));
middle_columnVisiblePanel.add(rightButton, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0,
GridBagConstraints.NORTH, GridBagConstraints.NONE,
new Insets(0, 0, 0, 0), 0, 0));
columnVisiblePanel.add(middle_columnVisiblePanel, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(0, 0, 0, 5), 0, 0));
//======== right_columnVisiblePanel ========
JPanel right_columnVisiblePanel = new JPanel();
right_columnVisiblePanel.setPreferredSize(new Dimension(250, 300));
right_columnVisiblePanel.setBorder(LineBorder.createBlackLineBorder());
right_columnVisiblePanel.setLayout(new GridBagLayout());
((GridBagLayout)right_columnVisiblePanel.getLayout()).columnWidths = new int[] {0, 0};
((GridBagLayout)right_columnVisiblePanel.getLayout()).rowHeights = new int[] {0, 0, 0, 0};
((GridBagLayout)right_columnVisiblePanel.getLayout()).columnWeights = new double[] {1.0, 1.0E-4};
((GridBagLayout)right_columnVisiblePanel.getLayout()).rowWeights = new double[] {0.0, 0.0, 1.0, 1.0E-4};
separator = compFactory.createSeparator(TxtManager.getTxt("LAYOUT.COLUMN"));
right_columnVisiblePanel.add(separator, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(5, 5, 10, 5), 0, 0));
//======== scrollPane ========
JScrollPane scrollPane = new JScrollPane();
//---- columnTable ----
columnTable = new JXTable();
getColumnTable().setHorizontalScrollEnabled(true);
getColumnTable().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
getColumnTable().setSortable(false);
getColumnTable().setEditable(false);
scrollPane.setViewportView(getColumnTable());
scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
right_columnVisiblePanel.add(scrollPane, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(0, 0, 0, 0), 0, 0));
columnVisiblePanel.add(right_columnVisiblePanel, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(10, 10, 30, 10), 0, 0));
tabbedPane.addTab(TxtManager.getTxt("LAYOUT.DISPLAY.TITLE"), columnVisiblePanel);
//======== columnOrderPanel ========
JPanel columnOrderPanel = new JPanel();
columnOrderPanel.setPreferredSize(new Dimension(300, 200));
columnOrderPanel.setLayout(new GridBagLayout());
((GridBagLayout)columnOrderPanel.getLayout()).columnWidths = new int[] {0, 0, 0};
((GridBagLayout)columnOrderPanel.getLayout()).rowHeights = new int[] {0, 0, 0, 0};
((GridBagLayout)columnOrderPanel.getLayout()).columnWeights = new double[] {0.0, 0.0, 1.0E-4};
((GridBagLayout)columnOrderPanel.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 1.0E-4};
//======== left_columnOrderPanel ========
JPanel left_columnOrderPanel = new JPanel();
left_columnOrderPanel.setPreferredSize(new Dimension(250, 300));
left_columnOrderPanel.setBorder(LineBorder.createBlackLineBorder());
left_columnOrderPanel.setLayout(new GridBagLayout());
((GridBagLayout)left_columnOrderPanel.getLayout()).columnWidths = new int[] {0, 0};
((GridBagLayout)left_columnOrderPanel.getLayout()).rowHeights = new int[] {0, 0, 0, 0};
((GridBagLayout)left_columnOrderPanel.getLayout()).columnWeights = new double[] {1.0, 1.0E-4};
((GridBagLayout)left_columnOrderPanel.getLayout()).rowWeights = new double[] {0.0, 0.0, 1.0, 1.0E-4};
separator = compFactory.createSeparator(TxtManager.getTxt("LAYOUT.COLUMN.ORDER"));
left_columnOrderPanel.add(separator, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(5, 5, 10, 5), 0, 0));
//======== toolBar ========
toolBar = new JToolBar();
toolPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
toolBar.setFloatable(false);
toolBar.setBorderPainted(false);
//---- upButton ----
upButton = new JButton();
upButton.setIcon(ImageManager.getImage(ImageManager.ARROW_UP_IMAGE));
upButton.setActionCommand("Order Item up");
upButton.addActionListener(listener);
toolPanel.add(upButton);
//---- downButton ----
downButton = new JButton();
downButton.setIcon(ImageManager.getImage(ImageManager.ARROW_DOWN_IMAGE));
downButton.setActionCommand("Order Item down");
downButton.addActionListener(listener);
toolPanel.add(downButton);
left_columnOrderPanel.add(toolPanel, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(0, 0, 5, 0), 0, 0));
//======== scrollPane ========
scrollPane = new JScrollPane();
//---- columnOrderTable ----
columnOrderTable = new JXTable();
getColumnOrderTable().setHorizontalScrollEnabled(true);
getColumnOrderTable().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
getColumnOrderTable().setSortable(false);
scrollPane.setViewportView(getColumnOrderTable());
scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
left_columnOrderPanel.add(scrollPane, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(0, 0, 0, 0), 0, 0));
columnOrderPanel.add(left_columnOrderPanel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(10, 10, 30, 15), 0, 0));
//======== middle_columnOrderPanel ========
JPanel middle_columnOrderPanel = new JPanel();
middle_columnOrderPanel.setLayout(new GridBagLayout());
((GridBagLayout)middle_columnOrderPanel.getLayout()).columnWidths = new int[] {0, 0};
((GridBagLayout)middle_columnOrderPanel.getLayout()).rowHeights = new int[] {0, 0, 0};
((GridBagLayout)middle_columnOrderPanel.getLayout()).columnWeights = new double[] {0.0, 1.0E-4};
((GridBagLayout)middle_columnOrderPanel.getLayout()).rowWeights = new double[] {1.0, 1.0, 1.0E-4};
//---- leftButton ----
leftButton = new JButton();
leftButton.setActionCommand("Order Item Left");
leftButton.addActionListener(listener);
leftButton.setIcon(ImageManager.getImage(ImageManager.ARROW_LEFT_IMAGE));
middle_columnOrderPanel.add(leftButton, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
GridBagConstraints.SOUTH, GridBagConstraints.NONE,
new Insets(0, 0, 5, 0), 0, 0));
//---- rightButton ----
rightButton = new JButton();
rightButton.setActionCommand("Order Item Right");
rightButton.addActionListener(listener);
rightButton.setIcon(ImageManager.getImage(ImageManager.ARROW_RIGHT_IMAGE));
middle_columnOrderPanel.add(rightButton, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0,
GridBagConstraints.NORTH, GridBagConstraints.NONE,
new Insets(0, 0, 0, 0), 0, 0));
columnOrderPanel.add(middle_columnOrderPanel, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(0, 0, 0, 5), 0, 0));
//======== right_columnOrderPanel ========
JPanel right_columnOrderPanel = new JPanel();
right_columnOrderPanel.setPreferredSize(new Dimension(250, 300));
right_columnOrderPanel.setBorder(LineBorder.createBlackLineBorder());
right_columnOrderPanel.setLayout(new GridBagLayout());
((GridBagLayout)right_columnOrderPanel.getLayout()).columnWidths = new int[] {0, 0};
((GridBagLayout)right_columnOrderPanel.getLayout()).rowHeights = new int[] {0, 0, 0, 0};
((GridBagLayout)right_columnOrderPanel.getLayout()).columnWeights = new double[] {1.0, 1.0E-4};
((GridBagLayout)right_columnOrderPanel.getLayout()).rowWeights = new double[] {0.0, 0.0, 1.0, 1.0E-4};
separator = compFactory.createSeparator(TxtManager.getTxt("LAYOUT.COLUMN"));
right_columnOrderPanel.add(separator, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(5, 5, 10, 5), 0, 0));
//======== scrollPane ========
scrollPane = new JScrollPane();
//---- columnOrderSourceTable ----
columnOrderSourceTable = new JXTable();
getColumnOrderSourceTable().setHorizontalScrollEnabled(true);
getColumnOrderSourceTable().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
getColumnOrderSourceTable().setSortable(false);
scrollPane.setViewportView(getColumnOrderSourceTable());
scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
right_columnOrderPanel.add(scrollPane, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(0, 0, 0, 0), 0, 0));
columnOrderPanel.add(right_columnOrderPanel, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(10, 10, 30, 10), 0, 0));
tabbedPane.addTab(TxtManager.getTxt("LAYOUT.SORT.TITLE"), columnOrderPanel);
//======== columnFilterPanel ========
JPanel columnFilterPanel = new JPanel();
columnFilterPanel.setLayout(new GridBagLayout());
((GridBagLayout)columnFilterPanel.getLayout()).columnWidths = new int[] {0, 0, 0, 0};
((GridBagLayout)columnFilterPanel.getLayout()).rowHeights = new int[] {0, 0};
((GridBagLayout)columnFilterPanel.getLayout()).columnWeights = new double[] {0.0, 0.0, 1.0, 1.0E-4};
((GridBagLayout)columnFilterPanel.getLayout()).rowWeights = new double[] {1.0, 1.0E-4};
//======== left_columnFilterPanel ========
JPanel left_columnFilterPanel = new JPanel();
left_columnFilterPanel.setPreferredSize(new Dimension(550, 300));
left_columnFilterPanel.setBorder(LineBorder.createBlackLineBorder());
left_columnFilterPanel.setLayout(new GridBagLayout());
((GridBagLayout)left_columnFilterPanel.getLayout()).columnWidths = new int[] {0, 0};
((GridBagLayout)left_columnFilterPanel.getLayout()).rowHeights = new int[] {0, 0, 0, 0};
((GridBagLayout)left_columnFilterPanel.getLayout()).columnWeights = new double[] {1.0, 1.0E-4};
((GridBagLayout)left_columnFilterPanel.getLayout()).rowWeights = new double[] {0.0, 0.0, 1.0, 1.0E-4};
separator = compFactory.createSeparator(TxtManager.getTxt("LAYOUT.COLUMNTODISPLAY"));
left_columnFilterPanel.add(separator, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(5, 5, 10, 5), 0, 0));