PageRenderTime 9ms CodeModel.GetById 18ms app.highlight 81ms RepoModel.GetById 1ms app.codeStats 1ms

/src/mpv5/ui/panels/ContactPanel.java

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
Java | 1166 lines | 1014 code | 117 blank | 35 comment | 38 complexity | 86099db762f5f4a7395512cf8ca5fb03 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  1/*
  2This file is part of YaBS.
  3
  4YaBS is free software: you can redistribute it and/or modify
  5it under the terms of the GNU General Public License as published by
  6the Free Software Foundation, either version 3 of the License, or
  7(at your option) any later version.
  8
  9YaBS is distributed in the hope that it will be useful,
 10but WITHOUT ANY WARRANTY; without even the implied warranty of
 11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 12GNU General Public License for more details.
 13
 14You should have received a copy of the GNU General Public License
 15along with YaBS.  If not, see <http://www.gnu.org/licenses/>.
 16 */
 17/*
 18 * ContactPanel.java
 19 *
 20 * Created on Nov 20, 2008, 8:17:28 AM
 21 */
 22package mpv5.ui.panels;
 23
 24import java.awt.BorderLayout;
 25import java.awt.Color;
 26import java.awt.Component;
 27import java.awt.Desktop;
 28import java.awt.event.KeyEvent;
 29import java.awt.event.MouseEvent;
 30import java.io.File;
 31import java.net.URI;
 32import java.util.Arrays;
 33import java.util.Date;
 34import java.util.List;
 35import javax.swing.JComponent;
 36import javax.swing.JFrame;
 37import javax.swing.JPopupMenu;
 38import javax.swing.JTabbedPane;
 39import javax.swing.JTable;
 40import javax.swing.JTextPane;
 41import javax.swing.JViewport;
 42import javax.swing.SwingUtilities;
 43import javax.swing.event.TableModelEvent;
 44import javax.swing.event.TableModelListener;
 45import javax.swing.table.TableCellRenderer;
 46import mpv5.db.common.*;
 47import mpv5.globals.Headers;
 48import mpv5.globals.Messages;
 49import mpv5.db.objects.Address;
 50import mpv5.db.objects.Contact;
 51import mpv5.db.objects.Favourite;
 52import mpv5.db.objects.Item;
 53import mpv5.db.objects.Product;
 54import mpv5.db.objects.Schedule;
 55import mpv5.logging.Log;
 56import mpv5.i18n.LanguageManager;
 57import mpv5.ui.dialogs.DialogForFile;
 58import mpv5.ui.dialogs.Popup;
 59import mpv5.ui.popups.FileTablePopUp;
 60import mpv5.ui.toolbars.DataPanelTB;
 61import mpv5.db.objects.User;
 62import mpv5.db.objects.ValueProperty;
 63import mpv5.ui.dialogs.ScheduleDayEvents;
 64import mpv5.ui.misc.MPTable;
 65import mpv5.ui.misc.TableViewPersistenceHandler;
 66
 67import mpv5.ui.popups.DOTablePopUp;
 68import mpv5.utils.date.DateConverter;
 69import mpv5.utils.export.Export;
 70import mpv5.utils.files.FileDirectoryHandler;
 71import mpv5.utils.models.MPComboBoxModelItem;
 72import mpv5.utils.models.MPTableModel;
 73import mpv5.utils.tables.TableFormat;
 74import mpv5.utils.ui.TextFieldUtils;
 75
 76/**
 77 *
 78 * 
 79 */
 80public class ContactPanel extends javax.swing.JPanel implements DataPanel {
 81
 82    private static final long serialVersionUID = 1L;
 83    public static final int COMPANY = 4;
 84    private Contact dataOwner;
 85    private DataPanelTB tb;
 86    private SearchPanel sp;
 87    private Integer dataTableContent = null;
 88    private final JPopupMenu itemTablePopup;
 89    private java.util.ResourceBundle bundle = mpv5.i18n.LanguageManager.getBundle();
 90//    private String old_cnumber = "";
 91
 92    /** Creates new form ContactPanel
 93     * @param context
 94     */
 95    public ContactPanel(Context context) {
 96        initComponents();
 97        setName("contactpanel");
 98        sp = new SearchPanel(context, this);
 99        tb = new mpv5.ui.toolbars.DataPanelTB(this);
100        toolbarpane.add(tb, BorderLayout.CENTER);
101        dataOwner = new Contact();
102        dataOwner.setCountry(mpv5.db.objects.User.getCurrentUser().__getDefcountry());
103
104        dateadded.setText(DateConverter.getTodayDefDate());
105        addedby.setText(mpv5.db.objects.User.getCurrentUser().getName());
106        groupnameselect.setSearchEnabled(true);
107        groupnameselect.setContext(Context.getGroup());
108        companyselect.setSearchEnabled(true);
109        companyselect.setContext(Context.getContactsCompanies());
110        companyselect.getComboBox().setEditable(true);
111
112        number.setSearchOnEnterEnabled(true);
113        number.setParent(this);
114        number.setSearchField("cnumber");
115        number.setContext(Context.getContact());
116
117        cname.setSearchOnEnterEnabled(true);
118        cname.setParent(this);
119        cname.setSearchField("cname");
120        cname.setContext(Context.getContact());
121        countryselect.setModel(LanguageManager.getCountriesAsComboBoxModel());
122        refresh();
123
124        itemTablePopup = DOTablePopUp.addDefaultPopupMenu(dataTable, Context.getItem(), false);
125
126        if (context.equals(Context.getSupplier()) || context.equals(Context.getManufacturer())) {
127            company.setSelected(true);
128        }
129        ((MPTable) dataTable).setPersistanceHandler(new TableViewPersistenceHandler((MPTable)dataTable, this));
130        ((MPTable) proptable).setPersistanceHandler(new TableViewPersistenceHandler((MPTable)proptable, this));
131    }
132
133    @Override
134    public DatabaseObject getDataOwner() {
135        return dataOwner;
136    }
137
138    @Override
139    public void setDataOwner(DatabaseObject object, boolean populate) {
140        dataOwner = (Contact) object;
141        if (populate) {
142            dataOwner.setPanelData(this);
143            this.exposeData();
144
145            if (object.isExisting() && populate) {
146                setTitle(object.__getCname());
147            }
148
149            prinitingComboBox1.init(rightpane);
150
151            tb.setFavourite(Favourite.isFavourite(object));
152            tb.setEditable(!object.isReadOnly());
153            tb.setExportButtonsEnabled(Context.getTemplateableContexts().contains(dataOwner.getContext()));
154
155            addAddresses();
156            dataTable.setModel(new MPTableModel());
157
158            if (object.isReadOnly()) {
159                Popup.notice(Messages.LOCKED_BY);
160            }
161
162            if (dataOwner.isExisting()) {
163                Context c = Context.getItem(Item.TYPE_BILL, null);
164                Object[][] data = new DatabaseSearch(c).getValuesFor(Context.DEFAULT_ITEM_SEARCH, "contactsids", dataOwner.__getIDS());
165                MPTableModel mod = new MPTableModel(data, Headers.ITEM_DEFAULT);
166                mod.setTypes(new Class[]{Integer.class, Object.class, Date.class, Double.class});
167                dataTable.setModel(mod);
168                dataTableContent = ITEM;
169                addfile.setEnabled(false);
170                removefile.setEnabled(false);
171
172                if (dataOwner.__getIscustomer()) {
173                    button_billsActionPerformed(null);
174
175                } else if (dataOwner.__getIsmanufacturer() || dataOwner.__getIssupplier()) {
176                    button_productsActionPerformed(null);
177                }
178            }
179
180            isCustomer(dataOwner.__getIscustomer());
181            isManufacturer(dataOwner.__getIsmanufacturer());
182            isSupplier(dataOwner.__getIssupplier());
183
184
185            properties();
186        }
187    }
188
189    @Override
190    public void showRequiredFields() {
191        jTabbedPane1.setSelectedIndex(1);
192        TextFieldUtils.blinkerRed(cname);
193        cname.requestFocus();
194    }
195
196    private void addAddresses() {
197        String str = addresspanel.getTitleAt(0);
198        Component n = addresspanel.getComponent(0);
199        addresspanel.removeAll();
200        addresspanel.add(n);
201        addresspanel.setTitleAt(0, str);
202        try {
203            List data = DatabaseObject.getReferencedObjects(dataOwner, Context.getAddress());
204
205            for (int i = 0; i < data.size(); i++) {
206                Address databaseObject = (Address) data.get(i);
207                AddressPanel p = new AddressPanel();
208                p.setName(databaseObject.__getDepartment() + " - " + databaseObject.__getCname());
209                p.setDataOwner(databaseObject, true);
210                p.setDataParent(dataOwner);
211                addresspanel.add(p);
212            }
213        } catch (NodataFoundException ex) {
214            Log.Debug(this, ex);
215        }
216    }
217
218    private void addFile() {
219        DialogForFile d = new DialogForFile(DialogForFile.FILES_ONLY);
220        if (d.chooseFile()) {
221
222            String s = Popup.Enter_Value(Messages.ENTER_A_DESCRIPTION);
223
224            if (s != null) {
225                QueryHandler.instanceOf().clone(Context.getFiles(), this).insertFile(d.getFile(), dataOwner, QueryCriteria.getSaveStringFor(s));
226            }
227        }
228    }
229
230    private void deleteFile() {
231         if (dataOwner.isExisting()) {
232            try {
233                DatabaseObject.getObject(Context.getFilesToContacts(), "filename", (dataTable.getModel().getValueAt(dataTable.getSelectedRow(), 0).toString())).delete();
234            } catch (Exception e) {
235                Log.Debug(this, e.getMessage());
236            }
237            fillFiles();
238         
239        }
240    }
241
242    private void fileTableClicked(MouseEvent evt) {
243        if (evt.getClickCount() > 1) {
244            FileDirectoryHandler.open(QueryHandler.instanceOf().clone(Context.getFiles()).
245                    retrieveFile(dataTable.getModel().getValueAt(dataTable.getSelectedRow(), 0).
246                    toString(), new File(FileDirectoryHandler.getTempDir() + dataTable.getModel().
247                    getValueAt(dataTable.getSelectedRow(), 1).toString())));
248        } else if (evt.getClickCount() == 1 && evt.getButton() == MouseEvent.BUTTON3) {
249
250            JTable source = (JTable) evt.getSource();
251            int row = source.rowAtPoint(evt.getPoint());
252            int column = source.columnAtPoint(evt.getPoint());
253
254            if (!source.isRowSelected(row)) {
255                source.changeSelection(row, column, false, false);
256            }
257
258            FileTablePopUp.instanceOf(dataTable).show(source, evt.getX(), evt.getY());
259        }
260    }
261
262    private void itemTableClicked(MouseEvent evt) {
263        if (evt.getButton() == MouseEvent.BUTTON1 && evt.getClickCount() > 1) {
264            try {
265                mpv5.YabsViewProxy.instance().getIdentifierView().addTab(DatabaseObject.getObject(Context.getItem(), Integer.valueOf(dataTable.getModel().getValueAt(dataTable.getSelectedRow(), 0).toString())));
266            } catch (NodataFoundException ex) {
267                Log.Debug(ex);
268            }
269        } else if (evt.getButton() == MouseEvent.BUTTON3) {
270            itemTablePopup.show(dataTable, evt.getX(), evt.getY());
271        }
272    }
273
274    private void productTableClicked(MouseEvent evt) {
275        if (evt.getClickCount() > 1) {
276            try {
277                mpv5.YabsViewProxy.instance().getIdentifierView().addTab(DatabaseObject.getObject(Context.getProduct(), Integer.valueOf(dataTable.getModel().getValueAt(dataTable.getSelectedRow(), 0).toString())));
278            } catch (NodataFoundException ex) {
279                Log.Debug(ex);
280            }
281        }
282    }
283
284    private void fillFiles() {
285        Context c = Context.getFilesToContacts();
286        c.addReference(Context.getFiles().getDbIdentity(), "cname", "filename");
287        Object[][] data = new DatabaseSearch(c).getValuesFor(Context.DETAILS_FILES_TO_CONTACTS, "contactsids", dataOwner.__getIDS());
288
289        dataTable.setModel(new MPTableModel(data, Headers.FILE_REFERENCES.getValue()));
290        TableFormat.stripFirstColumn(dataTable);
291    }
292
293    /** This method is called from within the constructor to
294     * initialize the form.
295     * WARNING: Do NOT modify this code. The content of this method is
296     * always regenerated by the Form Editor.
297     */
298    @SuppressWarnings("unchecked")
299    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
300    private void initComponents() {
301
302        buttonGroup1 = new javax.swing.ButtonGroup();
303        leftpane = new javax.swing.JPanel();
304        rightpane = new javax.swing.JPanel();
305        jPanel1 = new javax.swing.JPanel();
306        jLabel1 = new javax.swing.JLabel();
307        number = new mpv5.ui.beans.LabeledTextField();
308        jToolBar2 = new javax.swing.JToolBar();
309        customer = new javax.swing.JCheckBox();
310        supplier = new javax.swing.JCheckBox();
311        manufacturer = new javax.swing.JCheckBox();
312        company = new javax.swing.JCheckBox();
313        groupnameselect = new mpv5.ui.beans.LabeledCombobox();
314        dateadded = new javax.swing.JLabel();
315        addedby = new javax.swing.JLabel();
316        taxnumber = new mpv5.ui.beans.LabeledTextField();
317        companyselect = new mpv5.ui.beans.LabeledCombobox();
318        jPanel9 = new javax.swing.JPanel();
319        jScrollPane2 = new javax.swing.JScrollPane();
320        dataTable = new  mpv5.ui.misc.MPTable(this) {
321            public Component prepareRenderer(TableCellRenderer renderer,
322                int rowIndex, int vColIndex) {
323                Component c = super.prepareRenderer(renderer, rowIndex, vColIndex);
324                if (c instanceof JComponent) {
325                    JComponent jc = (JComponent)c;
326                    jc.setToolTipText(String.valueOf(getValueAt(rowIndex, vColIndex)));
327                }
328                return c;
329            }
330        };
331        button_bills = new javax.swing.JButton();
332        button_offers = new javax.swing.JButton();
333        button_products = new javax.swing.JButton();
334        button_orders = new javax.swing.JButton();
335        jButton1 = new javax.swing.JButton();
336        removefile = new javax.swing.JButton();
337        addfile = new javax.swing.JButton();
338        jToolBar1 = new javax.swing.JToolBar();
339        button_offer = new javax.swing.JButton();
340        button_order = new javax.swing.JButton();
341        button_bill = new javax.swing.JButton();
342        jSeparator1 = new javax.swing.JToolBar.Separator();
343        button_product = new javax.swing.JButton();
344        jSeparator2 = new javax.swing.JToolBar.Separator();
345        jButton2 = new javax.swing.JButton();
346        jButton3 = new javax.swing.JButton();
347        jSeparator3 = new javax.swing.JToolBar.Separator();
348        prinitingComboBox1 = new mpv5.ui.beans.PrinitingComboBox();
349        jScrollPane4 = new javax.swing.JScrollPane();
350        jTabbedPane1 = new javax.swing.JTabbedPane();
351        jPanel3 = new javax.swing.JPanel();
352        mainphone = new mpv5.ui.beans.LabeledTextField();
353        workphone = new mpv5.ui.beans.LabeledTextField();
354        mailaddress = new mpv5.ui.beans.LabeledTextField();
355        website = new mpv5.ui.beans.LabeledTextField();
356        fax = new mpv5.ui.beans.LabeledTextField();
357        jButton4 = new javax.swing.JButton();
358        jButton5 = new javax.swing.JButton();
359        mobilephone = new mpv5.ui.beans.LabeledTextField();
360        addresspanel = new javax.swing.JTabbedPane();
361        mainaddress = new javax.swing.JPanel();
362        title = new mpv5.ui.beans.LabeledTextField();
363        street = new mpv5.ui.beans.LabeledTextField();
364        cname = new mpv5.ui.beans.LabeledTextField();
365        prename = new mpv5.ui.beans.LabeledTextField();
366        zip = new mpv5.ui.beans.LabeledTextField();
367        male = new javax.swing.JRadioButton();
368        female = new javax.swing.JRadioButton();
369        department = new mpv5.ui.beans.LabeledTextField();
370        jLabel5 = new javax.swing.JLabel();
371        countryselect = new javax.swing.JComboBox();
372        city = new mpv5.ui.beans.LabeledTextField();
373        button_order1 = new javax.swing.JButton();
374        jPanel5 = new javax.swing.JPanel();
375        bankid = new mpv5.ui.beans.LabeledTextField();
376        bankaccount = new mpv5.ui.beans.LabeledTextField();
377        bankcurrency = new mpv5.ui.beans.LabeledTextField();
378        bankname = new mpv5.ui.beans.LabeledTextField();
379        bankcountry = new mpv5.ui.beans.LabeledTextField();
380        jPanel4 = new javax.swing.JPanel();
381        jScrollPane1 = new javax.swing.JScrollPane();
382        class NoTabTextArea extends JTextPane {
383            protected void processComponentKeyEvent( KeyEvent e ) {
384                if ( e.getID() == KeyEvent.KEY_PRESSED &&
385                    e.getKeyCode() == KeyEvent.VK_TAB ) {
386                    e.consume();
387                    if (e.isShiftDown()) {
388                        transferFocusBackward();
389                    } else {
390                        transferFocus();
391                    }
392                } else {
393                    super.processComponentKeyEvent( e );
394                }
395            }
396        }
397        notes = new NoTabTextArea();
398        propPanel = new javax.swing.JPanel();
399        jPanel6 = new javax.swing.JPanel();
400        jScrollPane3 = new javax.swing.JScrollPane();
401        proptable = new  mpv5.ui.misc.MPTable(this) {
402            public Component prepareRenderer(TableCellRenderer renderer,
403                int rowIndex, int vColIndex) {
404                Component c = super.prepareRenderer(renderer, rowIndex, vColIndex);
405                if (c instanceof JComponent) {
406                    JComponent jc = (JComponent)c;
407                    jc.setToolTipText(String.valueOf(getValueAt(rowIndex, vColIndex)));
408                }
409                return c;
410            }
411        };
412        toolbarpane = new javax.swing.JPanel();
413
414        java.util.ResourceBundle bundle = mpv5.i18n.LanguageManager.getBundle();// NOI18N
415        setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ContactPanel.border.title"))); // NOI18N
416        setName("Form"); // NOI18N
417        setLayout(new java.awt.BorderLayout());
418
419        leftpane.setName("leftpane"); // NOI18N
420        leftpane.setLayout(new java.awt.BorderLayout());
421        add(leftpane, java.awt.BorderLayout.WEST);
422
423        rightpane.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ContactPanel.rightpane.border.title"))); // NOI18N
424        rightpane.setName("rightpane"); // NOI18N
425
426        jPanel1.setBackground(new java.awt.Color(204, 204, 204));
427        jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
428        jPanel1.setName("jPanel1"); // NOI18N
429
430        jLabel1.setFont(jLabel1.getFont());
431        jLabel1.setText(bundle.getString("ContactPanel.jLabel1.text")); // NOI18N
432        jLabel1.setName("jLabel1"); // NOI18N
433
434        number.set_Label(bundle.getString("ContactPanel.number._Label")); // NOI18N
435        number.setFocusable(false);
436        number.setFont(number.getFont());
437        number.setMaximumSize(new java.awt.Dimension(150, 21));
438        number.setMinimumSize(new java.awt.Dimension(150, 21));
439        number.setName("number"); // NOI18N
440        number.setPreferredSize(new java.awt.Dimension(150, 21));
441
442        jToolBar2.setBackground(new java.awt.Color(204, 204, 204));
443        jToolBar2.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
444        jToolBar2.setFloatable(false);
445        jToolBar2.setRollover(true);
446        jToolBar2.setName("jToolBar2"); // NOI18N
447        jToolBar2.setOpaque(false);
448
449        customer.setBackground(new java.awt.Color(204, 204, 204));
450        customer.setText(bundle.getString("ContactPanel.customer.text")); // NOI18N
451        customer.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
452        customer.setName("customer"); // NOI18N
453        customer.setOpaque(true);
454        customer.setPreferredSize(new java.awt.Dimension(120, 22));
455        customer.addItemListener(new java.awt.event.ItemListener() {
456            public void itemStateChanged(java.awt.event.ItemEvent evt) {
457                customerItemStateChanged(evt);
458            }
459        });
460        jToolBar2.add(customer);
461
462        supplier.setBackground(new java.awt.Color(204, 204, 204));
463        supplier.setText(bundle.getString("ContactPanel.supplier.text")); // NOI18N
464        supplier.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
465        supplier.setName("supplier"); // NOI18N
466        supplier.setOpaque(true);
467        supplier.setPreferredSize(new java.awt.Dimension(120, 22));
468        supplier.addItemListener(new java.awt.event.ItemListener() {
469            public void itemStateChanged(java.awt.event.ItemEvent evt) {
470                supplierItemStateChanged(evt);
471            }
472        });
473        jToolBar2.add(supplier);
474
475        manufacturer.setBackground(new java.awt.Color(204, 204, 204));
476        manufacturer.setText(bundle.getString("ContactPanel.manufacturer.text")); // NOI18N
477        manufacturer.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
478        manufacturer.setName("manufacturer"); // NOI18N
479        manufacturer.setOpaque(true);
480        manufacturer.setPreferredSize(new java.awt.Dimension(120, 22));
481        manufacturer.addItemListener(new java.awt.event.ItemListener() {
482            public void itemStateChanged(java.awt.event.ItemEvent evt) {
483                manufacturerItemStateChanged(evt);
484            }
485        });
486        jToolBar2.add(manufacturer);
487
488        company.setBackground(new java.awt.Color(204, 204, 204));
489        company.setText(bundle.getString("ContactPanel.company.text")); // NOI18N
490        company.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
491        company.setName("company"); // NOI18N
492        company.setOpaque(true);
493        company.setPreferredSize(new java.awt.Dimension(120, 22));
494        company.addItemListener(new java.awt.event.ItemListener() {
495            public void itemStateChanged(java.awt.event.ItemEvent evt) {
496                companyItemStateChanged(evt);
497            }
498        });
499        jToolBar2.add(company);
500
501        groupnameselect.set_Label(bundle.getString("ContactPanel.groupnameselect._Label")); // NOI18N
502        groupnameselect.setMaximumSize(new java.awt.Dimension(150, 21));
503        groupnameselect.setMinimumSize(new java.awt.Dimension(150, 21));
504        groupnameselect.setName("groupnameselect"); // NOI18N
505        groupnameselect.setPreferredSize(new java.awt.Dimension(150, 21));
506
507        dateadded.setFont(dateadded.getFont());
508        dateadded.setText(bundle.getString("ContactPanel.dateadded.text")); // NOI18N
509        dateadded.setToolTipText(bundle.getString("ContactPanel.dateadded.toolTipText")); // NOI18N
510        dateadded.setBorder(javax.swing.BorderFactory.createEtchedBorder());
511        dateadded.setEnabled(false);
512        dateadded.setMaximumSize(new java.awt.Dimension(120, 21));
513        dateadded.setMinimumSize(new java.awt.Dimension(120, 21));
514        dateadded.setName("dateadded"); // NOI18N
515        dateadded.setPreferredSize(new java.awt.Dimension(120, 21));
516
517        addedby.setFont(addedby.getFont());
518        addedby.setText(bundle.getString("ContactPanel.addedby.text")); // NOI18N
519        addedby.setToolTipText(bundle.getString("ContactPanel.addedby.toolTipText")); // NOI18N
520        addedby.setBorder(javax.swing.BorderFactory.createEtchedBorder());
521        addedby.setEnabled(false);
522        addedby.setMaximumSize(new java.awt.Dimension(120, 21));
523        addedby.setMinimumSize(new java.awt.Dimension(120, 21));
524        addedby.setName("addedby"); // NOI18N
525        addedby.setPreferredSize(new java.awt.Dimension(120, 21));
526
527        taxnumber.set_Label(bundle.getString("ContactPanel.taxnumber._Label")); // NOI18N
528        taxnumber.setFont(taxnumber.getFont().deriveFont(taxnumber.getFont().getStyle() | java.awt.Font.BOLD));
529        taxnumber.setMaximumSize(new java.awt.Dimension(150, 21));
530        taxnumber.setMinimumSize(new java.awt.Dimension(150, 21));
531        taxnumber.setName("taxnumber"); // NOI18N
532        taxnumber.setPreferredSize(new java.awt.Dimension(150, 21));
533
534        companyselect.set_Label(bundle.getString("ContactPanel.companyselect._Label")); // NOI18N
535        companyselect.setMaximumSize(new java.awt.Dimension(150, 21));
536        companyselect.setMinimumSize(new java.awt.Dimension(150, 21));
537        companyselect.setName("companyselect"); // NOI18N
538        companyselect.setPreferredSize(new java.awt.Dimension(150, 21));
539
540        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
541        jPanel1.setLayout(jPanel1Layout);
542        jPanel1Layout.setHorizontalGroup(
543            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
544            .addGroup(jPanel1Layout.createSequentialGroup()
545                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
546                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
547                        .addGap(12, 12, 12)
548                        .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)
549                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
550                        .addComponent(jToolBar2, javax.swing.GroupLayout.PREFERRED_SIZE, 622, javax.swing.GroupLayout.PREFERRED_SIZE))
551                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
552                        .addContainerGap()
553                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
554                            .addComponent(taxnumber, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
555                            .addComponent(number, javax.swing.GroupLayout.DEFAULT_SIZE, 286, Short.MAX_VALUE))
556                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
557                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
558                            .addComponent(companyselect, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
559                            .addComponent(groupnameselect, javax.swing.GroupLayout.DEFAULT_SIZE, 293, Short.MAX_VALUE))))
560                .addGap(133, 133, 133)
561                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
562                    .addComponent(dateadded, javax.swing.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE)
563                    .addComponent(addedby, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE))
564                .addContainerGap())
565        );
566        jPanel1Layout.setVerticalGroup(
567            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
568            .addGroup(jPanel1Layout.createSequentialGroup()
569                .addContainerGap()
570                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
571                    .addGroup(jPanel1Layout.createSequentialGroup()
572                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
573                            .addComponent(jLabel1)
574                            .addComponent(jToolBar2, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
575                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
576                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
577                            .addComponent(groupnameselect, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
578                            .addComponent(number, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
579                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
580                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
581                            .addComponent(taxnumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
582                            .addComponent(companyselect, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
583                    .addGroup(jPanel1Layout.createSequentialGroup()
584                        .addComponent(addedby, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
585                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
586                        .addComponent(dateadded, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
587                .addContainerGap(15, Short.MAX_VALUE))
588        );
589
590        jPanel9.setBackground(new java.awt.Color(204, 204, 204));
591        jPanel9.setBorder(javax.swing.BorderFactory.createEtchedBorder());
592        jPanel9.setName("jPanel9"); // NOI18N
593
594        jScrollPane2.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
595        jScrollPane2.setName("jScrollPane2"); // NOI18N
596
597        dataTable.setDragEnabled(true);
598        dataTable.setName("dataTable"); // NOI18N
599        dataTable.addMouseListener(new java.awt.event.MouseAdapter() {
600            public void mouseClicked(java.awt.event.MouseEvent evt) {
601                dataTableMouseClicked(evt);
602            }
603        });
604        jScrollPane2.setViewportView(dataTable);
605
606        button_bills.setText(bundle.getString("ContactPanel.button_bills.text")); // NOI18N
607        button_bills.setEnabled(false);
608        button_bills.setName("button_bills"); // NOI18N
609        button_bills.addActionListener(new java.awt.event.ActionListener() {
610            public void actionPerformed(java.awt.event.ActionEvent evt) {
611                button_billsActionPerformed(evt);
612            }
613        });
614
615        button_offers.setText(bundle.getString("ContactPanel.button_offers.text")); // NOI18N
616        button_offers.setEnabled(false);
617        button_offers.setName("button_offers"); // NOI18N
618        button_offers.addActionListener(new java.awt.event.ActionListener() {
619            public void actionPerformed(java.awt.event.ActionEvent evt) {
620                button_offersActionPerformed(evt);
621            }
622        });
623
624        button_products.setText(bundle.getString("ContactPanel.button_products.text")); // NOI18N
625        button_products.setEnabled(false);
626        button_products.setName("button_products"); // NOI18N
627        button_products.addActionListener(new java.awt.event.ActionListener() {
628            public void actionPerformed(java.awt.event.ActionEvent evt) {
629                button_productsActionPerformed(evt);
630            }
631        });
632
633        button_orders.setText(bundle.getString("ContactPanel.button_orders.text")); // NOI18N
634        button_orders.setEnabled(false);
635        button_orders.setName("button_orders"); // NOI18N
636        button_orders.addActionListener(new java.awt.event.ActionListener() {
637            public void actionPerformed(java.awt.event.ActionEvent evt) {
638                button_ordersActionPerformed(evt);
639            }
640        });
641
642        jButton1.setText(bundle.getString("ContactPanel.jButton1.text")); // NOI18N
643        jButton1.setName("jButton1"); // NOI18N
644        jButton1.addActionListener(new java.awt.event.ActionListener() {
645            public void actionPerformed(java.awt.event.ActionEvent evt) {
646                jButton1ActionPerformed(evt);
647            }
648        });
649
650        removefile.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/16/remove.png"))); // NOI18N
651        removefile.setText(bundle.getString("ContactPanel.removefile.text")); // NOI18N
652        removefile.setEnabled(false);
653        removefile.setName("removefile"); // NOI18N
654        removefile.addActionListener(new java.awt.event.ActionListener() {
655            public void actionPerformed(java.awt.event.ActionEvent evt) {
656                removefileActionPerformed(evt);
657            }
658        });
659
660        addfile.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/16/add.png"))); // NOI18N
661        addfile.setText(bundle.getString("ContactPanel.addfile.text")); // NOI18N
662        addfile.setEnabled(false);
663        addfile.setName("addfile"); // NOI18N
664        addfile.addActionListener(new java.awt.event.ActionListener() {
665            public void actionPerformed(java.awt.event.ActionEvent evt) {
666                addfileActionPerformed(evt);
667            }
668        });
669
670        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
671        jPanel9.setLayout(jPanel9Layout);
672        jPanel9Layout.setHorizontalGroup(
673            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
674            .addGroup(jPanel9Layout.createSequentialGroup()
675                .addContainerGap()
676                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
677                    .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 1003, Short.MAX_VALUE)
678                    .addGroup(jPanel9Layout.createSequentialGroup()
679                        .addComponent(button_bills, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
680                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
681                        .addComponent(button_offers, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
682                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
683                        .addComponent(button_products, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
684                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
685                        .addComponent(button_orders, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
686                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 611, Short.MAX_VALUE)
687                        .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 81, Short.MAX_VALUE)
688                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
689                        .addComponent(addfile, javax.swing.GroupLayout.PREFERRED_SIZE, 24, Short.MAX_VALUE)
690                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
691                        .addComponent(removefile, javax.swing.GroupLayout.PREFERRED_SIZE, 24, Short.MAX_VALUE)))
692                .addContainerGap())
693        );
694        jPanel9Layout.setVerticalGroup(
695            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
696            .addGroup(jPanel9Layout.createSequentialGroup()
697                .addContainerGap()
698                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
699                    .addComponent(button_bills)
700                    .addComponent(button_offers)
701                    .addComponent(button_products)
702                    .addComponent(button_orders)
703                    .addComponent(jButton1)
704                    .addComponent(removefile)
705                    .addComponent(addfile))
706                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
707                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 34, Short.MAX_VALUE)
708                .addContainerGap())
709        );
710
711        jToolBar1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
712        jToolBar1.setFloatable(false);
713        jToolBar1.setRollover(true);
714        jToolBar1.setMaximumSize(new java.awt.Dimension(2222, 28));
715        jToolBar1.setName("jToolBar1"); // NOI18N
716        jToolBar1.setPreferredSize(new java.awt.Dimension(824, 28));
717
718        button_offer.setBackground(new java.awt.Color(204, 204, 204));
719        button_offer.setText(bundle.getString("ContactPanel.button_offer.text")); // NOI18N
720        button_offer.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 153, 153), 1, true));
721        button_offer.setFocusable(false);
722        button_offer.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
723        button_offer.setIconTextGap(5);
724        button_offer.setMaximumSize(new java.awt.Dimension(333, 20));
725        button_offer.setMinimumSize(new java.awt.Dimension(80, 20));
726        button_offer.setName("button_offer"); // NOI18N
727        button_offer.setPreferredSize(new java.awt.Dimension(120, 20));
728        button_offer.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
729        button_offer.addActionListener(new java.awt.event.ActionListener() {
730            public void actionPerformed(java.awt.event.ActionEvent evt) {
731                button_offerActionPerformed(evt);
732            }
733        });
734        jToolBar1.add(button_offer);
735
736        button_order.setBackground(new java.awt.Color(204, 204, 204));
737        button_order.setText(bundle.getString("ContactPanel.button_order.text")); // NOI18N
738        button_order.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 153, 153), 1, true));
739        button_order.setFocusable(false);
740        button_order.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
741        button_order.setIconTextGap(5);
742        button_order.setMaximumSize(new java.awt.Dimension(333, 20));
743        button_order.setMinimumSize(new java.awt.Dimension(80, 20));
744        button_order.setName("button_order"); // NOI18N
745        button_order.setPreferredSize(new java.awt.Dimension(120, 20));
746        button_order.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
747        button_order.addActionListener(new java.awt.event.ActionListener() {
748            public void actionPerformed(java.awt.event.ActionEvent evt) {
749                button_orderActionPerformed(evt);
750            }
751        });
752        jToolBar1.add(button_order);
753
754        button_bill.setBackground(new java.awt.Color(204, 204, 204));
755        button_bill.setText(bundle.getString("ContactPanel.button_bill.text")); // NOI18N
756        button_bill.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 153, 153), 1, true));
757        button_bill.setFocusable(false);
758        button_bill.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
759        button_bill.setIconTextGap(5);
760        button_bill.setMaximumSize(new java.awt.Dimension(333, 20));
761        button_bill.setMinimumSize(new java.awt.Dimension(80, 20));
762        button_bill.setName("button_bill"); // NOI18N
763        button_bill.setPreferredSize(new java.awt.Dimension(120, 20));
764        button_bill.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
765        button_bill.addActionListener(new java.awt.event.ActionListener() {
766            public void actionPerformed(java.awt.event.ActionEvent evt) {
767                button_billActionPerformed(evt);
768            }
769        });
770        jToolBar1.add(button_bill);
771
772        jSeparator1.setName("jSeparator1"); // NOI18N
773        jToolBar1.add(jSeparator1);
774
775        button_product.setBackground(new java.awt.Color(228, 228, 252));
776        button_product.setText(bundle.getString("ContactPanel.button_product.text")); // NOI18N
777        button_product.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 153, 153), 1, true));
778        button_product.setFocusable(false);
779        button_product.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
780        button_product.setIconTextGap(5);
781        button_product.setMaximumSize(new java.awt.Dimension(333, 20));
782        button_product.setMinimumSize(new java.awt.Dimension(80, 20));
783        button_product.setName("button_product"); // NOI18N
784        button_product.setPreferredSize(new java.awt.Dimension(120, 20));
785        button_product.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
786        button_product.addActionListener(new java.awt.event.ActionListener() {
787            public void actionPerformed(java.awt.event.ActionEvent evt) {
788                button_productActionPerformed(evt);
789            }
790        });
791        jToolBar1.add(button_product);
792
793        jSeparator2.setName("jSeparator2"); // NOI18N
794        jToolBar1.add(jSeparator2);
795
796        jButton2.setBackground(new java.awt.Color(238, 238, 255));
797        jButton2.setText(bundle.getString("ContactPanel.jButton2.text")); // NOI18N
798        jButton2.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 153, 153), 1, true));
799        jButton2.setFocusable(false);
800        jButton2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
801        jButton2.setIconTextGap(5);
802        jButton2.setMaximumSize(new java.awt.Dimension(333, 20));
803        jButton2.setMinimumSize(new java.awt.Dimension(80, 20));
804        jButton2.setName("jButton2"); // NOI18N
805        jButton2.setPreferredSize(new java.awt.Dimension(120, 20));
806        jButton2.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
807        jButton2.addActionListener(new java.awt.event.ActionListener() {
808            public void actionPerformed(java.awt.event.ActionEvent evt) {
809                jButton2ActionPerformed(evt);
810            }
811        });
812        jToolBar1.add(jButton2);
813
814        jButton3.setBackground(new java.awt.Color(238, 238, 255));
815        jButton3.setText(bundle.getString("ContactPanel.jButton3.text")); // NOI18N
816        jButton3.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 153, 153), 1, true));
817        jButton3.setFocusable(false);
818        jButton3.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
819        jButton3.setIconTextGap(5);
820        jButton3.setMaximumSize(new java.awt.Dimension(333, 20));
821        jButton3.setMinimumSize(new java.awt.Dimension(80, 20));
822        jButton3.setName("jButton3"); // NOI18N
823        jButton3.setPreferredSize(new java.awt.Dimension(120, 20));
824        jButton3.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
825        jButton3.addActionListener(new java.awt.event.ActionListener() {
826            public void actionPerformed(java.awt.event.ActionEvent evt) {
827                jButton3ActionPerformed(evt);
828            }
829        });
830        jToolBar1.add(jButton3);
831
832        jSeparator3.setName("jSeparator3"); // NOI18N
833        jToolBar1.add(jSeparator3);
834
835        prinitingComboBox1.setMaximumSize(new java.awt.Dimension(200, 20));
836        prinitingComboBox1.setName("prinitingComboBox1"); // NOI18N
837        jToolBar1.add(prinitingComboBox1);
838
839        jScrollPane4.setName("jScrollPane4"); // NOI18N
840
841        jTabbedPane1.setBackground(new java.awt.Color(182, 187, 187));
842        jTabbedPane1.setName("jTabbedPane1"); // NOI18N
843        jTabbedPane1.setPreferredSize(new java.awt.Dimension(888, 150));
844
845        jPanel3.setBackground(new java.awt.Color(204, 204, 204));
846        jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());
847        jPanel3.setName("jPanel3"); // NOI18N
848
849        mainphone.set_Label(bundle.getString("ContactPanel.phone._Label")); // NOI18N
850        mainphone.setMaximumSize(new java.awt.Dimension(120, 21));
851        mainphone.setMinimumSize(new java.awt.Dimension(120, 21));
852        mainphone.setName("phone"); // NOI18N
853
854        workphone.set_Label(bundle.getString("ContactPanel.[120, 21]._Label")); // NOI18N
855        workphone.setMaximumSize(new java.awt.Dimension(120, 21));
856        workphone.setMinimumSize(new java.awt.Dimension(120, 21));
857        workphone.setName("[120, 21]"); // NOI18N
858        workphone.setPreferredSize(new java.awt.Dimension(180, 23));
859
860        mailaddress.set_Label(bundle.getString("ContactPanel.mailer._Label")); // NOI18N
861        mailaddress.setMaximumSize(new java.awt.Dimension(120, 21));
862        mailaddress.setMinimumSize(new java.awt.Dimension(120, 21));
863        mailaddress.setName("mailer"); // NOI18N
864        mailaddress.setPreferredSize(new java.awt.Dimension(180, 23));
865
866        website.set_Label(bundle.getString("ContactPanel.web._Label")); // NOI18N
867        website.setMaximumSize(new java.awt.Dimension(120, 21));
868        website.setMinimumSize(new java.awt.Dimension(120, 21));
869        website.setName("web"); // NOI18N
870        website.setPreferredSize(new java.awt.Dimension(180, 23));
871
872        fax.set_Label(bundle.getString("ContactPanel.fax._Label")); // NOI18N
873        fax.setMaximumSize(new java.awt.Dimension(120, 21));
874        fax.setMinimumSize(new java.awt.Dimension(120, 21));
875        fax.setName("fax"); // NOI18N
876        fax.setPreferredSize(new java.awt.Dimension(180, 23));
877
878        jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/16/info.png"))); // NOI18N
879        jButton4.setText(bundle.getString("ContactPanel.jButton5.text")); // NOI18N
880        jButton4.setName("gotoweb"); // NOI18N
881        jButton4.addActionListener(new java.awt.event.ActionListener() {
882            public void actionPerformed(java.awt.event.ActionEvent evt) {
883                jButton4ActionPerformed(evt);
884            }
885        });
886
887        jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/16/info.png"))); // NOI18N
888        jButton5.setText(bundle.getString("ContactPanel.sendamail.text")); // NOI18N
889        jButton5.setName("sendamail"); // NOI18N
890        jButton5.addActionListener(new java.awt.event.ActionListener() {
891            public void actionPerformed(java.awt.event.ActionEvent evt) {
892                jButton5ActionPerformed(evt);
893            }
894        });
895
896        mobilephone.set_Label(bundle.getString("ContactPanel.mobile._Label")); // NOI18N
897        mobilephone.setMaximumSize(new java.awt.Dimension(120, 21));
898        mobilephone.setMinimumSize(new java.awt.Dimension(120, 21));
899        mobilephone.setName("mobile"); // NOI18N
900        mobilephone.setPreferredSize(new java.awt.Dimension(180, 23));
901
902        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
903        jPanel3.setLayout(jPanel3Layout);
904        jPanel3Layout.setHorizontalGroup(
905            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
906            .addGroup(jPanel3Layout.createSequentialGroup()
907                .addContainerGap()
908                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
909                    .addGroup(jPanel3Layout.createSequentialGroup()
910                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
911                            .addComponent(fax, javax.swing.GroupLayout.PREFERRED_SIZE, 333, javax.swing.GroupLayout.PREFERRED_SIZE)
912                            .addComponent(mainphone, javax.swing.GroupLayout.PREFERRED_SIZE, 333, javax.swing.GroupLayout.PREFERRED_SIZE)
913                            .addComponent(mobilephone, javax.swing.GroupLayout.PREFERRED_SIZE, 333, javax.swing.GroupLayout.PREFERRED_SIZE))
914                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
915                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
916                            .addComponent(website, javax.swing.GroupLayout.PREFERRED_SIZE, 333, javax.swing.GroupLayout.PREFERRED_SIZE)
917                            .addComponent(mailaddress, javax.swing.GroupLayout.PREFERRED_SIZE, 333, javax.swing.GroupLayout.PREFERRED_SIZE)
918                            .addComponent(workphone, javax.swing.GroupLayout.PREFERRED_SIZE, 333, javax.swing.GroupLayout.PREFERRED_SIZE)))
919                    .addGroup(jPanel3Layout.createSequentialGroup()
920                        .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)
921                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
922                        .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)))
923                .addGap(321, 321, Short.MAX_VALUE))
924        );
925        jPanel3Layout.setVerticalGroup(
926            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
927            .addGroup(jPanel3Layout.createSequentialGroup()
928                .addContainerGap()
929                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
930                    .addComponent(mainphone, javax.swing.GroupLayout.Alignment.CENTER, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
931                    .addComponent(mailaddress, javax.swing.GroupLayout.Alignment.CENTER, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
932                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
933                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
934                    .addComponent(website, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
935                    .addComponent(fax, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
936                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
937                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
938                    .addComponent(mobilephone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
939                    .addComponent(workphone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
940                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
941                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
942                    .addComponent(jButton4)
943                    .addComponent(jButton5))
944                .addGap(35, 35, 35))
945        );
946
947        jTabbedPane1.addTab(bundle.getString("ContactPanel.jPanel3.TabConstraints.tabTitle"), jPanel3); // NOI18N
948
949        addresspanel.setBackground(new java.awt.Color(255, 255, 255));
950        addresspanel.setTabPlacement(javax.swing.JTabbedPane.RIGHT);
951        addresspa

Large files files are truncated, but you can click here to view the full file