|
|
@@ -41,9 +41,9 @@ class ItemInfoPanel extends JPanel {
|
|
|
gbc_panel.gridy = 0;
|
|
|
add(panel, gbc_panel);
|
|
|
GridBagLayout gbl_panel = new GridBagLayout();
|
|
|
- gbl_panel.columnWidths = new int[]{120, 0, 0, 0, 0, 0, 0, 0, 0};
|
|
|
+ gbl_panel.columnWidths = new int[]{120, 0, 0, 0};
|
|
|
gbl_panel.rowHeights = new int[]{0, 0, 0, 0};
|
|
|
- gbl_panel.columnWeights = new double[]{1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0, 1.0, Double.MIN_VALUE};
|
|
|
+ gbl_panel.columnWeights = new double[]{1.0, 0.0, 0.0, Double.MIN_VALUE};
|
|
|
gbl_panel.rowWeights = new double[]{0.0, 0.0, 0.0, Double.MIN_VALUE};
|
|
|
panel.setLayout(gbl_panel);
|
|
|
|
|
|
@@ -93,68 +93,16 @@ class ItemInfoPanel extends JPanel {
|
|
|
lblPage.setBackground(Color.BLACK);
|
|
|
GridBagConstraints gbc_lblPage = new GridBagConstraints();
|
|
|
gbc_lblPage.fill = GridBagConstraints.HORIZONTAL;
|
|
|
- gbc_lblPage.insets = new Insets(0, 0, 0, 1);
|
|
|
+ gbc_lblPage.insets = new Insets(0, 0, 1, 0);
|
|
|
gbc_lblPage.gridx = 2;
|
|
|
gbc_lblPage.gridy = 1;
|
|
|
panel.add(lblPage, gbc_lblPage);
|
|
|
|
|
|
- JLabel lblPp = new JLabel("pp");
|
|
|
- lblPp.setOpaque(true);
|
|
|
- lblPp.setHorizontalAlignment(SwingConstants.CENTER);
|
|
|
- lblPp.setForeground(Color.WHITE);
|
|
|
- lblPp.setFont(new Font("Tahoma", Font.BOLD, 8));
|
|
|
- lblPp.setBackground(Color.BLACK);
|
|
|
- GridBagConstraints gbc_lblPp = new GridBagConstraints();
|
|
|
- gbc_lblPp.fill = GridBagConstraints.HORIZONTAL;
|
|
|
- gbc_lblPp.insets = new Insets(0, 0, 0, 1);
|
|
|
- gbc_lblPp.gridx = 4;
|
|
|
- gbc_lblPp.gridy = 1;
|
|
|
- panel.add(lblPp, gbc_lblPp);
|
|
|
-
|
|
|
- JLabel lblGp = new JLabel("gp");
|
|
|
- lblGp.setOpaque(true);
|
|
|
- lblGp.setHorizontalAlignment(SwingConstants.CENTER);
|
|
|
- lblGp.setForeground(Color.WHITE);
|
|
|
- lblGp.setFont(new Font("Tahoma", Font.BOLD, 8));
|
|
|
- lblGp.setBackground(Color.BLACK);
|
|
|
- GridBagConstraints gbc_lblGp = new GridBagConstraints();
|
|
|
- gbc_lblGp.fill = GridBagConstraints.HORIZONTAL;
|
|
|
- gbc_lblGp.insets = new Insets(0, 0, 0, 1);
|
|
|
- gbc_lblGp.gridx = 5;
|
|
|
- gbc_lblGp.gridy = 1;
|
|
|
- panel.add(lblGp, gbc_lblGp);
|
|
|
-
|
|
|
- JLabel lblSp = new JLabel("sp");
|
|
|
- lblSp.setOpaque(true);
|
|
|
- lblSp.setHorizontalAlignment(SwingConstants.CENTER);
|
|
|
- lblSp.setForeground(Color.WHITE);
|
|
|
- lblSp.setFont(new Font("Tahoma", Font.BOLD, 8));
|
|
|
- lblSp.setBackground(Color.BLACK);
|
|
|
- GridBagConstraints gbc_lblSp = new GridBagConstraints();
|
|
|
- gbc_lblSp.fill = GridBagConstraints.HORIZONTAL;
|
|
|
- gbc_lblSp.insets = new Insets(0, 0, 0, 1);
|
|
|
- gbc_lblSp.gridx = 6;
|
|
|
- gbc_lblSp.gridy = 1;
|
|
|
- panel.add(lblSp, gbc_lblSp);
|
|
|
-
|
|
|
- JLabel lblCp = new JLabel("cp");
|
|
|
- lblCp.setOpaque(true);
|
|
|
- lblCp.setHorizontalAlignment(SwingConstants.CENTER);
|
|
|
- lblCp.setForeground(Color.WHITE);
|
|
|
- lblCp.setFont(new Font("Tahoma", Font.BOLD, 8));
|
|
|
- lblCp.setBackground(Color.BLACK);
|
|
|
- GridBagConstraints gbc_lblCp = new GridBagConstraints();
|
|
|
- gbc_lblCp.insets = new Insets(0, 0, 0, 0);
|
|
|
- gbc_lblCp.fill = GridBagConstraints.HORIZONTAL;
|
|
|
- gbc_lblCp.gridx = 7;
|
|
|
- gbc_lblCp.gridy = 1;
|
|
|
- panel.add(lblCp, gbc_lblCp);
|
|
|
-
|
|
|
JTextField txtName = new JTextField(item.getName());
|
|
|
txtName.setEditable(false);
|
|
|
txtName.setColumns(10);
|
|
|
GridBagConstraints gbc_txtName = new GridBagConstraints();
|
|
|
- gbc_txtName.insets = new Insets(0, 0, 0, 1);
|
|
|
+ gbc_txtName.insets = new Insets(0, 0, 0, 0);
|
|
|
gbc_txtName.fill = GridBagConstraints.HORIZONTAL;
|
|
|
gbc_txtName.gridx = 0;
|
|
|
gbc_txtName.gridy = 2;
|
|
|
@@ -164,7 +112,7 @@ class ItemInfoPanel extends JPanel {
|
|
|
txtWeight.setEditable(false);
|
|
|
txtWeight.setColumns(10);
|
|
|
GridBagConstraints gbc_txtWeight = new GridBagConstraints();
|
|
|
- gbc_txtWeight.insets = new Insets(0, 0, 0, 1);
|
|
|
+ gbc_txtWeight.insets = new Insets(0, 0, 0, 0);
|
|
|
gbc_txtWeight.fill = GridBagConstraints.HORIZONTAL;
|
|
|
gbc_txtWeight.gridx = 1;
|
|
|
gbc_txtWeight.gridy = 2;
|
|
|
@@ -174,63 +122,113 @@ class ItemInfoPanel extends JPanel {
|
|
|
txtPage.setEditable(false);
|
|
|
txtPage.setColumns(10);
|
|
|
GridBagConstraints gbc_txtPage = new GridBagConstraints();
|
|
|
- gbc_txtPage.insets = new Insets(0, 0, 0, 1);
|
|
|
gbc_txtPage.fill = GridBagConstraints.HORIZONTAL;
|
|
|
gbc_txtPage.gridx = 2;
|
|
|
gbc_txtPage.gridy = 2;
|
|
|
panel.add(txtPage, gbc_txtPage);
|
|
|
|
|
|
- Component horizontalStrut = Box.createHorizontalStrut(20);
|
|
|
- GridBagConstraints gbc_horizontalStrut = new GridBagConstraints();
|
|
|
- gbc_horizontalStrut.insets = new Insets(0, 0, 0, 1);
|
|
|
- gbc_horizontalStrut.gridx = 3;
|
|
|
- gbc_horizontalStrut.gridy = 2;
|
|
|
- panel.add(horizontalStrut, gbc_horizontalStrut);
|
|
|
+ JPanel panel_1 = new JPanel();
|
|
|
+ GridBagConstraints gbc_panel_1 = new GridBagConstraints();
|
|
|
+ gbc_panel_1.fill = GridBagConstraints.BOTH;
|
|
|
+ gbc_panel_1.gridx = 0;
|
|
|
+ gbc_panel_1.gridy = 1;
|
|
|
+ add(panel_1, gbc_panel_1);
|
|
|
+ GridBagLayout gbl_panel_1 = new GridBagLayout();
|
|
|
+ gbl_panel_1.columnWidths = new int[]{0, 0, 0, 0, 0};
|
|
|
+ gbl_panel_1.rowHeights = new int[]{0, 0, 0};
|
|
|
+ gbl_panel_1.columnWeights = new double[]{1.0, 1.0, 1.0, 1.0, Double.MIN_VALUE};
|
|
|
+ gbl_panel_1.rowWeights = new double[]{0.0, 0.0, Double.MIN_VALUE};
|
|
|
+ panel_1.setLayout(gbl_panel_1);
|
|
|
+
|
|
|
+ JLabel lblPp = new JLabel("pp");
|
|
|
+ GridBagConstraints gbc_lblPp = new GridBagConstraints();
|
|
|
+ gbc_lblPp.fill = GridBagConstraints.HORIZONTAL;
|
|
|
+ gbc_lblPp.insets = new Insets(0, 0, 0, 1);
|
|
|
+ gbc_lblPp.gridx = 0;
|
|
|
+ gbc_lblPp.gridy = 0;
|
|
|
+ panel_1.add(lblPp, gbc_lblPp);
|
|
|
+ lblPp.setOpaque(true);
|
|
|
+ lblPp.setHorizontalAlignment(SwingConstants.CENTER);
|
|
|
+ lblPp.setForeground(Color.WHITE);
|
|
|
+ lblPp.setFont(new Font("Tahoma", Font.BOLD, 8));
|
|
|
+ lblPp.setBackground(Color.BLACK);
|
|
|
+
|
|
|
+ JLabel lblGp = new JLabel("gp");
|
|
|
+ GridBagConstraints gbc_lblGp = new GridBagConstraints();
|
|
|
+ gbc_lblGp.fill = GridBagConstraints.HORIZONTAL;
|
|
|
+ gbc_lblGp.insets = new Insets(0, 0, 0, 1);
|
|
|
+ gbc_lblGp.gridx = 1;
|
|
|
+ gbc_lblGp.gridy = 0;
|
|
|
+ panel_1.add(lblGp, gbc_lblGp);
|
|
|
+ lblGp.setOpaque(true);
|
|
|
+ lblGp.setHorizontalAlignment(SwingConstants.CENTER);
|
|
|
+ lblGp.setForeground(Color.WHITE);
|
|
|
+ lblGp.setFont(new Font("Tahoma", Font.BOLD, 8));
|
|
|
+ lblGp.setBackground(Color.BLACK);
|
|
|
+
|
|
|
+ JLabel lblSp = new JLabel("sp");
|
|
|
+ GridBagConstraints gbc_lblSp = new GridBagConstraints();
|
|
|
+ gbc_lblSp.fill = GridBagConstraints.HORIZONTAL;
|
|
|
+ gbc_lblSp.insets = new Insets(0, 0, 0, 1);
|
|
|
+ gbc_lblSp.gridx = 2;
|
|
|
+ gbc_lblSp.gridy = 0;
|
|
|
+ panel_1.add(lblSp, gbc_lblSp);
|
|
|
+ lblSp.setOpaque(true);
|
|
|
+ lblSp.setHorizontalAlignment(SwingConstants.CENTER);
|
|
|
+ lblSp.setForeground(Color.WHITE);
|
|
|
+ lblSp.setFont(new Font("Tahoma", Font.BOLD, 8));
|
|
|
+ lblSp.setBackground(Color.BLACK);
|
|
|
+
|
|
|
+ JLabel lblCp = new JLabel("cp");
|
|
|
+ GridBagConstraints gbc_lblCp = new GridBagConstraints();
|
|
|
+ gbc_lblCp.insets = new Insets(0, 0, 0, 1);
|
|
|
+ gbc_lblCp.fill = GridBagConstraints.HORIZONTAL;
|
|
|
+ gbc_lblCp.gridx = 3;
|
|
|
+ gbc_lblCp.gridy = 0;
|
|
|
+ panel_1.add(lblCp, gbc_lblCp);
|
|
|
+ lblCp.setOpaque(true);
|
|
|
+ lblCp.setHorizontalAlignment(SwingConstants.CENTER);
|
|
|
+ lblCp.setForeground(Color.WHITE);
|
|
|
+ lblCp.setFont(new Font("Tahoma", Font.BOLD, 8));
|
|
|
+ lblCp.setBackground(Color.BLACK);
|
|
|
|
|
|
JTextField txtPP = new JTextField(StringHelper.toString(item.getValue().getPp()));
|
|
|
- txtPP.setEditable(false);
|
|
|
- txtPP.setColumns(10);
|
|
|
GridBagConstraints gbc_txtPP = new GridBagConstraints();
|
|
|
- gbc_txtPP.insets = new Insets(0, 0, 0, 1);
|
|
|
gbc_txtPP.fill = GridBagConstraints.HORIZONTAL;
|
|
|
- gbc_txtPP.gridx = 4;
|
|
|
- gbc_txtPP.gridy = 2;
|
|
|
- panel.add(txtPP, gbc_txtPP);
|
|
|
+ gbc_txtPP.insets = new Insets(0, 0, 0, 0);
|
|
|
+ gbc_txtPP.gridx = 0;
|
|
|
+ gbc_txtPP.gridy = 1;
|
|
|
+ panel_1.add(txtPP, gbc_txtPP);
|
|
|
+ txtPP.setEditable(false);
|
|
|
+ txtPP.setColumns(5);
|
|
|
|
|
|
JTextField txtGP = new JTextField(StringHelper.toString(item.getValue().getGp()));
|
|
|
- txtGP.setEditable(false);
|
|
|
- txtGP.setColumns(10);
|
|
|
GridBagConstraints gbc_txtGP = new GridBagConstraints();
|
|
|
- gbc_txtGP.insets = new Insets(0, 0, 0, 1);
|
|
|
gbc_txtGP.fill = GridBagConstraints.HORIZONTAL;
|
|
|
- gbc_txtGP.gridx = 5;
|
|
|
- gbc_txtGP.gridy = 2;
|
|
|
- panel.add(txtGP, gbc_txtGP);
|
|
|
+ gbc_txtGP.insets = new Insets(0, 0, 0, 0);
|
|
|
+ gbc_txtGP.gridx = 1;
|
|
|
+ gbc_txtGP.gridy = 1;
|
|
|
+ panel_1.add(txtGP, gbc_txtGP);
|
|
|
+ txtGP.setEditable(false);
|
|
|
+ txtGP.setColumns(5);
|
|
|
|
|
|
JTextField txtSP = new JTextField(StringHelper.toString(item.getValue().getSp()));
|
|
|
- txtSP.setEditable(false);
|
|
|
- txtSP.setColumns(10);
|
|
|
GridBagConstraints gbc_txtSP = new GridBagConstraints();
|
|
|
- gbc_txtSP.insets = new Insets(0, 0, 0, 1);
|
|
|
gbc_txtSP.fill = GridBagConstraints.HORIZONTAL;
|
|
|
- gbc_txtSP.gridx = 6;
|
|
|
- gbc_txtSP.gridy = 2;
|
|
|
- panel.add(txtSP, gbc_txtSP);
|
|
|
+ gbc_txtSP.insets = new Insets(0, 0, 0, 0);
|
|
|
+ gbc_txtSP.gridx = 2;
|
|
|
+ gbc_txtSP.gridy = 1;
|
|
|
+ panel_1.add(txtSP, gbc_txtSP);
|
|
|
+ txtSP.setEditable(false);
|
|
|
+ txtSP.setColumns(5);
|
|
|
|
|
|
JTextField txtCP = new JTextField(StringHelper.toString(item.getValue().getCp()));
|
|
|
- txtCP.setEditable(false);
|
|
|
- txtCP.setColumns(10);
|
|
|
GridBagConstraints gbc_txtCP = new GridBagConstraints();
|
|
|
gbc_txtCP.fill = GridBagConstraints.HORIZONTAL;
|
|
|
- gbc_txtCP.gridx = 7;
|
|
|
- gbc_txtCP.gridy = 2;
|
|
|
- panel.add(txtCP, gbc_txtCP);
|
|
|
-
|
|
|
- JPanel panel_1 = new JPanel();
|
|
|
- GridBagConstraints gbc_panel_1 = new GridBagConstraints();
|
|
|
- gbc_panel_1.fill = GridBagConstraints.BOTH;
|
|
|
- gbc_panel_1.gridx = 0;
|
|
|
- gbc_panel_1.gridy = 1;
|
|
|
- add(panel_1, gbc_panel_1);
|
|
|
+ gbc_txtCP.gridx = 3;
|
|
|
+ gbc_txtCP.gridy = 1;
|
|
|
+ panel_1.add(txtCP, gbc_txtCP);
|
|
|
+ txtCP.setEditable(false);
|
|
|
+ txtCP.setColumns(5);
|
|
|
}
|
|
|
}
|