Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixes for formatmanager, discount now in xtable, v 1.2 beta2

  • Loading branch information...
commit 050bc8b79b697496169f78e90f324c5cdf1c2fcf 1 parent 0371177
@anti43 authored
View
3  src/mpv5/db/objects/SubItem.java
@@ -421,7 +421,8 @@ public static SubItem getRandomItem() {
getInttype() != TYPE_TEXT ? String.valueOf(FormatNumber.formatLokalCurrency(this.getTotalTaxValue())) : "",
getInttype() != TYPE_TEXT ? String.valueOf(FormatNumber.formatLokalCurrency(this.__getTotalbrutvalue())) : "",
__getLinkurl(),
- __getCname()
+ __getCname(),
+ getInttype() != TYPE_TEXT ? String.valueOf(FormatNumber.formatLokalCurrency(this.__getDiscount())) : ""
///////////////////////////////////////////////////////////////////////////////
};
List<String> l = Arrays.asList(possibleCols);
View
2  src/mpv5/globals/Constants.java
@@ -30,7 +30,7 @@
*
* Full Version number
*/
- public static final String VERSION = "Yabs-1.2-Beta1";
+ public static final String VERSION = "Yabs-1.2-Beta2";
/**
* The original database version of this release
View
4 src/mpv5/resources/languages/Panels.properties
@@ -251,7 +251,6 @@ MPControlPanel.jButton13.toolTipText=Format manager
MPControlPanel.jButton13.text=Format Manager
ControlPanel_Formats.jButton5.toolTipText=Save
ControlPanel_Formats.labeledCombobox3._Label=Type
-ControlPanel_Formats.labeledSpinner1._Label=Min. Start
ControlPanel_Formats.jLabel2.text=Minimal value for the numeric part:
ItemPanel.border.title=Item Details
ItemPanel.border.title_1=Item Details
@@ -1327,7 +1326,6 @@ LoginToInstanceScreen.jCheckBox1.text=Remember me
LoginToInstanceScreen.jCheckBox2.text=Autologin
LoginToInstanceScreen.jLabel5.text=Instance
LoginToInstanceScreen.jButton2.text=
-ControlPanel_Formats.labeledSpinner2._Label=Position
ControlPanel_Formats.jLabel4.text=Start position for the dynamic part (per user):
wizard_DBSettings_manage_1.labeledTextField4._Label=User
wizard_DBSettings_manage_1.labeledTextField5._Label=Password
@@ -2011,3 +2009,5 @@ ControlPanel_External.jCheckBox4.text=Start Office automatically
MPView.jMenuItem50.text=Change language from file
ContactPanel.filetab.TabConstraints.tabTitle=Files
ProductOrderPanel.groupnameselect._Label=Group
+ControlPanel_Formats.minstart._Label=Min. Start
+ControlPanel_Formats.positionstart._Label=Position
View
28 src/mpv5/ui/dialogs/subcomponents/ControlPanel_Formats.form
@@ -1,4 +1,4 @@
-<?xml version="1.1" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<Form version="1.6" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
<Properties>
@@ -18,7 +18,7 @@
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
- <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,-115,0,0,3,-81"/>
+ <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,-115,0,0,3,-89"/>
</AuxValues>
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
@@ -87,13 +87,13 @@
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="5" max="-2" attributes="0"/>
<Group type="103" groupAlignment="1" attributes="0">
- <Component id="jScrollPane1" alignment="0" pref="302" max="32767" attributes="1"/>
+ <Component id="jScrollPane1" alignment="0" pref="308" max="32767" attributes="1"/>
<Group type="103" alignment="0" groupAlignment="0" max="-2" attributes="0">
<Component id="jButton5" min="-2" max="-2" attributes="0"/>
<Component id="jPanel3" alignment="0" max="32767" attributes="1"/>
</Group>
</Group>
- <EmptySpace pref="17" max="32767" attributes="0"/>
+ <EmptySpace pref="23" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
@@ -170,8 +170,8 @@
<Component id="jLabel3" pref="501" max="32767" attributes="1"/>
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
- <Component id="labeledSpinner1" min="-2" max="-2" attributes="0"/>
- <Component id="labeledSpinner2" alignment="0" min="-2" max="-2" attributes="0"/>
+ <Component id="minstart" min="-2" max="-2" attributes="0"/>
+ <Component id="positionstart" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="locales" alignment="0" min="-2" pref="246" max="-2" attributes="1"/>
</Group>
<EmptySpace min="0" pref="255" max="32767" attributes="0"/>
@@ -201,11 +201,11 @@
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel2" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="11" max="-2" attributes="0"/>
- <Component id="labeledSpinner1" min="-2" max="-2" attributes="0"/>
+ <Component id="minstart" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
- <Component id="labeledSpinner2" min="-2" max="-2" attributes="0"/>
+ <Component id="positionstart" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel3" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
@@ -247,12 +247,12 @@
<Property name="name" type="java.lang.String" value="labeledTextField1" noResource="true"/>
</Properties>
</Component>
- <Component class="mpv5.ui.beans.LabeledSpinner" name="labeledSpinner1">
+ <Component class="mpv5.ui.beans.LabeledSpinner" name="minstart">
<Properties>
<Property name="_Label" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="mpv5/resources/languages/Panels.properties" key="ControlPanel_Formats.labeledSpinner1._Label" replaceFormat="java.util.ResourceBundle.getBundle(&quot;{bundleNameSlashes}&quot;).getString(&quot;{key}&quot;)"/>
+ <ResourceString bundle="mpv5/resources/languages/Panels.properties" key="ControlPanel_Formats.minstart._Label" replaceFormat="java.util.ResourceBundle.getBundle(&quot;{bundleNameSlashes}&quot;).getString(&quot;{key}&quot;)"/>
</Property>
- <Property name="name" type="java.lang.String" value="labeledSpinner1" noResource="true"/>
+ <Property name="name" type="java.lang.String" value="minstart" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel4">
@@ -266,12 +266,12 @@
<Property name="name" type="java.lang.String" value="jLabel4" noResource="true"/>
</Properties>
</Component>
- <Component class="mpv5.ui.beans.LabeledSpinner" name="labeledSpinner2">
+ <Component class="mpv5.ui.beans.LabeledSpinner" name="positionstart">
<Properties>
<Property name="_Label" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="mpv5/resources/languages/Panels.properties" key="ControlPanel_Formats.labeledSpinner2._Label" replaceFormat="java.util.ResourceBundle.getBundle(&quot;{bundleNameSlashes}&quot;).getString(&quot;{key}&quot;)"/>
+ <ResourceString bundle="mpv5/resources/languages/Panels.properties" key="ControlPanel_Formats.positionstart._Label" replaceFormat="java.util.ResourceBundle.getBundle(&quot;{bundleNameSlashes}&quot;).getString(&quot;{key}&quot;)"/>
</Property>
- <Property name="name" type="java.lang.String" value="labeledSpinner2" noResource="true"/>
+ <Property name="name" type="java.lang.String" value="positionstart" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel3">
View
512 src/mpv5/ui/dialogs/subcomponents/ControlPanel_Formats.java
@@ -60,227 +60,227 @@ public ControlPanel_Formats(User user) {
}
}
- // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
- private void initComponents() {
-
- jPanel1 = new javax.swing.JPanel();
- jPanel2 = new javax.swing.JPanel();
- jScrollPane1 = new javax.swing.JScrollPane();
- jTable1 = new javax.swing.JTable();
- jButton5 = new javax.swing.JButton();
- jPanel3 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox();
- jLabel1 = new javax.swing.JLabel();
- labeledTextField1 = new mpv5.ui.beans.LabeledTextField();
- labeledSpinner1 = new mpv5.ui.beans.LabeledSpinner();
- jLabel4 = new javax.swing.JLabel();
- labeledSpinner2 = new mpv5.ui.beans.LabeledSpinner();
- jLabel3 = new javax.swing.JLabel();
- locales = new javax.swing.JComboBox();
- labeledCombobox1 = new mpv5.ui.beans.LabeledCombobox();
- labeledCombobox2 = new mpv5.ui.beans.LabeledCombobox();
- labeledCombobox3 = new mpv5.ui.beans.LabeledCombobox();
- jLabel2 = new javax.swing.JLabel();
- jPanel6 = new javax.swing.JPanel();
- jButton3 = new javax.swing.JButton();
-
- setBackground(new java.awt.Color(255, 255, 255));
- setName("Form"); // NOI18N
- setLayout(new java.awt.BorderLayout());
-
- jPanel1.setBackground(new java.awt.Color(255, 255, 255));
- java.util.ResourceBundle bundle = mpv5.i18n.LanguageManager.getBundle(); // NOI18N
- jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ControlPanel_Formats.jPanel1.border.title"))); // NOI18N
- jPanel1.setName("jPanel1"); // NOI18N
-
- jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ControlPanel_Formats.jPanel2.border.title"))); // NOI18N
- jPanel2.setName("jPanel2"); // NOI18N
-
- jScrollPane1.setName("jScrollPane1"); // NOI18N
-
- jTable1.setModel(new javax.swing.table.DefaultTableModel(
- new Object [][] {
-
- },
- new String [] {
-
- }
- ));
- jTable1.setName("jTable1"); // NOI18N
- jScrollPane1.setViewportView(jTable1);
-
- jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/32/2leftarrow.png"))); // NOI18N
- jButton5.setText(bundle.getString("ControlPanel_Formats.jButton5.text")); // NOI18N
- jButton5.setToolTipText(bundle.getString("ControlPanel_Formats.jButton5.toolTipText")); // NOI18N
- jButton5.setName("jButton5"); // NOI18N
- jButton5.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton5ActionPerformed(evt);
- }
- });
-
- jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());
- jPanel3.setName("jPanel3"); // NOI18N
-
- jComboBox1.setName("jComboBox1"); // NOI18N
- jComboBox1.addItemListener(new java.awt.event.ItemListener() {
- public void itemStateChanged(java.awt.event.ItemEvent evt) {
- jComboBox1ItemStateChanged(evt);
- }
- });
- jComboBox1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jComboBox1ActionPerformed(evt);
- }
- });
-
- jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/32/1downarrow.png"))); // NOI18N
- jLabel1.setText(bundle.getString("ControlPanel_Formats.jLabel1.text")); // NOI18N
- jLabel1.setName("jLabel1"); // NOI18N
-
- labeledTextField1.set_Label(bundle.getString("ControlPanel_Formats.labeledTextField1._Label")); // NOI18N
- labeledTextField1.setName("labeledTextField1"); // NOI18N
-
- labeledSpinner1.set_Label(bundle.getString("ControlPanel_Formats.labeledSpinner1._Label")); // NOI18N
- labeledSpinner1.setName("labeledSpinner1"); // NOI18N
-
- jLabel4.setFont(new java.awt.Font("Dialog", 0, 12));
- jLabel4.setText(bundle.getString("ControlPanel_Formats.jLabel4.text")); // NOI18N
- jLabel4.setName("jLabel4"); // NOI18N
-
- labeledSpinner2.set_Label(bundle.getString("ControlPanel_Formats.labeledSpinner2._Label")); // NOI18N
- labeledSpinner2.setName("labeledSpinner2"); // NOI18N
-
- jLabel3.setFont(new java.awt.Font("Dialog", 0, 12));
- jLabel3.setText(bundle.getString("ControlPanel_Formats.jLabel3.text")); // NOI18N
- jLabel3.setName("jLabel3"); // NOI18N
-
- locales.setName("locales"); // NOI18N
-
- labeledCombobox1.set_Label(bundle.getString("ControlPanel_Formats.labeledCombobox1._Label_1")); // NOI18N
- labeledCombobox1.setName("labeledCombobox1"); // NOI18N
-
- labeledCombobox2.set_Label(bundle.getString("ControlPanel_Formats.labeledCombobox2._Label_1")); // NOI18N
- labeledCombobox2.setName("labeledCombobox2"); // NOI18N
-
- labeledCombobox3.set_Label(bundle.getString("ControlPanel_Formats.labeledCombobox3._Label_1")); // NOI18N
- labeledCombobox3.setName("labeledCombobox3"); // NOI18N
-
- jLabel2.setFont(new java.awt.Font("Dialog", 0, 12));
- jLabel2.setText(bundle.getString("ControlPanel_Formats.jLabel2.text")); // NOI18N
- jLabel2.setName("jLabel2"); // NOI18N
-
- javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
- jPanel3.setLayout(jPanel3Layout);
- jPanel3Layout.setHorizontalGroup(
- jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel3Layout.createSequentialGroup()
- .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(labeledTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 501, Short.MAX_VALUE)
- .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 501, Short.MAX_VALUE)
- .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
- .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
- .addGroup(jPanel3Layout.createSequentialGroup()
- .addComponent(labeledCombobox3, javax.swing.GroupLayout.DEFAULT_SIZE, 294, Short.MAX_VALUE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addComponent(labeledCombobox1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 465, Short.MAX_VALUE)
- .addComponent(labeledCombobox2, javax.swing.GroupLayout.DEFAULT_SIZE, 465, Short.MAX_VALUE))
+ // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
+ private void initComponents() {
+
+ jPanel1 = new javax.swing.JPanel();
+ jPanel2 = new javax.swing.JPanel();
+ jScrollPane1 = new javax.swing.JScrollPane();
+ jTable1 = new javax.swing.JTable();
+ jButton5 = new javax.swing.JButton();
+ jPanel3 = new javax.swing.JPanel();
+ jComboBox1 = new javax.swing.JComboBox();
+ jLabel1 = new javax.swing.JLabel();
+ labeledTextField1 = new mpv5.ui.beans.LabeledTextField();
+ minstart = new mpv5.ui.beans.LabeledSpinner();
+ jLabel4 = new javax.swing.JLabel();
+ positionstart = new mpv5.ui.beans.LabeledSpinner();
+ jLabel3 = new javax.swing.JLabel();
+ locales = new javax.swing.JComboBox();
+ labeledCombobox1 = new mpv5.ui.beans.LabeledCombobox();
+ labeledCombobox2 = new mpv5.ui.beans.LabeledCombobox();
+ labeledCombobox3 = new mpv5.ui.beans.LabeledCombobox();
+ jLabel2 = new javax.swing.JLabel();
+ jPanel6 = new javax.swing.JPanel();
+ jButton3 = new javax.swing.JButton();
+
+ setBackground(new java.awt.Color(255, 255, 255));
+ setName("Form"); // NOI18N
+ setLayout(new java.awt.BorderLayout());
+
+ jPanel1.setBackground(new java.awt.Color(255, 255, 255));
+ java.util.ResourceBundle bundle = mpv5.i18n.LanguageManager.getBundle();; // NOI18N
+ jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ControlPanel_Formats.jPanel1.border.title"))); // NOI18N
+ jPanel1.setName("jPanel1"); // NOI18N
+
+ jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ControlPanel_Formats.jPanel2.border.title"))); // NOI18N
+ jPanel2.setName("jPanel2"); // NOI18N
+
+ jScrollPane1.setName("jScrollPane1"); // NOI18N
+
+ jTable1.setModel(new javax.swing.table.DefaultTableModel(
+ new Object [][] {
+
+ },
+ new String [] {
+
+ }
+ ));
+ jTable1.setName("jTable1"); // NOI18N
+ jScrollPane1.setViewportView(jTable1);
+
+ jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/32/2leftarrow.png"))); // NOI18N
+ jButton5.setText(bundle.getString("ControlPanel_Formats.jButton5.text")); // NOI18N
+ jButton5.setToolTipText(bundle.getString("ControlPanel_Formats.jButton5.toolTipText")); // NOI18N
+ jButton5.setName("jButton5"); // NOI18N
+ jButton5.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ jButton5ActionPerformed(evt);
+ }
+ });
+
+ jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());
+ jPanel3.setName("jPanel3"); // NOI18N
+
+ jComboBox1.setName("jComboBox1"); // NOI18N
+ jComboBox1.addItemListener(new java.awt.event.ItemListener() {
+ public void itemStateChanged(java.awt.event.ItemEvent evt) {
+ jComboBox1ItemStateChanged(evt);
+ }
+ });
+ jComboBox1.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ jComboBox1ActionPerformed(evt);
+ }
+ });
+
+ jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/32/1downarrow.png"))); // NOI18N
+ jLabel1.setText(bundle.getString("ControlPanel_Formats.jLabel1.text")); // NOI18N
+ jLabel1.setName("jLabel1"); // NOI18N
+
+ labeledTextField1.set_Label(bundle.getString("ControlPanel_Formats.labeledTextField1._Label")); // NOI18N
+ labeledTextField1.setName("labeledTextField1"); // NOI18N
+
+ minstart.set_Label(bundle.getString("ControlPanel_Formats.minstart._Label")); // NOI18N
+ minstart.setName("minstart"); // NOI18N
+
+ jLabel4.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
+ jLabel4.setText(bundle.getString("ControlPanel_Formats.jLabel4.text")); // NOI18N
+ jLabel4.setName("jLabel4"); // NOI18N
+
+ positionstart.set_Label(bundle.getString("ControlPanel_Formats.positionstart._Label")); // NOI18N
+ positionstart.setName("positionstart"); // NOI18N
+
+ jLabel3.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
+ jLabel3.setText(bundle.getString("ControlPanel_Formats.jLabel3.text")); // NOI18N
+ jLabel3.setName("jLabel3"); // NOI18N
+
+ locales.setName("locales"); // NOI18N
+
+ labeledCombobox1.set_Label(bundle.getString("ControlPanel_Formats.labeledCombobox1._Label_1")); // NOI18N
+ labeledCombobox1.setName("labeledCombobox1"); // NOI18N
+
+ labeledCombobox2.set_Label(bundle.getString("ControlPanel_Formats.labeledCombobox2._Label_1")); // NOI18N
+ labeledCombobox2.setName("labeledCombobox2"); // NOI18N
+
+ labeledCombobox3.set_Label(bundle.getString("ControlPanel_Formats.labeledCombobox3._Label_1")); // NOI18N
+ labeledCombobox3.setName("labeledCombobox3"); // NOI18N
+
+ jLabel2.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
+ jLabel2.setText(bundle.getString("ControlPanel_Formats.jLabel2.text")); // NOI18N
+ jLabel2.setName("jLabel2"); // NOI18N
+
+ javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
+ jPanel3.setLayout(jPanel3Layout);
+ jPanel3Layout.setHorizontalGroup(
+ jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel3Layout.createSequentialGroup()
+ .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(labeledTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 501, Short.MAX_VALUE)
+ .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 501, Short.MAX_VALUE)
+ .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
+ .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
+ .addGroup(jPanel3Layout.createSequentialGroup()
+ .addComponent(labeledCombobox3, javax.swing.GroupLayout.DEFAULT_SIZE, 294, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jLabel1))
- .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 501, Short.MAX_VALUE)
- .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 501, Short.MAX_VALUE)
- .addGroup(jPanel3Layout.createSequentialGroup()
- .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(labeledSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(labeledSpinner2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(locales, javax.swing.GroupLayout.PREFERRED_SIZE, 246, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addGap(0, 255, Short.MAX_VALUE)))
- .addContainerGap())
- );
- jPanel3Layout.setVerticalGroup(
- jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel3Layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(labeledCombobox3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(labeledCombobox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(labeledCombobox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(labeledTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jLabel2)
- .addGap(11, 11, 11)
- .addComponent(labeledSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jLabel4)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(labeledSpinner2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(locales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(40, Short.MAX_VALUE))
- );
-
- 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(15, 15, 15)
- .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 302, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jButton5)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(5, 5, 5)
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
- .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 302, Short.MAX_VALUE)
- .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
- .addComponent(jButton5)
- .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
- .addContainerGap(17, Short.MAX_VALUE))
- );
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- );
-
- add(jPanel1, java.awt.BorderLayout.CENTER);
-
- jPanel6.setBackground(new java.awt.Color(255, 255, 255));
- jPanel6.setName("jPanel6"); // NOI18N
- jPanel6.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT));
-
- jButton3.setText(bundle.getString("ControlPanel_Formats.jButton3.text")); // NOI18N
- jButton3.setName("jButton3"); // NOI18N
- jButton3.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton3ActionPerformed(evt);
- }
- });
- jPanel6.add(jButton3);
-
- add(jPanel6, java.awt.BorderLayout.PAGE_END);
- }// </editor-fold>//GEN-END:initComponents
+ .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addComponent(labeledCombobox1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 465, Short.MAX_VALUE)
+ .addComponent(labeledCombobox2, javax.swing.GroupLayout.DEFAULT_SIZE, 465, Short.MAX_VALUE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(jLabel1))
+ .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 501, Short.MAX_VALUE)
+ .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 501, Short.MAX_VALUE)
+ .addGroup(jPanel3Layout.createSequentialGroup()
+ .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(minstart, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(positionstart, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(locales, javax.swing.GroupLayout.PREFERRED_SIZE, 246, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addGap(0, 255, Short.MAX_VALUE)))
+ .addContainerGap())
+ );
+ jPanel3Layout.setVerticalGroup(
+ jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel3Layout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(labeledCombobox3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(labeledCombobox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(labeledCombobox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(labeledTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(jLabel2)
+ .addGap(11, 11, 11)
+ .addComponent(minstart, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(jLabel4)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(positionstart, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(jLabel3)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(locales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addContainerGap(40, Short.MAX_VALUE))
+ );
+
+ 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(15, 15, 15)
+ .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 302, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(jButton5)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ );
+ jPanel2Layout.setVerticalGroup(
+ jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel2Layout.createSequentialGroup()
+ .addGap(5, 5, 5)
+ .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
+ .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 308, Short.MAX_VALUE)
+ .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
+ .addComponent(jButton5)
+ .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
+ .addContainerGap(23, Short.MAX_VALUE))
+ );
+
+ javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
+ jPanel1.setLayout(jPanel1Layout);
+ jPanel1Layout.setHorizontalGroup(
+ jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ );
+ jPanel1Layout.setVerticalGroup(
+ jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ );
+
+ add(jPanel1, java.awt.BorderLayout.CENTER);
+
+ jPanel6.setBackground(new java.awt.Color(255, 255, 255));
+ jPanel6.setName("jPanel6"); // NOI18N
+ jPanel6.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT));
+
+ jButton3.setText(bundle.getString("ControlPanel_Formats.jButton3.text")); // NOI18N
+ jButton3.setName("jButton3"); // NOI18N
+ jButton3.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ jButton3ActionPerformed(evt);
+ }
+ });
+ jPanel6.add(jButton3);
+
+ add(jPanel6, java.awt.BorderLayout.PAGE_END);
+ }// </editor-fold>//GEN-END:initComponents
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
test();
@@ -315,39 +315,39 @@ public String getUname() {
public void reset() {
}
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton3;
- private javax.swing.JButton jButton5;
- private javax.swing.JComboBox jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JPanel jPanel3;
- private javax.swing.JPanel jPanel6;
- private javax.swing.JScrollPane jScrollPane1;
- private javax.swing.JTable jTable1;
- private mpv5.ui.beans.LabeledCombobox labeledCombobox1;
- private mpv5.ui.beans.LabeledCombobox labeledCombobox2;
- private mpv5.ui.beans.LabeledCombobox labeledCombobox3;
- private mpv5.ui.beans.LabeledSpinner labeledSpinner1;
- private mpv5.ui.beans.LabeledSpinner labeledSpinner2;
- private mpv5.ui.beans.LabeledTextField labeledTextField1;
- private javax.swing.JComboBox locales;
- // End of variables declaration//GEN-END:variables
+ // Variables declaration - do not modify//GEN-BEGIN:variables
+ private javax.swing.JButton jButton3;
+ private javax.swing.JButton jButton5;
+ private javax.swing.JComboBox jComboBox1;
+ private javax.swing.JLabel jLabel1;
+ private javax.swing.JLabel jLabel2;
+ private javax.swing.JLabel jLabel3;
+ private javax.swing.JLabel jLabel4;
+ private javax.swing.JPanel jPanel1;
+ private javax.swing.JPanel jPanel2;
+ private javax.swing.JPanel jPanel3;
+ private javax.swing.JPanel jPanel6;
+ private javax.swing.JScrollPane jScrollPane1;
+ private javax.swing.JTable jTable1;
+ private mpv5.ui.beans.LabeledCombobox labeledCombobox1;
+ private mpv5.ui.beans.LabeledCombobox labeledCombobox2;
+ private mpv5.ui.beans.LabeledCombobox labeledCombobox3;
+ private mpv5.ui.beans.LabeledTextField labeledTextField1;
+ private javax.swing.JComboBox locales;
+ private mpv5.ui.beans.LabeledSpinner minstart;
+ private mpv5.ui.beans.LabeledSpinner positionstart;
+ // End of variables declaration//GEN-END:variables
public void refresh() {
locales.setModel(LanguageManager.getLocalesAsComboBoxModel());
setLocale(mpv5.db.objects.User.getCurrentUser().__getIDS());
- labeledSpinner1.getSpinner().setModel(new SpinnerNumberModel(0, 0, Integer.MAX_VALUE, 1));
- labeledSpinner1.getSpinner().setEditor(new JSpinner.NumberEditor(labeledSpinner1.getSpinner()));
- labeledSpinner1.getSpinner().updateUI();
+ minstart.getSpinner().setModel(new SpinnerNumberModel(0, 0, Integer.MAX_VALUE, 1));
+ minstart.getSpinner().setEditor(new JSpinner.NumberEditor(minstart.getSpinner()));
+ minstart.getSpinner().updateUI();
- labeledSpinner2.getSpinner().setModel(new SpinnerNumberModel(0, -1000, Integer.MAX_VALUE, 1));
- labeledSpinner2.getSpinner().setEditor(new JSpinner.NumberEditor(labeledSpinner2.getSpinner()));
- labeledSpinner2.getSpinner().updateUI();
+ positionstart.getSpinner().setModel(new SpinnerNumberModel(0, -1000, Integer.MAX_VALUE, 1));
+ positionstart.getSpinner().setEditor(new JSpinner.NumberEditor(positionstart.getSpinner()));
+ positionstart.getSpinner().updateUI();
try {
QueryCriteria2 q = new QueryCriteria2();
@@ -386,8 +386,8 @@ public Component getAndRemoveActionPanel() {
private void save() {
String oval = labeledTextField1.getText();
//set start value
- if (labeledSpinner1.getSpinner().getValue() != null && Integer.valueOf(labeledSpinner1.getSpinner().getValue().toString()).intValue() > 0) {
- labeledTextField1.setText(FormatHandler.START_VALUE_IDENTIFIER + Integer.valueOf(labeledSpinner1.getSpinner().getValue().toString()) + FormatHandler.START_VALUE_IDENTIFIER + oval);
+ if (minstart.getSpinner().getValue() != null && Integer.valueOf(minstart.getSpinner().getValue().toString()).intValue() > 0) {
+ labeledTextField1.setText(FormatHandler.START_VALUE_IDENTIFIER + Integer.valueOf(minstart.getSpinner().getValue().toString()) + FormatHandler.START_VALUE_IDENTIFIER + oval);
}
QueryCriteria c = new QueryCriteria("inttype", Integer.valueOf(labeledCombobox3.getSelectedItem().getId()));
@@ -407,12 +407,12 @@ private void save() {
}
if (oval.contains("[")
- && String.valueOf(labeledSpinner2.get_Value()).equals("0")) {
+ && String.valueOf(positionstart.get_Value()).equals("0")) {
Notificator.raiseNotification("If you use dynamic parts in your number format, you MUST define a position from where to parse the number from!\n "
+ "If you do not define a parse position, the defined format may not work as expected.", true);//FIXME i18n
}
try {
- GlobalSettings.setProperty(new MessageFormat(oval).toPattern() + "_startposition", String.valueOf(labeledSpinner2.get_Value()));
+ GlobalSettings.setProperty(new MessageFormat(oval).toPattern() + "_startposition", String.valueOf(positionstart.get_Value()));
GlobalSettings.save();
} catch (Exception ex) {
Log.Debug(ex);
@@ -420,8 +420,8 @@ private void save() {
setTable();
labeledTextField1.setText("");
- labeledSpinner1.getSpinner().setValue(0);
- labeledSpinner2.getSpinner().setValue(0);
+ minstart.getSpinner().setValue(0);
+ positionstart.getSpinner().setValue(0);
labeledCombobox1.setModel(QueryHandler.instanceOf().clone(Context.getFormats()).select("inttype,cname", (String[]) null));
Popup.notice(Messages.RESTART_REQUIRED);
}
@@ -471,7 +471,7 @@ public void actionPerformed(ActionEvent e) {
if (prop != null) {
try {
int pos = Integer.valueOf(prop);
- labeledSpinner2.set_Value(pos);
+ positionstart.set_Value(pos);
} catch (NumberFormatException numberFormatException) {
Log.Debug(numberFormatException);
}
@@ -513,7 +513,7 @@ private boolean test() {
try {
FormatHandler fh = new FormatHandler(b);
- str = fh.toString(new FormatHandler.YMessageFormat((VariablesHandler.parse(labeledTextField1.getText(), b)).substring(Integer.valueOf(labeledSpinner1.get_Value().toString())), null), Integer.valueOf(labeledSpinner1.get_Value().toString()));
+ str = fh.toString(new FormatHandler.YMessageFormat((VariablesHandler.parse(labeledTextField1.getText(), b)).substring(Integer.valueOf(positionstart.get_Value().toString())), null), Integer.valueOf(minstart.get_Value().toString()));
str = Messages.THE_RESULT + str;
return Popup.OK_dialog(str, Messages.NOTICE.getValue());
View
2  src/mpv5/ui/panels/ContactPanel.java
@@ -421,7 +421,7 @@ public Component prepareRenderer(TableCellRenderer renderer,
jButton6 = new javax.swing.JButton();
toolbarpane = new javax.swing.JPanel();
- java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("mpv5/resources/languages/Panels"); // NOI18N
+ java.util.ResourceBundle bundle = mpv5.i18n.LanguageManager.getBundle();; // NOI18N
setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ContactPanel.border.title"))); // NOI18N
setName("Form"); // NOI18N
setLayout(new java.awt.BorderLayout());
View
2  src/mpv5/ui/panels/ProductOrderPanel.java
@@ -417,7 +417,7 @@ public Component prepareRenderer(TableCellRenderer renderer,
};
toolbarpane = new javax.swing.JPanel();
- java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("mpv5/resources/languages/Panels"); // NOI18N
+ java.util.ResourceBundle bundle = mpv5.i18n.LanguageManager.getBundle();; // NOI18N
setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ProductOrderPanel.border.title_1"))); // NOI18N
setName("ItemPanel"); // NOI18N
setLayout(new java.awt.BorderLayout());
Please sign in to comment.
Something went wrong with that request. Please try again.