Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

enhanced product calc

  • Loading branch information...
commit 7bf95bb3fc5f23bddc35e8dbe93e75b6057df2f7 1 parent 0e5a89b
@anti43 authored
View
2  src/mpv5/ui/dialogs/subcomponents/ControlPanel_Userproperties.java
@@ -126,7 +126,7 @@ private void initComponents() {
setLayout(new java.awt.BorderLayout());
jPanel1.setBackground(new java.awt.Color(255, 255, 255));
- java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("mpv5/resources/languages/Panels"); // NOI18N
+ java.util.ResourceBundle bundle = mpv5.i18n.LanguageManager.getBundle(); // NOI18N
jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ControlPanel_Userproperties.jPanel1.border.title"))); // NOI18N
jPanel1.setName("jPanel1"); // NOI18N
View
2  src/mpv5/ui/dialogs/subcomponents/wizard_FirstSettings1.java
@@ -46,7 +46,7 @@ private void initComponents() {
setLayout(new java.awt.BorderLayout());
jPanel1.setBackground(new java.awt.Color(255, 255, 255));
- java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("mpv5/resources/languages/Panels"); // NOI18N
+ java.util.ResourceBundle bundle = mpv5.i18n.LanguageManager.getBundle(); // NOI18N
jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("wizard_FirstSettings1.jPanel1.border.title"))); // NOI18N
jPanel1.setName("jPanel1"); // NOI18N
View
2  src/mpv5/ui/dialogs/subcomponents/wizard_FirstSettings5.java
@@ -37,7 +37,7 @@ private void initComponents() {
setLayout(new java.awt.BorderLayout());
jPanel1.setBackground(new java.awt.Color(255, 255, 255));
- java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("mpv5/resources/languages/Panels"); // NOI18N
+ java.util.ResourceBundle bundle = mpv5.i18n.LanguageManager.getBundle(); // NOI18N
jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("wizard_FirstSettings5.jPanel1.border.title"))); // NOI18N
jPanel1.setName("jPanel1"); // NOI18N
View
91 src/mpv5/ui/panels/ProductPanel.form
@@ -37,7 +37,7 @@
<Component id="rightpane" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
- <Component id="toolbarpane" pref="710" max="32767" attributes="2"/>
+ <Component id="toolbarpane" pref="849" max="32767" attributes="2"/>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
@@ -49,7 +49,7 @@
<EmptySpace min="-2" pref="0" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="rightpane" max="32767" attributes="2"/>
- <Component id="leftpane" alignment="0" pref="544" max="32767" attributes="1"/>
+ <Component id="leftpane" alignment="0" max="32767" attributes="1"/>
</Group>
</Group>
</Group>
@@ -79,9 +79,9 @@
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
- <EmptySpace min="-2" pref="2" max="-2" attributes="0"/>
+ <EmptySpace min="0" pref="0" max="-2" attributes="0"/>
<Component id="jPanel7" pref="0" max="32767" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
+ <EmptySpace min="0" pref="0" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="removefile" alignment="1" min="-2" pref="24" max="-2" attributes="0"/>
<Component id="addfile" alignment="1" min="-2" pref="24" max="-2" attributes="0"/>
@@ -99,16 +99,16 @@
<EmptySpace type="unrelated" max="-2" attributes="0"/>
<Component id="jPanel1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
- <Component id="jTabbedPane1" min="-2" pref="277" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
+ <Component id="jTabbedPane1" min="-2" pref="253" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" attributes="0">
+ <Component id="jPanel7" pref="0" max="32767" attributes="0"/>
+ <Group type="102" alignment="0" attributes="0">
+ <EmptySpace max="-2" attributes="0"/>
<Component id="addfile" min="-2" max="-2" attributes="1"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="removefile" min="-2" max="-2" attributes="1"/>
- <EmptySpace min="0" pref="0" max="32767" attributes="0"/>
+ <EmptySpace pref="46" max="32767" attributes="0"/>
</Group>
- <Component id="jPanel7" pref="0" max="32767" attributes="0"/>
</Group>
</Group>
</Group>
@@ -128,26 +128,28 @@
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="1" attributes="0">
+ <Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" max="-2" attributes="0"/>
- <Group type="103" groupAlignment="1" attributes="0">
- <Component id="path" alignment="0" max="32767" attributes="0"/>
- <Group type="102" alignment="1" attributes="0">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Component id="path" max="32767" attributes="0"/>
+ <Group type="102" attributes="0">
<Group type="103" groupAlignment="0" max="-2" attributes="0">
- <Component id="stype" alignment="0" min="-2" pref="216" max="-2" attributes="0"/>
- <Component id="familyselect" alignment="0" pref="384" max="32767" attributes="1"/>
- <Component id="cnumber" alignment="0" max="32767" attributes="1"/>
+ <Component id="cnumber" pref="275" max="32767" attributes="1"/>
+ <Component id="stype" max="32767" attributes="0"/>
</Group>
- <EmptySpace max="32767" attributes="0"/>
- <Group type="103" groupAlignment="1" max="-2" attributes="0">
- <Group type="102" alignment="1" attributes="1">
- <Component id="jLabel4" max="32767" attributes="0"/>
+ <EmptySpace min="-2" max="-2" attributes="0"/>
+ <Group type="103" groupAlignment="0" max="-2" attributes="0">
+ <Group type="102" attributes="0">
+ <Component id="jLabel4" min="-2" pref="100" max="-2" attributes="0"/>
+ <EmptySpace min="0" pref="0" max="-2" attributes="0"/>
+ <Component id="groupnameselect" min="-2" pref="189" max="-2" attributes="1"/>
<EmptySpace max="-2" attributes="0"/>
- <Component id="button_groupadd" min="-2" pref="18" max="-2" attributes="0"/>
+ <Component id="button_groupadd" pref="0" max="32767" attributes="0"/>
</Group>
- <Component id="addedby" alignment="1" min="-2" pref="97" max="-2" attributes="0"/>
- <Component id="groupnameselect" alignment="1" min="-2" pref="286" max="-2" attributes="1"/>
+ <Component id="familyselect" min="-2" pref="317" max="-2" attributes="1"/>
</Group>
+ <EmptySpace max="32767" attributes="0"/>
+ <Component id="addedby" min="-2" pref="97" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="-2" max="-2" attributes="0"/>
@@ -157,30 +159,25 @@
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
- <EmptySpace max="-2" attributes="0"/>
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="stype" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="addedby" alignment="0" min="-2" pref="19" max="-2" attributes="0"/>
- </Group>
- <EmptySpace min="-2" pref="6" max="-2" attributes="0"/>
- <Group type="103" groupAlignment="0" max="-2" attributes="0">
- <Group type="102" attributes="0">
- <EmptySpace min="2" pref="2" max="-2" attributes="0"/>
- <Component id="button_groupadd" pref="0" max="32767" attributes="0"/>
- </Group>
- <Group type="103" groupAlignment="2" attributes="0">
- <Component id="familyselect" alignment="2" min="-2" max="-2" attributes="0"/>
- <Component id="jLabel4" alignment="2" min="-2" pref="16" max="-2" attributes="0"/>
- </Group>
+ <EmptySpace max="32767" attributes="0"/>
+ <Group type="103" groupAlignment="2" attributes="0">
+ <Component id="stype" alignment="2" min="-2" max="-2" attributes="0"/>
+ <Component id="familyselect" alignment="2" min="-2" max="-2" attributes="0"/>
+ <Component id="addedby" alignment="2" min="-2" pref="19" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="2" attributes="0">
- <Component id="groupnameselect" alignment="2" max="32767" attributes="0"/>
<Component id="cnumber" alignment="2" min="-2" max="-2" attributes="1"/>
+ <Component id="groupnameselect" alignment="2" min="-2" pref="20" max="-2" attributes="0"/>
+ <Component id="button_groupadd" alignment="2" min="-2" pref="20" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Component id="path" min="-2" pref="23" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
+ </Group>
+ <Group type="102" attributes="0">
+ <EmptySpace min="37" pref="37" max="-2" attributes="0"/>
+ <Component id="jLabel4" max="32767" attributes="0"/>
+ <EmptySpace min="29" pref="29" max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
@@ -476,9 +473,9 @@
<Group type="102" alignment="0" attributes="0">
<Group type="103" groupAlignment="1" max="-2" attributes="0">
<Group type="102" alignment="1" attributes="0">
- <Component id="calcFactor" max="32767" attributes="0"/>
+ <Component id="calcFactor" pref="0" max="32767" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
- <Component id="jButton3" min="-2" pref="30" max="-2" attributes="0"/>
+ <Component id="jButton3" min="-2" pref="51" max="-2" attributes="0"/>
</Group>
<Component id="unit" alignment="0" pref="237" max="32767" attributes="0"/>
<Component id="netvalue" alignment="0" max="32767" attributes="0"/>
@@ -492,7 +489,7 @@
</Group>
</Group>
<EmptySpace max="-2" attributes="0"/>
- <Component id="jScrollPane3" pref="210" max="32767" attributes="0"/>
+ <Component id="jScrollPane3" pref="349" max="32767" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
@@ -529,7 +526,7 @@
<Component id="calcFactor" alignment="2" min="-2" max="-2" attributes="0"/>
<Component id="calcResult" alignment="2" min="-2" max="-2" attributes="0"/>
</Group>
- <EmptySpace min="0" pref="21" max="32767" attributes="0"/>
+ <EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Component id="jScrollPane3" max="32767" attributes="0"/>
</Group>
@@ -864,7 +861,7 @@
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
<Component id="jButton2" min="-2" max="-2" attributes="0"/>
</Group>
- <EmptySpace pref="95" max="32767" attributes="0"/>
+ <EmptySpace pref="234" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
@@ -874,9 +871,9 @@
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jButton2" min="-2" max="-2" attributes="0"/>
- <EmptySpace pref="189" max="32767" attributes="0"/>
+ <EmptySpace pref="165" max="32767" attributes="0"/>
</Group>
- <Component id="prizes" alignment="0" pref="235" max="32767" attributes="0"/>
+ <Component id="prizes" alignment="0" pref="225" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
</Layout>
View
1,363 src/mpv5/ui/panels/ProductPanel.java
@@ -239,6 +239,18 @@ public void keyPressed(KeyEvent e) {
public void keyReleased(KeyEvent e) {
}
});
+
+ netvalue.getTextField().addKeyListener(new KeyListener() {
+ public void keyTyped(KeyEvent e) {
+ recalc();
+ }
+
+ public void keyPressed(KeyEvent e) {
+ }
+
+ public void keyReleased(KeyEvent e) {
+ }
+ });
calcResult.getTextField().addKeyListener(new KeyListener() {
public void keyTyped(KeyEvent e) {
@@ -410,629 +422,628 @@ public void run() {
* regenerated by the Form Editor.
*/
@SuppressWarnings({"unchecked", "deprecation"})
- // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
- private void initComponents() {
-
- buttonGroup1 = new javax.swing.ButtonGroup();
- leftpane = new javax.swing.JPanel();
- rightpane = new javax.swing.JPanel();
- jPanel1 = new javax.swing.JPanel();
- cnumber = new mpv5.ui.beans.LabeledTextField();
- addedby = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- button_groupadd = new javax.swing.JButton();
- stype = new mpv5.ui.beans.LabeledCombobox();
- familyselect = new mpv5.ui.beans.LabeledCombobox();
- groupnameselect = new mpv5.ui.beans.MPCombobox();
- path = new javax.swing.JLabel();
- jToolBar1 = new javax.swing.JToolBar();
- button_preview = new javax.swing.JButton();
- button_order = new javax.swing.JButton();
- button_listedit = new javax.swing.JButton();
- jSeparator1 = new javax.swing.JToolBar.Separator();
- prinitingComboBox1 = new mpv5.ui.beans.PrinitingComboBox();
- jTabbedPane1 = new javax.swing.JTabbedPane();
- jPanel4 = new javax.swing.JPanel();
- cname = new mpv5.ui.beans.LabeledTextField();
- ean = new mpv5.ui.beans.LabeledTextField();
- url = new mpv5.ui.beans.LabeledTextField();
- netvalue = new mpv5.ui.beans.LabeledTextField();
- unit = new mpv5.ui.beans.LabeledTextField();
- selecttax = new mpv5.ui.beans.LabeledCombobox();
- reference = new mpv5.ui.beans.LabeledTextField();
- extvalue = new mpv5.ui.beans.LabeledTextField();
- jScrollPane3 = new javax.swing.JScrollPane();
- class NoTabTextArea extends JTextArea {
- protected void processComponentKeyEvent( KeyEvent e ) {
- if ( e.getID() == KeyEvent.KEY_PRESSED &&
- e.getKeyCode() == KeyEvent.VK_TAB ) {
- e.consume();
- if (e.isShiftDown()) {
- transferFocusBackward();
- } else {
- transferFocus();
- }
- } else {
- super.processComponentKeyEvent( e );
- }
- }
- }
- description = new NoTabTextArea()
- ;
- contactname1 = new mpv5.ui.beans.LabeledCombobox();
- calcFactor = new mpv5.ui.beans.LabeledTextField();
- calcResult = new mpv5.ui.beans.LabeledTextField();
- jButton3 = new javax.swing.JButton();
- jPanel6 = new javax.swing.JPanel();
- jScrollPane1 = new javax.swing.JScrollPane();
- jPanel3 = new javax.swing.JPanel();
- supplierpanel = new javax.swing.JPanel();
- jPanel9 = new javax.swing.JPanel();
- stack = new mpv5.ui.beans.LabeledTextField();
- threshold = new mpv5.ui.beans.LabeledTextField();
- inventoryDisabled = new javax.swing.JCheckBox();
- jPanel2 = new javax.swing.JPanel();
- jButton1 = new javax.swing.JButton();
- prizes = new javax.swing.JPanel();
- jButton2 = new javax.swing.JButton();
- jPanel7 = new javax.swing.JPanel();
- jSplitPane1 = new javax.swing.JSplitPane();
- imgpanel = new javax.swing.JPanel();
- imageprev = new javax.swing.JLabel();
- jScrollPane2 = new javax.swing.JScrollPane();
- dataTable = new mpv5.ui.misc.MPTable(this) {
- public Component prepareRenderer(TableCellRenderer renderer,
- int rowIndex, int vColIndex) {
- Component c = super.prepareRenderer(renderer, rowIndex, vColIndex);
- if (c instanceof JComponent) {
- JComponent jc = (JComponent)c;
- jc.setToolTipText(String.valueOf(getValueAt(rowIndex, vColIndex)));
- }
- return c;
- }
- }
- ;
- removefile = new javax.swing.JButton();
- addfile = new javax.swing.JButton();
- toolbarpane = new javax.swing.JPanel();
-
- java.util.ResourceBundle bundle = mpv5.i18n.LanguageManager.getBundle(); // NOI18N
- setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ProductPanel.border.title_1"))); // NOI18N
- setName("Form"); // NOI18N
-
- leftpane.setName("leftpane"); // NOI18N
- leftpane.setLayout(new java.awt.BorderLayout());
-
- rightpane.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ProductPanel.rightpane.border.title"))); // NOI18N
- rightpane.setName("rightpane"); // NOI18N
-
- jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
- jPanel1.setName("jPanel1"); // NOI18N
-
- cnumber.set_Label(bundle.getString("ProductPanel.cnumber._Label")); // NOI18N
- cnumber.setFocusable(false);
- cnumber.setFont(cnumber.getFont());
- cnumber.setName("cnumber"); // NOI18N
-
- addedby.setFont(addedby.getFont());
- addedby.setText(bundle.getString("ProductPanel.addedby.text")); // NOI18N
- addedby.setToolTipText(bundle.getString("ProductPanel.addedby.toolTipText")); // NOI18N
- addedby.setBorder(javax.swing.BorderFactory.createEtchedBorder());
- addedby.setName("addedby"); // NOI18N
-
- jLabel4.setFont(jLabel4.getFont());
- jLabel4.setText(bundle.getString("ProductPanel.jLabel4.text")); // NOI18N
- jLabel4.setName("jLabel4"); // NOI18N
-
- button_groupadd.setFont(button_groupadd.getFont().deriveFont(button_groupadd.getFont().getStyle() & ~java.awt.Font.BOLD, button_groupadd.getFont().getSize()-2));
- button_groupadd.setText(bundle.getString("ProductPanel.button_groupadd.text")); // NOI18N
- button_groupadd.setFocusable(false);
- button_groupadd.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
- button_groupadd.setName("button_groupadd"); // NOI18N
- button_groupadd.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
- button_groupadd.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- button_groupaddActionPerformed(evt);
- }
- });
-
- stype.set_Label(bundle.getString("ProductPanel.stype._Label")); // NOI18N
- stype.setName("stype"); // NOI18N
-
- familyselect.set_Label(bundle.getString("ProductPanel.familyselect._Label")); // NOI18N
- familyselect.setName("familyselect"); // NOI18N
- familyselect.setSearchOnEnterEnabled(false);
-
- groupnameselect.setName("groupnameselect"); // NOI18N
-
- path.setFont(path.getFont().deriveFont(path.getFont().getStyle() | java.awt.Font.BOLD, path.getFont().getSize()+1));
- path.setText(bundle.getString("ProductPanel.path.text")); // NOI18N
- path.setBorder(javax.swing.BorderFactory.createLineBorder(javax.swing.UIManager.getDefaults().getColor("Button.highlight")));
- path.setName("path"); // NOI18N
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
- .addComponent(path, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
- .addComponent(stype, javax.swing.GroupLayout.PREFERRED_SIZE, 216, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(familyselect, javax.swing.GroupLayout.DEFAULT_SIZE, 384, Short.MAX_VALUE)
- .addComponent(cnumber, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(button_groupadd, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addComponent(addedby, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(groupnameselect, javax.swing.GroupLayout.PREFERRED_SIZE, 286, javax.swing.GroupLayout.PREFERRED_SIZE))))
- .addContainerGap())
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(stype, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(addedby, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addGap(6, 6, 6)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addGap(2, 2, 2)
- .addComponent(button_groupadd, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
- .addComponent(familyselect, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
- .addComponent(groupnameselect, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(cnumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(path, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap())
- );
-
- jToolBar1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
- jToolBar1.setFloatable(false);
- jToolBar1.setRollover(true);
- jToolBar1.setMaximumSize(new java.awt.Dimension(366, 28));
- jToolBar1.setName("jToolBar1"); // NOI18N
- jToolBar1.setPreferredSize(new java.awt.Dimension(306, 28));
-
- button_preview.setText(bundle.getString("ProductPanel.button_preview.text")); // NOI18N
- button_preview.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 153, 153), 1, true));
- button_preview.setFocusable(false);
- button_preview.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
- button_preview.setMaximumSize(new java.awt.Dimension(120, 20));
- button_preview.setMinimumSize(new java.awt.Dimension(80, 20));
- button_preview.setName("button_preview"); // NOI18N
- button_preview.setPreferredSize(new java.awt.Dimension(100, 20));
- button_preview.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
- button_preview.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- button_previewActionPerformed(evt);
- }
- });
- jToolBar1.add(button_preview);
-
- button_order.setText(bundle.getString("ProductPanel.button_order.text")); // NOI18N
- button_order.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 153, 153), 1, true));
- button_order.setFocusable(false);
- button_order.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
- button_order.setMaximumSize(new java.awt.Dimension(120, 20));
- button_order.setMinimumSize(new java.awt.Dimension(80, 20));
- button_order.setName("button_order"); // NOI18N
- button_order.setPreferredSize(new java.awt.Dimension(100, 20));
- button_order.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
- button_order.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- button_orderActionPerformed(evt);
+ // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
+ private void initComponents() {
+
+ buttonGroup1 = new javax.swing.ButtonGroup();
+ leftpane = new javax.swing.JPanel();
+ rightpane = new javax.swing.JPanel();
+ jPanel1 = new javax.swing.JPanel();
+ cnumber = new mpv5.ui.beans.LabeledTextField();
+ addedby = new javax.swing.JLabel();
+ jLabel4 = new javax.swing.JLabel();
+ button_groupadd = new javax.swing.JButton();
+ stype = new mpv5.ui.beans.LabeledCombobox();
+ familyselect = new mpv5.ui.beans.LabeledCombobox();
+ groupnameselect = new mpv5.ui.beans.MPCombobox();
+ path = new javax.swing.JLabel();
+ jToolBar1 = new javax.swing.JToolBar();
+ button_preview = new javax.swing.JButton();
+ button_order = new javax.swing.JButton();
+ button_listedit = new javax.swing.JButton();
+ jSeparator1 = new javax.swing.JToolBar.Separator();
+ prinitingComboBox1 = new mpv5.ui.beans.PrinitingComboBox();
+ jTabbedPane1 = new javax.swing.JTabbedPane();
+ jPanel4 = new javax.swing.JPanel();
+ cname = new mpv5.ui.beans.LabeledTextField();
+ ean = new mpv5.ui.beans.LabeledTextField();
+ url = new mpv5.ui.beans.LabeledTextField();
+ netvalue = new mpv5.ui.beans.LabeledTextField();
+ unit = new mpv5.ui.beans.LabeledTextField();
+ selecttax = new mpv5.ui.beans.LabeledCombobox();
+ reference = new mpv5.ui.beans.LabeledTextField();
+ extvalue = new mpv5.ui.beans.LabeledTextField();
+ jScrollPane3 = new javax.swing.JScrollPane();
+ class NoTabTextArea extends JTextArea {
+ protected void processComponentKeyEvent( KeyEvent e ) {
+ if ( e.getID() == KeyEvent.KEY_PRESSED &&
+ e.getKeyCode() == KeyEvent.VK_TAB ) {
+ e.consume();
+ if (e.isShiftDown()) {
+ transferFocusBackward();
+ } else {
+ transferFocus();
+ }
+ } else {
+ super.processComponentKeyEvent( e );
}
- });
- jToolBar1.add(button_order);
-
- button_listedit.setText(bundle.getString("ProductPanel.button_listedit.text")); // NOI18N
- button_listedit.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 153, 153), 1, true));
- button_listedit.setEnabled(false);
- button_listedit.setFocusable(false);
- button_listedit.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
- button_listedit.setMaximumSize(new java.awt.Dimension(120, 20));
- button_listedit.setMinimumSize(new java.awt.Dimension(80, 20));
- button_listedit.setName("button_listedit"); // NOI18N
- button_listedit.setPreferredSize(new java.awt.Dimension(100, 20));
- button_listedit.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
- button_listedit.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- button_listeditActionPerformed(evt);
+ }
+ }
+ description = new NoTabTextArea()
+ ;
+ contactname1 = new mpv5.ui.beans.LabeledCombobox();
+ calcFactor = new mpv5.ui.beans.LabeledTextField();
+ calcResult = new mpv5.ui.beans.LabeledTextField();
+ jButton3 = new javax.swing.JButton();
+ jPanel6 = new javax.swing.JPanel();
+ jScrollPane1 = new javax.swing.JScrollPane();
+ jPanel3 = new javax.swing.JPanel();
+ supplierpanel = new javax.swing.JPanel();
+ jPanel9 = new javax.swing.JPanel();
+ stack = new mpv5.ui.beans.LabeledTextField();
+ threshold = new mpv5.ui.beans.LabeledTextField();
+ inventoryDisabled = new javax.swing.JCheckBox();
+ jPanel2 = new javax.swing.JPanel();
+ jButton1 = new javax.swing.JButton();
+ prizes = new javax.swing.JPanel();
+ jButton2 = new javax.swing.JButton();
+ jPanel7 = new javax.swing.JPanel();
+ jSplitPane1 = new javax.swing.JSplitPane();
+ imgpanel = new javax.swing.JPanel();
+ imageprev = new javax.swing.JLabel();
+ jScrollPane2 = new javax.swing.JScrollPane();
+ dataTable = new mpv5.ui.misc.MPTable(this) {
+ public Component prepareRenderer(TableCellRenderer renderer,
+ int rowIndex, int vColIndex) {
+ Component c = super.prepareRenderer(renderer, rowIndex, vColIndex);
+ if (c instanceof JComponent) {
+ JComponent jc = (JComponent)c;
+ jc.setToolTipText(String.valueOf(getValueAt(rowIndex, vColIndex)));
}
- });
- jToolBar1.add(button_listedit);
-
- jSeparator1.setName("jSeparator1"); // NOI18N
- jToolBar1.add(jSeparator1);
-
- prinitingComboBox1.setMaximumSize(new java.awt.Dimension(220, 27));
- prinitingComboBox1.setMinimumSize(new java.awt.Dimension(109, 20));
- prinitingComboBox1.setName("prinitingComboBox1"); // NOI18N
- prinitingComboBox1.setPreferredSize(new java.awt.Dimension(200, 20));
- jToolBar1.add(prinitingComboBox1);
-
- jTabbedPane1.setName("jTabbedPane1"); // NOI18N
-
- jPanel4.setBackground(new java.awt.Color(204, 204, 204));
- jPanel4.setBorder(javax.swing.BorderFactory.createEtchedBorder());
- jPanel4.setFocusCycleRoot(true);
- jPanel4.setName("jPanel4"); // NOI18N
-
- cname.set_Label(bundle.getString("ProductPanel.cname._Label_1")); // NOI18N
- cname.setName("cname"); // NOI18N
-
- ean.set_Label(bundle.getString("ProductPanel.ean._Label_1")); // NOI18N
- ean.setName("ean"); // NOI18N
-
- url.set_Label(bundle.getString("ProductPanel.url._Label_1")); // NOI18N
- url.setName("url"); // NOI18N
-
- netvalue.set_Label(bundle.getString("ProductPanel.netvalue._Label_1")); // NOI18N
- netvalue.setName("netvalue"); // NOI18N
- netvalue.setNextFocusableComponent(ean);
-
- unit.set_Label(bundle.getString("ProductPanel.unit._Label")); // NOI18N
- unit.setName("unit"); // NOI18N
- unit.setNextFocusableComponent(reference);
-
- selecttax.set_Label(bundle.getString("ProductPanel.selecttax._Label_1")); // NOI18N
- selecttax.setName("selecttax"); // NOI18N
-
- reference.set_Label(bundle.getString("ProductPanel.reference._Label")); // NOI18N
- reference.setName("reference"); // NOI18N
-
- extvalue.set_Label(bundle.getString("ProductPanel.extvalue._Label")); // NOI18N
- extvalue.setName("extvalue"); // NOI18N
- extvalue.setNextFocusableComponent(url);
-
- jScrollPane3.setName("jScrollPane3"); // NOI18N
-
- description.setColumns(20);
- description.setLineWrap(true);
- description.setRows(5);
- description.setWrapStyleWord(true);
- description.setFocusTraversalPolicyProvider(true);
- description.setHighlighter(null);
- description.setName("description"); // NOI18N
- jScrollPane3.setViewportView(description);
-
- contactname1.set_Label(bundle.getString("ProductPanel.contactname1._Label")); // NOI18N
- contactname1.setName("contactname1"); // NOI18N
-
- calcFactor.set_Label(bundle.getString("ProductPanel.calcFactor._Label")); // NOI18N
- calcFactor.setName("calcFactor"); // NOI18N
- calcFactor.setNextFocusableComponent(ean);
-
- calcResult.set_Label(bundle.getString("ProductPanel.calcResult._Label")); // NOI18N
- calcResult.setEnabled(false);
- calcResult.setName("calcResult"); // NOI18N
- calcResult.setNextFocusableComponent(url);
-
- jButton3.setText(bundle.getString("ProductPanel.jButton3.text")); // NOI18N
- jButton3.setName("jButton3"); // NOI18N
- jButton3.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton3ActionPerformed(evt);
- }
- });
-
- javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
- jPanel4.setLayout(jPanel4Layout);
- jPanel4Layout.setHorizontalGroup(
- jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel4Layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
- .addComponent(cname, javax.swing.GroupLayout.DEFAULT_SIZE, 463, Short.MAX_VALUE)
- .addComponent(contactname1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(ean, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addGroup(jPanel4Layout.createSequentialGroup()
- .addComponent(url, javax.swing.GroupLayout.PREFERRED_SIZE, 237, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(reference, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addGroup(jPanel4Layout.createSequentialGroup()
- .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
- .addGroup(jPanel4Layout.createSequentialGroup()
- .addComponent(calcFactor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addComponent(unit, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 237, Short.MAX_VALUE)
- .addComponent(netvalue, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(extvalue, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(selecttax, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(calcResult, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 201, Short.MAX_VALUE)
- .addContainerGap())
- );
- jPanel4Layout.setVerticalGroup(
- jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel4Layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel4Layout.createSequentialGroup()
- .addComponent(cname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(8, 8, 8)
- .addComponent(ean, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(18, 18, 18)
- .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(url, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(reference, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(contactname1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(18, 18, 18)
- .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(netvalue, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(extvalue, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
- .addComponent(unit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(selecttax, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ return c;
+ }
+ }
+ ;
+ removefile = new javax.swing.JButton();
+ addfile = new javax.swing.JButton();
+ toolbarpane = new javax.swing.JPanel();
+
+ java.util.ResourceBundle bundle = mpv5.i18n.LanguageManager.getBundle(); // NOI18N
+ setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ProductPanel.border.title_1"))); // NOI18N
+ setName("Form"); // NOI18N
+
+ leftpane.setName("leftpane"); // NOI18N
+ leftpane.setLayout(new java.awt.BorderLayout());
+
+ rightpane.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ProductPanel.rightpane.border.title"))); // NOI18N
+ rightpane.setName("rightpane"); // NOI18N
+
+ jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
+ jPanel1.setName("jPanel1"); // NOI18N
+
+ cnumber.set_Label(bundle.getString("ProductPanel.cnumber._Label")); // NOI18N
+ cnumber.setFocusable(false);
+ cnumber.setFont(cnumber.getFont());
+ cnumber.setName("cnumber"); // NOI18N
+
+ addedby.setFont(addedby.getFont());
+ addedby.setText(bundle.getString("ProductPanel.addedby.text")); // NOI18N
+ addedby.setToolTipText(bundle.getString("ProductPanel.addedby.toolTipText")); // NOI18N
+ addedby.setBorder(javax.swing.BorderFactory.createEtchedBorder());
+ addedby.setName("addedby"); // NOI18N
+
+ jLabel4.setFont(jLabel4.getFont());
+ jLabel4.setText(bundle.getString("ProductPanel.jLabel4.text")); // NOI18N
+ jLabel4.setName("jLabel4"); // NOI18N
+
+ button_groupadd.setFont(button_groupadd.getFont().deriveFont(button_groupadd.getFont().getStyle() & ~java.awt.Font.BOLD, button_groupadd.getFont().getSize()-2));
+ button_groupadd.setText(bundle.getString("ProductPanel.button_groupadd.text")); // NOI18N
+ button_groupadd.setFocusable(false);
+ button_groupadd.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
+ button_groupadd.setName("button_groupadd"); // NOI18N
+ button_groupadd.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
+ button_groupadd.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ button_groupaddActionPerformed(evt);
+ }
+ });
+
+ stype.set_Label(bundle.getString("ProductPanel.stype._Label")); // NOI18N
+ stype.setName("stype"); // NOI18N
+
+ familyselect.set_Label(bundle.getString("ProductPanel.familyselect._Label")); // NOI18N
+ familyselect.setName("familyselect"); // NOI18N
+ familyselect.setSearchOnEnterEnabled(false);
+
+ groupnameselect.setName("groupnameselect"); // NOI18N
+
+ path.setFont(path.getFont().deriveFont(path.getFont().getStyle() | java.awt.Font.BOLD, path.getFont().getSize()+1));
+ path.setText(bundle.getString("ProductPanel.path.text")); // NOI18N
+ path.setBorder(javax.swing.BorderFactory.createLineBorder(javax.swing.UIManager.getDefaults().getColor("Button.highlight")));
+ path.setName("path"); // NOI18N
+
+ javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
+ jPanel1.setLayout(jPanel1Layout);
+ jPanel1Layout.setHorizontalGroup(
+ jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(path, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
+ .addComponent(cnumber, javax.swing.GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE)
+ .addComponent(stype, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(0, 0, 0)
+ .addComponent(groupnameselect, javax.swing.GroupLayout.PREFERRED_SIZE, 189, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
- .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(calcFactor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(calcResult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addGap(0, 4, Short.MAX_VALUE))
- .addComponent(jScrollPane3))
- .addContainerGap())
- );
-
- jTabbedPane1.addTab(bundle.getString("ProductPanel.jPanel4.TabConstraints.tabTitle"), jPanel4); // NOI18N
-
- jPanel6.setName(bundle.getString("ProductPanel.jPanel6.name")); // NOI18N
- jPanel6.setLayout(new java.awt.BorderLayout());
-
- jScrollPane1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
- jScrollPane1.setName("jScrollPane1"); // NOI18N
-
- jPanel3.setName("jPanel3"); // NOI18N
- jPanel3.setLayout(new java.awt.BorderLayout());
-
- supplierpanel.setBackground(new java.awt.Color(255, 255, 255));
- supplierpanel.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ProductPanel.supplierpanel.border.title"))); // NOI18N
- supplierpanel.setName("supplierpanel"); // NOI18N
- supplierpanel.setLayout(new javax.swing.BoxLayout(supplierpanel, javax.swing.BoxLayout.PAGE_AXIS));
- jPanel3.add(supplierpanel, java.awt.BorderLayout.CENTER);
-
- jPanel9.setBackground(new java.awt.Color(255, 255, 255));
- jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ProductPanel.jPanel9.border.title"))); // NOI18N
- jPanel9.setName("jPanel9"); // NOI18N
-
- stack.set_Label(bundle.getString("ProductPanel.stack._Label_1")); // NOI18N
- stack.set_ValueClass(java.math.BigDecimal.class);
- stack.setName("stack"); // NOI18N
-
- threshold.set_Label(bundle.getString("ProductPanel.threshold._Label_1")); // NOI18N
- threshold.set_ValueClass(java.math.BigDecimal.class);
- threshold.setName("threshold"); // NOI18N
-
- inventoryDisabled.setBackground(new java.awt.Color(255, 255, 255));
- inventoryDisabled.setText(bundle.getString("ProductPanel.inventoryDisabled.text")); // NOI18N
- inventoryDisabled.setName("inventoryDisabled"); // NOI18N
- inventoryDisabled.addItemListener(new java.awt.event.ItemListener() {
- public void itemStateChanged(java.awt.event.ItemEvent evt) {
- inventoryDisabledItemStateChanged(evt);
- }
- });
-
- javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
- jPanel9.setLayout(jPanel9Layout);
- jPanel9Layout.setHorizontalGroup(
- jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel9Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(stack, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(threshold, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(18, 18, 18)
- .addComponent(inventoryDisabled)
- .addContainerGap(395, Short.MAX_VALUE))
- );
- jPanel9Layout.setVerticalGroup(
- jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel9Layout.createSequentialGroup()
- .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
- .addComponent(inventoryDisabled, javax.swing.GroupLayout.DEFAULT_SIZE, 27, Short.MAX_VALUE)
- .addComponent(stack, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(threshold, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
- .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- );
-
- jPanel3.add(jPanel9, java.awt.BorderLayout.NORTH);
-
- jScrollPane1.setViewportView(jPanel3);
-
- jPanel6.add(jScrollPane1, java.awt.BorderLayout.CENTER);
-
- jTabbedPane1.addTab(bundle.getString("ProductPanel.jPanel6.TabConstraints.tabTitle"), jPanel6); // NOI18N
-
- jPanel2.setName("jPanel2"); // NOI18N
-
- jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/22/adept_install.png"))); // NOI18N
- jButton1.setText(bundle.getString("ProductPanel.jButton1.text")); // NOI18N
- jButton1.setName("jButton1"); // NOI18N
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- prizes.setBorder(javax.swing.BorderFactory.createEtchedBorder());
- prizes.setName("prizes"); // NOI18N
- prizes.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 1, 5));
-
- jButton2.setText(bundle.getString("ProductPanel.jButton2.text")); // NOI18N
- jButton2.setName("jButton2"); // NOI18N
- jButton2.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton2ActionPerformed(evt);
- }
- });
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2.setLayout(jPanel2Layout);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(2, 2, 2)
- .addComponent(prizes, javax.swing.GroupLayout.PREFERRED_SIZE, 515, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jButton1)
- .addComponent(jButton2))
- .addContainerGap(89, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jButton1)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jButton2)
- .addContainerGap(165, Short.MAX_VALUE))
- .addComponent(prizes, javax.swing.GroupLayout.DEFAULT_SIZE, 235, Short.MAX_VALUE)
- );
-
- jTabbedPane1.addTab(bundle.getString("ProductPanel.jPanel2.TabConstraints.tabTitle"), jPanel2); // NOI18N
-
- jPanel7.setName(bundle.getString("ProductPanel.jPanel7.name")); // NOI18N
- jPanel7.setLayout(new java.awt.BorderLayout());
-
- jSplitPane1.setDividerLocation(500);
- jSplitPane1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
- jSplitPane1.setName("jSplitPane1"); // NOI18N
- jSplitPane1.setOneTouchExpandable(true);
-
- imgpanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());
- imgpanel.setName("imgpanel"); // NOI18N
- imgpanel.setLayout(new java.awt.BorderLayout());
-
- imageprev.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
- imageprev.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/32/xcf.png"))); // NOI18N
- imageprev.setText(bundle.getString("ProductPanel.imageprev.text")); // NOI18N
- imageprev.setMaximumSize(new java.awt.Dimension(3200, 3200));
- imageprev.setName(bundle.getString("ProductPanel.imageprev.name")); // NOI18N
- imageprev.setPreferredSize(new java.awt.Dimension(333, 333));
- imageprev.addMouseListener(new java.awt.event.MouseAdapter() {
- public void mouseClicked(java.awt.event.MouseEvent evt) {
- imageprevMouseClicked(evt);
- }
- });
- imgpanel.add(imageprev, java.awt.BorderLayout.CENTER);
-
- jSplitPane1.setLeftComponent(imgpanel);
-
- jScrollPane2.setName("jScrollPane2"); // NOI18N
-
- dataTable.setModel(new javax.swing.table.DefaultTableModel(
- new Object [][] {
-
- },
- new String [] {
-
- }
- ));
- dataTable.setName("dataTable"); // NOI18N
- dataTable.addMouseListener(new java.awt.event.MouseAdapter() {
- public void mouseClicked(java.awt.event.MouseEvent evt) {
- dataTableMouseClicked(evt);
- }
- });
- jScrollPane2.setViewportView(dataTable);
-
- jSplitPane1.setRightComponent(jScrollPane2);
-
- jPanel7.add(jSplitPane1, java.awt.BorderLayout.CENTER);
-
- removefile.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/16/remove.png"))); // NOI18N
- removefile.setText(bundle.getString("ProductPanel.removefile.text")); // NOI18N
- removefile.setName("removefile"); // NOI18N
- removefile.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- removefileActionPerformed(evt);
- }
- });
-
- addfile.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/16/add.png"))); // NOI18N
- addfile.setText(bundle.getString("ProductPanel.addfile.text")); // NOI18N
- addfile.setName("addfile"); // NOI18N
- addfile.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- addfileActionPerformed(evt);
- }
- });
-
- javax.swing.GroupLayout rightpaneLayout = new javax.swing.GroupLayout(rightpane);
- rightpane.setLayout(rightpaneLayout);
- rightpaneLayout.setHorizontalGroup(
- rightpaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(rightpaneLayout.createSequentialGroup()
- .addGap(2, 2, 2)
- .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(rightpaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(removefile, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(addfile, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)))
- .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
- .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- );
- rightpaneLayout.setVerticalGroup(
- rightpaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(rightpaneLayout.createSequentialGroup()
- .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 277, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(rightpaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(rightpaneLayout.createSequentialGroup()
- .addComponent(addfile)
+ .addComponent(button_groupadd, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
+ .addComponent(familyselect, javax.swing.GroupLayout.PREFERRED_SIZE, 317, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(addedby, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)))
+ .addContainerGap())
+ );
+ jPanel1Layout.setVerticalGroup(
+ jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
+ .addComponent(stype, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(familyselect, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(addedby, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
+ .addComponent(cnumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(groupnameselect, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(button_groupadd, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(path, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addGap(37, 37, 37)
+ .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addGap(29, 29, 29))
+ );
+
+ jToolBar1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
+ jToolBar1.setFloatable(false);
+ jToolBar1.setRollover(true);
+ jToolBar1.setMaximumSize(new java.awt.Dimension(366, 28));
+ jToolBar1.setName("jToolBar1"); // NOI18N
+ jToolBar1.setPreferredSize(new java.awt.Dimension(306, 28));
+
+ button_preview.setText(bundle.getString("ProductPanel.button_preview.text")); // NOI18N
+ button_preview.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 153, 153), 1, true));
+ button_preview.setFocusable(false);
+ button_preview.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
+ button_preview.setMaximumSize(new java.awt.Dimension(120, 20));
+ button_preview.setMinimumSize(new java.awt.Dimension(80, 20));
+ button_preview.setName("button_preview"); // NOI18N
+ button_preview.setPreferredSize(new java.awt.Dimension(100, 20));
+ button_preview.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
+ button_preview.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ button_previewActionPerformed(evt);
+ }
+ });
+ jToolBar1.add(button_preview);
+
+ button_order.setText(bundle.getString("ProductPanel.button_order.text")); // NOI18N
+ button_order.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 153, 153), 1, true));
+ button_order.setFocusable(false);
+ button_order.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
+ button_order.setMaximumSize(new java.awt.Dimension(120, 20));
+ button_order.setMinimumSize(new java.awt.Dimension(80, 20));
+ button_order.setName("button_order"); // NOI18N
+ button_order.setPreferredSize(new java.awt.Dimension(100, 20));
+ button_order.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
+ button_order.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ button_orderActionPerformed(evt);
+ }
+ });
+ jToolBar1.add(button_order);
+
+ button_listedit.setText(bundle.getString("ProductPanel.button_listedit.text")); // NOI18N
+ button_listedit.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 153, 153), 1, true));
+ button_listedit.setEnabled(false);
+ button_listedit.setFocusable(false);
+ button_listedit.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
+ button_listedit.setMaximumSize(new java.awt.Dimension(120, 20));
+ button_listedit.setMinimumSize(new java.awt.Dimension(80, 20));
+ button_listedit.setName("button_listedit"); // NOI18N
+ button_listedit.setPreferredSize(new java.awt.Dimension(100, 20));
+ button_listedit.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
+ button_listedit.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ button_listeditActionPerformed(evt);
+ }
+ });
+ jToolBar1.add(button_listedit);
+
+ jSeparator1.setName("jSeparator1"); // NOI18N
+ jToolBar1.add(jSeparator1);
+
+ prinitingComboBox1.setMaximumSize(new java.awt.Dimension(220, 27));
+ prinitingComboBox1.setMinimumSize(new java.awt.Dimension(109, 20));
+ prinitingComboBox1.setName("prinitingComboBox1"); // NOI18N
+ prinitingComboBox1.setPreferredSize(new java.awt.Dimension(200, 20));
+ jToolBar1.add(prinitingComboBox1);
+
+ jTabbedPane1.setName("jTabbedPane1"); // NOI18N
+
+ jPanel4.setBackground(new java.awt.Color(204, 204, 204));
+ jPanel4.setBorder(javax.swing.BorderFactory.createEtchedBorder());
+ jPanel4.setFocusCycleRoot(true);
+ jPanel4.setName("jPanel4"); // NOI18N
+
+ cname.set_Label(bundle.getString("ProductPanel.cname._Label_1")); // NOI18N
+ cname.setName("cname"); // NOI18N
+
+ ean.set_Label(bundle.getString("ProductPanel.ean._Label_1")); // NOI18N
+ ean.setName("ean"); // NOI18N
+
+ url.set_Label(bundle.getString("ProductPanel.url._Label_1")); // NOI18N
+ url.setName("url"); // NOI18N
+
+ netvalue.set_Label(bundle.getString("ProductPanel.netvalue._Label_1")); // NOI18N
+ netvalue.setName("netvalue"); // NOI18N
+ netvalue.setNextFocusableComponent(ean);
+
+ unit.set_Label(bundle.getString("ProductPanel.unit._Label")); // NOI18N
+ unit.setName("unit"); // NOI18N
+ unit.setNextFocusableComponent(reference);
+
+ selecttax.set_Label(bundle.getString("ProductPanel.selecttax._Label_1")); // NOI18N
+ selecttax.setName("selecttax"); // NOI18N
+
+ reference.set_Label(bundle.getString("ProductPanel.reference._Label")); // NOI18N
+ reference.setName("reference"); // NOI18N
+
+ extvalue.set_Label(bundle.getString("ProductPanel.extvalue._Label")); // NOI18N
+ extvalue.setName("extvalue"); // NOI18N
+ extvalue.setNextFocusableComponent(url);
+
+ jScrollPane3.setName("jScrollPane3"); // NOI18N
+
+ description.setColumns(20);
+ description.setLineWrap(true);
+ description.setRows(5);
+ description.setWrapStyleWord(true);
+ description.setFocusTraversalPolicyProvider(true);
+ description.setHighlighter(null);
+ description.setName("description"); // NOI18N
+ jScrollPane3.setViewportView(description);
+
+ contactname1.set_Label(bundle.getString("ProductPanel.contactname1._Label")); // NOI18N
+ contactname1.setName("contactname1"); // NOI18N
+
+ calcFactor.set_Label(bundle.getString("ProductPanel.calcFactor._Label")); // NOI18N
+ calcFactor.setName("calcFactor"); // NOI18N
+ calcFactor.setNextFocusableComponent(ean);
+
+ calcResult.set_Label(bundle.getString("ProductPanel.calcResult._Label")); // NOI18N
+ calcResult.setEnabled(false);
+ calcResult.setName("calcResult"); // NOI18N
+ calcResult.setNextFocusableComponent(url);
+
+ jButton3.setText(bundle.getString("ProductPanel.jButton3.text")); // NOI18N
+ jButton3.setName("jButton3"); // NOI18N
+ jButton3.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ jButton3ActionPerformed(evt);
+ }
+ });
+
+ javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
+ jPanel4.setLayout(jPanel4Layout);
+ jPanel4Layout.setHorizontalGroup(
+ jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel4Layout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
+ .addComponent(cname, javax.swing.GroupLayout.DEFAULT_SIZE, 463, Short.MAX_VALUE)
+ .addComponent(contactname1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(ean, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addGroup(jPanel4Layout.createSequentialGroup()
+ .addComponent(url, javax.swing.GroupLayout.PREFERRED_SIZE, 237, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(reference, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ .addGroup(jPanel4Layout.createSequentialGroup()
+ .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
+ .addGroup(jPanel4Layout.createSequentialGroup()
+ .addComponent(calcFactor, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(removefile)
- .addGap(0, 0, Short.MAX_VALUE))
- .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)))
- );
-
- toolbarpane.setName("toolbarpane"); // NOI18N
- toolbarpane.setLayout(new java.awt.BorderLayout());
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
- this.setLayout(layout);
- layout.setHorizontalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
- .addComponent(leftpane, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(0, 0, 0)
- .addComponent(rightpane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addGroup(layout.createSequentialGroup()
- .addComponent(toolbarpane, javax.swing.GroupLayout.DEFAULT_SIZE, 710, Short.MAX_VALUE)
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(toolbarpane, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(0, 0, 0)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(rightpane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(leftpane, javax.swing.GroupLayout.DEFAULT_SIZE, 544, Short.MAX_VALUE)))
- );
- }// </editor-fold>//GEN-END:initComponents
+ .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addComponent(unit, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 237, Short.MAX_VALUE)
+ .addComponent(netvalue, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(extvalue, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(selecttax, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(calcResult, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 349, Short.MAX_VALUE)
+ .addContainerGap())
+ );
+ jPanel4Layout.setVerticalGroup(
+ jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel4Layout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel4Layout.createSequentialGroup()
+ .addComponent(cname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(8, 8, 8)
+ .addComponent(ean, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(18, 18, 18)
+ .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(url, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(reference, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(contactname1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(18, 18, 18)
+ .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(netvalue, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(extvalue, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
+ .addComponent(unit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(selecttax, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
+ .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(calcFactor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(calcResult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addGap(0, 0, Short.MAX_VALUE))
+ .addComponent(jScrollPane3))
+ .addContainerGap())
+ );
+
+ jTabbedPane1.addTab(bundle.getString("ProductPanel.jPanel4.TabConstraints.tabTitle"), jPanel4); // NOI18N
+
+ jPanel6.setName(bundle.getString("ProductPanel.jPanel6.name")); // NOI18N
+ jPanel6.setLayout(new java.awt.BorderLayout());
+
+ jScrollPane1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
+ jScrollPane1.setName("jScrollPane1"); // NOI18N
+
+ jPanel3.setName("jPanel3"); // NOI18N
+ jPanel3.setLayout(new java.awt.BorderLayout());
+
+ supplierpanel.setBackground(new java.awt.Color(255, 255, 255));
+ supplierpanel.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ProductPanel.supplierpanel.border.title"))); // NOI18N
+ supplierpanel.setName("supplierpanel"); // NOI18N
+ supplierpanel.setLayout(new javax.swing.BoxLayout(supplierpanel, javax.swing.BoxLayout.PAGE_AXIS));
+ jPanel3.add(supplierpanel, java.awt.BorderLayout.CENTER);
+
+ jPanel9.setBackground(new java.awt.Color(255, 255, 255));
+ jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ProductPanel.jPanel9.border.title"))); // NOI18N
+ jPanel9.setName("jPanel9"); // NOI18N
+
+ stack.set_Label(bundle.getString("ProductPanel.stack._Label_1")); // NOI18N
+ stack.set_ValueClass(java.math.BigDecimal.class);
+ stack.setName("stack"); // NOI18N
+
+ threshold.set_Label(bundle.getString("ProductPanel.threshold._Label_1")); // NOI18N
+ threshold.set_ValueClass(java.math.BigDecimal.class);
+ threshold.setName("threshold"); // NOI18N
+
+ inventoryDisabled.setBackground(new java.awt.Color(255, 255, 255));
+ inventoryDisabled.setText(bundle.getString("ProductPanel.inventoryDisabled.text")); // NOI18N
+ inventoryDisabled.setName("inventoryDisabled"); // NOI18N
+ inventoryDisabled.addItemListener(new java.awt.event.ItemListener() {
+ public void itemStateChanged(java.awt.event.ItemEvent evt) {
+ inventoryDisabledItemStateChanged(evt);
+ }
+ });
+
+ javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
+ jPanel9.setLayout(jPanel9Layout);
+ jPanel9Layout.setHorizontalGroup(
+ jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel9Layout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(stack, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
+ .addComponent(threshold, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(18, 18, 18)
+ .addComponent(inventoryDisabled)
+ .addContainerGap(395, Short.MAX_VALUE))
+ );
+ jPanel9Layout.setVerticalGroup(
+ jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel9Layout.createSequentialGroup()
+ .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
+ .addComponent(inventoryDisabled, javax.swing.GroupLayout.DEFAULT_SIZE, 27, Short.MAX_VALUE)
+ .addComponent(stack, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(threshold, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
+ .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ );
+
+ jPanel3.add(jPanel9, java.awt.BorderLayout.NORTH);
+
+ jScrollPane1.setViewportView(jPanel3);
+
+ jPanel6.add(jScrollPane1, java.awt.BorderLayout.CENTER);
+
+ jTabbedPane1.addTab(bundle.getString("ProductPanel.jPanel6.TabConstraints.tabTitle"), jPanel6); // NOI18N
+
+ jPanel2.setName("jPanel2"); // NOI18N
+
+ jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/22/adept_install.png"))); // NOI18N
+ jButton1.setText(bundle.getString("ProductPanel.jButton1.text")); // NOI18N
+ jButton1.setName("jButton1"); // NOI18N
+ jButton1.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ jButton1ActionPerformed(evt);
+ }
+ });
+
+ prizes.setBorder(javax.swing.BorderFactory.createEtchedBorder());
+ prizes.setName("prizes"); // NOI18N
+ prizes.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 1, 5));
+
+ jButton2.setText(bundle.getString("ProductPanel.jButton2.text")); // NOI18N
+ jButton2.setName("jButton2"); // NOI18N
+ jButton2.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ jButton2ActionPerformed(evt);
+ }
+ });
+
+ javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
+ jPanel2.setLayout(jPanel2Layout);
+ jPanel2Layout.setHorizontalGroup(
+ jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel2Layout.createSequentialGroup()
+ .addGap(2, 2, 2)
+ .addComponent(prizes, javax.swing.GroupLayout.PREFERRED_SIZE, 515, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(jButton1)
+ .addComponent(jButton2))
+ .addContainerGap(234, Short.MAX_VALUE))
+ );
+ jPanel2Layout.setVerticalGroup(
+ jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel2Layout.createSequentialGroup()
+ .addComponent(jButton1)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(jButton2)
+ .addContainerGap(165, Short.MAX_VALUE))
+ .addComponent(prizes, javax.swing.GroupLayout.DEFAULT_SIZE, 225, Short.MAX_VALUE)
+ );
+
+ jTabbedPane1.addTab(bundle.getString("ProductPanel.jPanel2.TabConstraints.tabTitle"), jPanel2); // NOI18N
+
+ jPanel7.setName(bundle.getString("ProductPanel.jPanel7.name")); // NOI18N
+ jPanel7.setLayout(new java.awt.BorderLayout());
+
+ jSplitPane1.setDividerLocation(500);
+ jSplitPane1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
+ jSplitPane1.setName("jSplitPane1"); // NOI18N
+ jSplitPane1.setOneTouchExpandable(true);
+
+ imgpanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());
+ imgpanel.setName("imgpanel"); // NOI18N
+ imgpanel.setLayout(new java.awt.BorderLayout());
+
+ imageprev.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
+ imageprev.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/32/xcf.png"))); // NOI18N
+ imageprev.setText(bundle.getString("ProductPanel.imageprev.text")); // NOI18N
+ imageprev.setMaximumSize(new java.awt.Dimension(3200, 3200));
+ imageprev.setName(bundle.getString("ProductPanel.imageprev.name")); // NOI18N
+ imageprev.setPreferredSize(new java.awt.Dimension(333, 333));
+ imageprev.addMouseListener(new java.awt.event.MouseAdapter() {
+ public void mouseClicked(java.awt.event.MouseEvent evt) {
+ imageprevMouseClicked(evt);
+ }
+ });
+ imgpanel.add(imageprev, java.awt.BorderLayout.CENTER);
+
+ jSplitPane1.setLeftComponent(imgpanel);
+
+ jScrollPane2.setName("jScrollPane2"); // NOI18N
+
+ dataTable.setModel(new javax.swing.table.DefaultTableModel(
+ new Object [][] {
+
+ },
+ new String [] {
+
+ }
+ ));
+ dataTable.setName("dataTable"); // NOI18N
+ dataTable.addMouseListener(new java.awt.event.MouseAdapter() {
+ public void mouseClicked(java.awt.event.MouseEvent evt) {
+ dataTableMouseClicked(evt);
+ }
+ });
+ jScrollPane2.setViewportView(dataTable);
+
+ jSplitPane1.setRightComponent(jScrollPane2);
+
+ jPanel7.add(jSplitPane1, java.awt.BorderLayout.CENTER);
+
+ removefile.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/16/remove.png"))); // NOI18N
+ removefile.setText(bundle.getString("ProductPanel.removefile.text")); // NOI18N
+ removefile.setName("removefile"); // NOI18N
+ removefile.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ removefileActionPerformed(evt);
+ }
+ });
+
+ addfile.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/16/add.png"))); // NOI18N
+ addfile.setText(bundle.getString("ProductPanel.addfile.text")); // NOI18N
+ addfile.setName("addfile"); // NOI18N
+ addfile.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ addfileActionPerformed(evt);
+ }
+ });
+
+ javax.swing.GroupLayout rightpaneLayout = new javax.swing.GroupLayout(rightpane);
+ rightpane.setLayout(rightpaneLayout);
+ rightpaneLayout.setHorizontalGroup(
+ rightpaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(rightpaneLayout.createSequentialGroup()
+ .addGap(0, 0, 0)
+ .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
+ .addGap(0, 0, 0)
+ .addGroup(rightpaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(removefile, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(addfile, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)))
+ .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
+ .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ );
+ rightpaneLayout.setVerticalGroup(
+ rightpaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(rightpaneLayout.createSequentialGroup()
+ .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
+ .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 253, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGroup(rightpaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
+ .addGroup(rightpaneLayout.createSequentialGroup()
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(addfile)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(removefile)
+ .addContainerGap(46, Short.MAX_VALUE))))
+ );
+
+ toolbarpane.setName("toolbarpane"); // NOI18N
+ toolbarpane.setLayout(new java.awt.BorderLayout());
+
+ javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
+ this.setLayout(layout);
+ layout.setHorizontalGroup(
+ layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
+ .addComponent(leftpane, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(0, 0, 0)
+ .addComponent(rightpane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ .addGroup(layout.createSequentialGroup()
+ .addComponent(toolbarpane, javax.swing.GroupLayout.DEFAULT_SIZE, 849, Short.MAX_VALUE)
+ .addContainerGap())
+ );
+ layout.setVerticalGroup(
+ layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(layout.createSequentialGroup()
+ .addComponent(toolbarpane, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(0, 0, 0)
+ .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(rightpane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(leftpane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
+ );
+ }// </editor-fold>//GEN-END:initComponents
private void button_groupaddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_button_groupaddActionPerformed
BigPopup.showPopup(this, new ControlPanel_Groups(), null);
@@ -1109,63 +1120,63 @@ private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRS
recalc();
}//GEN-LAST:event_jButton3ActionPerformed
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JLabel addedby;
- private javax.swing.JButton addfile;
- private javax.swing.ButtonGroup buttonGroup1;
- private javax.swing.JButton button_groupadd;
- private javax.swing.JButton button_listedit;
- private javax.swing.JButton button_order;
- private javax.swing.JButton button_preview;
- private mpv5.ui.beans.LabeledTextField calcFactor;
- private mpv5.ui.beans.LabeledTextField calcResult;
- private mpv5.ui.beans.LabeledTextField cname;
- private mpv5.ui.beans.LabeledTextField cnumber;
- private mpv5.ui.beans.LabeledCombobox contactname1;
- private javax.swing.JTable dataTable;
- private javax.swing.JTextArea description;
- private mpv5.ui.beans.LabeledTextField ean;
- private mpv5.ui.beans.LabeledTextField extvalue;
- private mpv5.ui.beans.LabeledCombobox familyselect;
- private mpv5.ui.beans.MPCombobox groupnameselect;
- private javax.swing.JLabel imageprev;
- private javax.swing.JPanel imgpanel;
- private javax.swing.JCheckBox inventoryDisabled;
- private javax.swing.JButton jButton1;
- private javax.swing.JButton jButton2;
- private javax.swing.JButton jButton3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JPanel jPanel3;
- private javax.swing.JPanel jPanel4;
- private javax.swing.JPanel jPanel6;
- private javax.swing.JPanel jPanel7;
- private javax.swing.JPanel jPanel9;
- private javax.swing.JScrollPane jScrollPane1;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JToolBar.Separator jSeparator1;
- private javax.swing.JSplitPane jSplitPane1;
- private javax.swing.JTabbedPane jTabbedPane1;
- private javax.swing.JToolBar jToolBar1;
- private javax.swing.JPanel leftpane;
- private mpv5.ui.beans.LabeledTextField netvalue;
- private javax.swing.JLabel path;
- private mpv5.ui.beans.PrinitingComboBox prinitingComboBox1;
- private javax.swing.JPanel prizes;
- private mpv5.ui.beans.LabeledTextField reference;
- private javax.swing.JButton removefile;
- private javax.swing.JPanel rightpane;
- private mpv5.ui.beans.LabeledCombobox selecttax;
- private mpv5.ui.beans.LabeledTextField stack;
- private mpv5.ui.beans.LabeledCombobox stype;
- private javax.swing.JPanel supplierpanel;
- private mpv5.ui.beans.LabeledTextField threshold;
- private javax.swing.JPanel toolbarpane;
- private mpv5.ui.beans.LabeledTextField unit;
- private mpv5.ui.beans.LabeledTextField url;
- // End of variables declaration//GEN-END:variables
+ // Variables declaration - do not modify//GEN-BEGIN:variables
+ private javax.swing.JLabel addedby;
+ private javax.swing.JButton addfile;
+ private javax.swing.ButtonGroup buttonGroup1;
+ private javax.swing.JButton button_groupadd;
+ private javax.swing.JButton button_listedit;
+ private javax.swing.JButton button_order;
+ private javax.swing.JButton button_preview;
+ private mpv5.ui.beans.LabeledTextField calcFactor;
+ private mpv5.ui.beans.LabeledTextField calcResult;
+ private mpv5.ui.beans.LabeledTextField cname;
+ private mpv5.ui.beans.LabeledTextField cnumber;
+ private mpv5.ui.beans.LabeledCombobox contactname1;
+ private javax.swing.JTable dataTable;
+ private javax.swing.JTextArea description;
+ private mpv5.ui.beans.LabeledTextField ean;
+ private mpv5.ui.beans.LabeledTextField extvalue;
+ private mpv5.ui.beans.LabeledCombobox familyselect;
+ private mpv5.ui.beans.MPCombobox groupnameselect;
+ private javax.swing.JLabel imageprev;
+ private javax.swing.JPanel imgpanel;
+ private javax.swing.JCheckBox inventoryDisabled;
+ private javax.swing.JButton jButton1;
+ private javax.swing.JButton jButton2;
+ private javax.swing.JButton jButton3;
+ private javax.swing.JLabel jLabel4;
+ private javax.swing.JPanel jPanel1;
+ private javax.swing.JPanel jPanel2;
+ private javax.swing.JPanel jPanel3;
+ private javax.swing.JPanel jPanel4;
+ private javax.swing.JPanel jPanel6;
+ private javax.swing.JPanel jPanel7;
+ private javax.swing.JPanel jPanel9;
+ private javax.swing.JScrollPane jScrollPane1;
+ private javax.swing.JScrollPane jScrollPane2;
+ private javax.swing.JScrollPane jScrollPane3;
+ private javax.swing.JToolBar.Separator jSeparator1;
+ private javax.swing.JSplitPane jSplitPane1;
+ private javax.swing.JTabbedPane jTabbedPane1;
+ private javax.swing.JToolBar jToolBar1;
+ private javax.swing.JPanel leftpane;
+ private mpv5.ui.beans.LabeledTextField netvalue;
+ private javax.swing.JLabel path;
+ private mpv5.ui.beans.PrinitingComboBox prinitingComboBox1;
+ private javax.swing.JPanel prizes;
+ private mpv5.ui.beans.LabeledTextField reference;
+ private javax.swing.JButton removefile;
+ private javax.swing.JPanel rightpane;
+ private mpv5.ui.beans.LabeledCombobox selecttax;
+ private mpv5.ui.beans.LabeledTextField stack;
+ private mpv5.ui.beans.LabeledCombobox stype;
+ private javax.swing.JPanel supplierpanel;
+ private mpv5.ui.beans.LabeledTextField threshold;
+ private javax.swing.JPanel toolbarpane;
+ private mpv5.ui.beans.LabeledTextField unit;
+ private mpv5.ui.beans.LabeledTextField url;
+ // End of variables declaration//GEN-END:variables
public String cname_;
public String cnumber_;
public String description_;
View
2  src/mpv5/ui/panels/ProductsOverview.java
@@ -149,7 +149,7 @@ public void mouseClicked(java.awt.event.MouseEvent evt) {
jToolBar1.setName("jToolBar1"); // NOI18N
buttonGroup1.add(products);
- java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("mpv5/resources/languages/Panels"); // NOI18N
+ java.util.ResourceBundle bundle = mpv5.i18n.LanguageManager.getBundle(); // NOI18N
products.setText(bundle.getString("ProductsOverview.products.text")); // NOI18N
products.setFocusable(false);
products.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
Please sign in to comment.
Something went wrong with that request. Please try again.