Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

various small fixes

  • Loading branch information...
commit aab78d9a8c91d87d05ed06a0dd00bee1da2a49da 1 parent 02f17c0
@anti43 authored
View
2  src/mpv5/db/objects/ProductGroup.java
@@ -138,7 +138,7 @@ public JComponent getView() {
// }
public synchronized String __getHierarchypath() {
- if (hierarchypath.contains(Group.GROUPSEPARATOR + Group.GROUPSEPARATOR)) {
+ if (hierarchypath!=null&&hierarchypath.contains(Group.GROUPSEPARATOR + Group.GROUPSEPARATOR)) {
hierarchypath = "";
}
if (hierarchypath == null || hierarchypath.equals("")) {
View
5 src/mpv5/ui/misc/MPTable.java
@@ -252,7 +252,10 @@ public synchronized void setModel(List<DatabaseObject> model, int fieldCount, St
public synchronized void reset() {
if (desiredColSizes != null) {
createDefaultColumnsFromModel();
- TableFormat.resizeCols(this, desiredColSizes, fixedCols);
+ try {
+ TableFormat.resizeCols(this, desiredColSizes, fixedCols);
+ } catch (Exception e) {
+ }
} else {
createDefaultColumnsFromModel();
}
View
12 src/mpv5/ui/panels/AddressPanel.form
@@ -4,6 +4,8 @@
<NonVisualComponents>
<Component class="javax.swing.ButtonGroup" name="buttonGroup1">
</Component>
+ <Component class="javax.swing.ButtonGroup" name="buttonGroup2">
+ </Component>
</NonVisualComponents>
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
@@ -138,14 +140,14 @@
<Component id="zip" alignment="2" min="-2" max="-2" attributes="0"/>
<Component id="city" alignment="2" min="-2" max="-2" attributes="0"/>
</Group>
- <EmptySpace type="unrelated" max="-2" attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="2" attributes="0">
<Component id="jButton1" alignment="2" min="-2" max="-2" attributes="0"/>
<Component id="jButton2" alignment="2" min="-2" max="-2" attributes="0"/>
<Component id="dadress" alignment="2" min="-2" max="-2" attributes="0"/>
<Component id="badress" alignment="2" min="-2" max="-2" attributes="0"/>
</Group>
- <EmptySpace min="-2" pref="23" max="-2" attributes="0"/>
+ <EmptySpace min="-2" pref="29" max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
@@ -241,6 +243,9 @@
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="cc" green="cc" red="cc" type="rgb"/>
</Property>
+ <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
+ <ComponentRef name="buttonGroup2"/>
+ </Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.modules.form.editors2.FontEditor">
<FontInfo relative="true">
<Font bold="false" component="male" property="font" relativeSize="true" size="0"/>
@@ -258,6 +263,9 @@
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="cc" green="cc" red="cc" type="rgb"/>
</Property>
+ <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
+ <ComponentRef name="buttonGroup2"/>
+ </Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.modules.form.editors2.FontEditor">
<FontInfo relative="true">
<Font bold="false" component="female" property="font" relativeSize="true" size="0"/>
View
10 src/mpv5/ui/panels/AddressPanel.java
@@ -64,6 +64,7 @@ public AddressPanel() {
private void initComponents() {
buttonGroup1 = new javax.swing.ButtonGroup();
+ buttonGroup2 = new javax.swing.ButtonGroup();
jPanel2 = new javax.swing.JPanel();
mainaddress = new javax.swing.JPanel();
title = new mpv5.ui.beans.LabeledTextField();
@@ -94,7 +95,7 @@ private void initComponents() {
mainaddress.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
mainaddress.setName("mainaddress"); // NOI18N
- java.util.ResourceBundle bundle = mpv5.i18n.LanguageManager.getBundle(); // NOI18N
+ java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("mpv5/resources/languages/Panels"); // NOI18N
title.set_Label(bundle.getString("AddressPanel.title._Label")); // NOI18N
title.setMaximumSize(new java.awt.Dimension(120, 21));
title.setMinimumSize(new java.awt.Dimension(120, 24));
@@ -126,12 +127,14 @@ private void initComponents() {
zip.setPreferredSize(new java.awt.Dimension(120, 24));
male.setBackground(new java.awt.Color(204, 204, 204));
+ buttonGroup2.add(male);
male.setFont(male.getFont().deriveFont(male.getFont().getStyle() & ~java.awt.Font.BOLD));
male.setSelected(true);
male.setText(bundle.getString("AddressPanel.male.text")); // NOI18N
male.setName("male"); // NOI18N
female.setBackground(new java.awt.Color(204, 204, 204));
+ buttonGroup2.add(female);
female.setFont(female.getFont().deriveFont(female.getFont().getStyle() & ~java.awt.Font.BOLD));
female.setText(bundle.getString("AddressPanel.female.text")); // NOI18N
female.setName("female"); // NOI18N
@@ -251,13 +254,13 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
.addComponent(street, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(zip, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(city, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(mainaddressLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
.addComponent(jButton1)
.addComponent(jButton2)
.addComponent(dadress)
.addComponent(badress))
- .addGap(23, 23, 23))
+ .addGap(29, 29, 29))
);
jPanel2.add(mainaddress, java.awt.BorderLayout.CENTER);
@@ -291,6 +294,7 @@ private void countryselectActionPerformed(java.awt.event.ActionEvent evt) {//GEN
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JCheckBox badress;
private javax.swing.ButtonGroup buttonGroup1;
+ private javax.swing.ButtonGroup buttonGroup2;
private mpv5.ui.beans.LabeledTextField city;
private mpv5.ui.beans.LabeledTextField cname;
private javax.swing.JComboBox countryselect;
View
9 src/mpv5/ui/panels/Bundle.properties
@@ -0,0 +1,9 @@
+# To change this template, choose Tools | Templates
+# and open the template in the editor.
+
+Stockmanager.labeledTextField1._Label=Filter entries
+Stockmanager.jButton2.text=Stockup
+Stockmanager.jPanel1.border.title=Stockmanager
+Stockmanager.jLabel1.text=Scan or paste product ean into the field below
+Stockmanager.auto.text=Send automatically
+Stockmanager.jButton1.text=Save entries to database
View
4 src/mpv5/ui/panels/ContactPanel.java
@@ -282,8 +282,8 @@ private void fillFiles() {
c.addReference(Context.getFiles().getDbIdentity(), "cname", "filename");
Object[][] data = new DatabaseSearch(c).getValuesFor(Context.DETAILS_FILES_TO_CONTACTS, "contactsids", dataOwner.__getIDS());
- dataTable.setModel(new MPTableModel(data, Headers.FILE_REFERENCES.getValue()));
- TableFormat.stripFirstColumn(dataTable);
+ filetableN.setModel(new MPTableModel(data, Headers.FILE_REFERENCES.getValue()));
+ TableFormat.stripFirstColumn(filetableN);
}
/**
View
5 src/mpv5/ui/panels/ConversationPanel.java
@@ -1207,7 +1207,10 @@ private void fillContactFields() {
private void preloadTemplates() {
Runnable runnable = new Runnable() {
public void run() {
- TemplateHandler.loadTemplate(dataOwner.templateGroupIds(), dataOwner.templateType());
+ try {
+ TemplateHandler.loadTemplate(dataOwner.templateGroupIds(), dataOwner.templateType());
+ } catch (Exception e) {
+ }
}
};
new Thread(runnable).start();
View
2  src/mpv5/ui/panels/ItemPanel.java
@@ -2039,7 +2039,7 @@ public void actionBeforeSave() throws ChangeNotApprovedException {
if (dataOwner.isExisting()) {
if ((dataOwner.__getIntstatus() != Item.STATUS_PAID && dataOwner.__getIntstatus() != Item.STATUS_CANCELLED) || Popup.Y_N_dialog(Messages.REALLY_CHANGE_DONE_ITEM)) {
- if (!mpv5.db.objects.User.getCurrentUser().getProperties().getProperty("org.openyabs.uiproperty", "nowarnings")) {
+ if (mpv5.db.objects.User.getCurrentUser().getProperties().getProperty("org.openyabs.uiproperty", "dowarnings")) {
if (!Popup.Y_N_dialog(Messages.REALLY_CHANGE)) {
throw new ChangeNotApprovedException(dataOwner);
View
2  src/mpv5/ui/panels/ProductOrderPanel.java
@@ -1580,7 +1580,7 @@ public void actionBeforeSave() throws ChangeNotApprovedException {
if (dataOwner.isExisting()) {
if ((dataOwner.getIntstatus() != Item.STATUS_PAID && dataOwner.getIntstatus() != Item.STATUS_CANCELLED) || Popup.Y_N_dialog(Messages.REALLY_CHANGE_DONE_ITEM)) {
- if (!mpv5.db.objects.User.getCurrentUser().getProperties().getProperty("org.openyabs.uiproperty", "nowarnings")) {
+ if (mpv5.db.objects.User.getCurrentUser().getProperties().getProperty("org.openyabs.uiproperty", "dowarnings")) {
if (!Popup.Y_N_dialog(Messages.REALLY_CHANGE)) {
throw new ChangeNotApprovedException(dataOwner);
View
16 src/mpv5/ui/panels/ProductPanel.form
@@ -79,7 +79,6 @@
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
- <EmptySpace min="0" pref="0" max="-2" attributes="0"/>
<Component id="jPanel7" pref="0" max="32767" attributes="0"/>
<EmptySpace min="0" pref="0" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
@@ -99,7 +98,8 @@
<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="253" max="-2" attributes="0"/>
+ <Component id="jTabbedPane1" min="-2" pref="293" max="-2" attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jPanel7" pref="0" max="32767" attributes="0"/>
<Group type="102" alignment="0" attributes="0">
@@ -107,7 +107,7 @@
<Component id="addfile" min="-2" max="-2" attributes="1"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="removefile" min="-2" max="-2" attributes="1"/>
- <EmptySpace pref="46" max="32767" attributes="0"/>
+ <EmptySpace pref="29" max="32767" attributes="0"/>
</Group>
</Group>
</Group>
@@ -489,7 +489,7 @@
</Group>
</Group>
<EmptySpace max="-2" attributes="0"/>
- <Component id="jScrollPane3" pref="349" max="32767" attributes="0"/>
+ <Component id="jScrollPane3" pref="336" max="32767" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
@@ -526,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="0" max="32767" attributes="0"/>
+ <EmptySpace min="0" pref="16" max="32767" attributes="0"/>
</Group>
<Component id="jScrollPane3" max="32767" attributes="0"/>
</Group>
@@ -861,7 +861,7 @@
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
<Component id="jButton2" min="-2" max="-2" attributes="0"/>
</Group>
- <EmptySpace pref="234" max="32767" attributes="0"/>
+ <EmptySpace pref="231" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
@@ -871,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="165" max="32767" attributes="0"/>
+ <EmptySpace pref="179" max="32767" attributes="0"/>
</Group>
- <Component id="prizes" alignment="0" pref="225" max="32767" attributes="0"/>
+ <Component id="prizes" alignment="0" pref="246" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
</Layout>
View
1,410 src/mpv5/ui/panels/ProductPanel.java
@@ -206,62 +206,8 @@ public void actionPerformed(ActionEvent e) {
// Popup.notice("Tax ID ist jetzt :" + taxids_);
}
});
-
- extvalue.getTextField().addKeyListener(new KeyListener() {
- public void keyTyped(KeyEvent e) {
- Runnable runnable = new Runnable() {
- public void run() {
- double val = extvalue.getValue(0d);
- calcResult.setText(FormatNumber.formatDezimal(new BigDecimal(val).multiply(Tax.getCalculationValue(taxids_))));
- }
- };
- SwingUtilities.invokeLater(runnable);
-
- }
-
- public void keyPressed(KeyEvent e) {
- }
-
- public void keyReleased(KeyEvent e) {
- }
- });
-
-
-
- calcFactor.getTextField().addKeyListener(new KeyListener() {
- public void keyTyped(KeyEvent e) {
- recalc();
- }
-
- 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) {
- }
-
- public void keyPressed(KeyEvent e) {
- }
-
- public void keyReleased(KeyEvent e) {
- }
- });
+
+
}
private void recalc() {
@@ -422,628 +368,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 );
+ // <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 = java.util.ResourceBundle.getBundle("mpv5/resources/languages/Panels"); // 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)
+ .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(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, 336, 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, 16, 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(231, 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(179, Short.MAX_VALUE))
+ .addComponent(prizes, javax.swing.GroupLayout.DEFAULT_SIZE, 246, 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 [] {
+
}
- }
- }
- 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)));
+ ));
+ dataTable.setName("dataTable"); // NOI18N
+ dataTable.addMouseListener(new java.awt.event.MouseAdapter() {
+ public void mouseClicked(java.awt.event.MouseEvent evt) {
+ dataTableMouseClicked(evt);
}
- 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)
+ });
+ 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()
+ .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, 293, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .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(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)
+ .addComponent(addfile)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .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
+ .addComponent(removefile)
+ .addContainerGap(29, 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);
@@ -1120,63 +1066,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_;
@@ -1587,7 +1533,7 @@ public void actionBeforeCreate() {
public void actionBeforeSave() throws ChangeNotApprovedException {
if (dataOwner.isExisting()) {
- if (!mpv5.db.objects.User.getCurrentUser().getProperties().getProperty("org.openyabs.uiproperty", "nowarnings")) {
+ if (mpv5.db.objects.User.getCurrentUser().getProperties().getProperty("org.openyabs.uiproperty", "dowarnings")) {
if (!Popup.Y_N_dialog(Messages.REALLY_CHANGE)) {
throw new ChangeNotApprovedException(dataOwner);
Please sign in to comment.
Something went wrong with that request. Please try again.