List of usage examples for javax.swing JTable AUTO_RESIZE_ALL_COLUMNS
int AUTO_RESIZE_ALL_COLUMNS
To view the source code for javax.swing JTable AUTO_RESIZE_ALL_COLUMNS.
Click Source Link
From source file:com.diversityarrays.kdxplore.design.EntryFileImportDialog.java
private void updateDataPreviewScrolling() { boolean useScrollBar = useScrollBarOption.isSelected(); dataPreviewTable.setAutoResizeMode(useScrollBar ? JTable.AUTO_RESIZE_OFF : JTable.AUTO_RESIZE_ALL_COLUMNS); if (!useScrollBar) { // System.out.println("initTableCOlumns: useScrollBar=" + useScrollBar); GuiUtil.initialiseTableColumnWidths(dataPreviewTable, true); }//from w w w . j a v a 2 s . com }
From source file:gov.noaa.ncdc.iosp.avhrr.util.AvhrrLevel1B2Netcdf.java
/** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor.// w w w.j a v a 2s. c om */ // <editor-fold defaultstate="collapsed" desc="Generated Code"> private void initComponents() { // Create a file chooser this.setTitle("NCDC sat2netcdf converter"); aboutDialog = new javax.swing.JDialog(); aboutButton = new javax.swing.JButton(); aboutLabel = new javax.swing.JLabel(); aboutDialog.setTitle("About"); aboutDialog.setName("aboutDialog"); // NOI18N aboutDialog.setSize(250, 200); aboutButton.setText("OK"); aboutButton.setName("aboutButton"); // NOI18N aboutButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { aboutDialog.hide(); } }); aboutLabel.setText( "<html>\nNCDC sat2netcdf Converter<br> </br>\nCopyright (c) 2008 Work of U.S. Government.<br></br>\nNCDC<br></br>\nContact: ncdc.satorder@noaa.gov\n</html>"); fc = new JFileChooser(); fc.setMultiSelectionEnabled(true); // output directory file chooser outFc = new JFileChooser(); outFc.setMultiSelectionEnabled(false); outFc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); activityMonitor = new Timer(100, new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { convertMonitorActionPerformed(evt); } }); menuBar = new JMenuBar(); logMenu = new JMenu("Log"); logMenuItem = new JMenuItem("View Log"); logMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { logDialog.show(); } }); logMenu.add(logMenuItem); menuBar.add(logMenu); helpMenu = new JMenu("Help"); menuBar.add(helpMenu); helpMenuItem = new JMenuItem("Help"); helpMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { helpMenuActionPerformed(evt); } }); helpMenu.add(helpMenuItem); aboutMenuItem = new JMenuItem("About"); aboutMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { aboutDialog.show(); } }); helpMenu.add(aboutMenuItem); this.setJMenuBar(menuBar); jButton4 = new javax.swing.JButton(); openButton = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); jLabel1 = new javax.swing.JLabel(); outdirButton = new javax.swing.JButton(); outdirText = new javax.swing.JTextField(); jPanel1 = new javax.swing.JPanel(); allChanCheckBox = new javax.swing.JCheckBox(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); chan1CheckBox = new javax.swing.JCheckBox(); chan2CheckBox = new javax.swing.JCheckBox(); chan3CheckBox = new javax.swing.JCheckBox(); chan4CheckBox = new javax.swing.JCheckBox(); chan5CheckBox = new javax.swing.JCheckBox(); rawCheckBox = new javax.swing.JCheckBox(); radCheckBox = new javax.swing.JCheckBox(); tempCheckBox = new javax.swing.JCheckBox(); allVarCheckBox = new javax.swing.JCheckBox(); qualityCheckBox = new javax.swing.JCheckBox(); calCheckBox = new javax.swing.JCheckBox(); latlonCheckBox = new javax.swing.JCheckBox(); metaCheckBox = new javax.swing.JCheckBox(); jLabel2 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); convertButton = new javax.swing.JButton(); exitButton = new javax.swing.JButton(); jButton4.setText("jButton4"); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); openButton.setText("Select Files"); openButton.setName("selectButton"); // NOI18N openButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { openButtonActionPerformed(evt); } }); fm = new FileModel(); jTable1 = new JTable(fm); jTable1.setName("table"); // NOI18N jTable1.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); setTableCellRenderer(jTable1, new ToolCellRenderer()); // remove popup for table removeItem = new JMenuItem("Remove"); removeItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { int[] selected = jTable1.getSelectedRows(); for (int i : selected) { logTextArea.append("Removed File: " + fm.getFileAtRow(i).getName() + "\n"); } fm.removeRows(selected); } }); popup = new JPopupMenu(); popup.add(removeItem); // Add listener to the jtable so the popup menu can come up. // MouseListener popupListener = new PopupListener(jTable1); // jTable1.addMouseListener(popupListener); jTable1.addMouseListener(new MouseListener() { public void mousePressed(MouseEvent e) { int button = e.getButton(); int[] selected = jTable1.getSelectedRows(); if (button != 1 && selected.length > 0) { popup.show(e.getComponent(), e.getX(), e.getY()); } } public void mouseClicked(MouseEvent e) { int button = e.getButton(); int column = jTable1.getSelectedColumn(); if (0 == column && 1 == button) { updateOutputSize(); } } public void mouseEntered(MouseEvent e) { } public void mouseExited(MouseEvent e) { } public void mouseReleased(MouseEvent e) { } }); TableColumn col = jTable1.getColumnModel().getColumn(1); col.setPreferredWidth(250); col = jTable1.getColumnModel().getColumn(3); col.setPreferredWidth(100); jScrollPane1.setViewportView(jTable1); jLabel1.setText("Select output directory"); outdirButton.setText("Browse"); outdirButton.setName("outdirButton"); // NOI18N outdirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { outdirButtonActionPerformed(evt); } }); outdirText.setName("outdirText"); // NOI18N try { outdirText.setText(new File(".").getCanonicalPath()); } catch (IOException ioe) { ioe.printStackTrace(); } jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jPanel1.setName("optionPanel"); // NOI18N allChanCheckBox.setText("All Channels"); allChanCheckBox.setSelected(true); allChanCheckBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { handleChannelBoxes("jCheckBox1", allChanCheckBox); updateFileSize(); } }); jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel3.setText("Channels"); jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel4.setText("Calibration"); jLabel4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel5.setText("Additional Data"); jLabel5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); chan1CheckBox.setText("Channel 1"); chan1CheckBox.setSelected(true); chan1CheckBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { handleChannelBoxes("chan1CheckBox", chan1CheckBox); updateFileSize(); } }); chan2CheckBox.setText("Channel 2"); chan2CheckBox.setSelected(true); chan2CheckBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { handleChannelBoxes("chan2CheckBox", chan2CheckBox); updateFileSize(); } }); chan3CheckBox.setText("Channel 3A/B"); chan3CheckBox.setSelected(true); chan3CheckBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { handleChannelBoxes("chan3CheckBox", chan3CheckBox); updateFileSize(); } }); chan4CheckBox.setLabel("Channel 4"); chan4CheckBox.setSelected(true); chan4CheckBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { handleChannelBoxes("chan4CheckBox", chan4CheckBox); updateFileSize(); } }); chan5CheckBox.setLabel("Channel 5"); chan5CheckBox.setSelected(true); chan5CheckBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { handleChannelBoxes("chan5CheckBox", chan5CheckBox); updateFileSize(); } }); rawCheckBox.setText("Raw Data"); rawCheckBox.setSelected(true); rawCheckBox.setToolTipText("Counts for each pixel"); rawCheckBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { handleCalibrationCheckBoxes(rawCheckBox); updateFileSize(); } }); radCheckBox.setText("Radiance"); radCheckBox.setToolTipText("Radiance Values"); radCheckBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { handleCalibrationCheckBoxes(radCheckBox); updateFileSize(); } }); tempCheckBox.setText("Brightness Temperature"); tempCheckBox.setToolTipText("Albedo for visible channels, Brightness Temperature for IR channels"); tempCheckBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { handleCalibrationCheckBoxes(tempCheckBox); updateFileSize(); } }); allVarCheckBox.setText("All Variables"); allVarCheckBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { handleAllVariablesCheckBox(); updateFileSize(); } }); qualityCheckBox.setText("Quality Flags"); qualityCheckBox.setToolTipText("Quality Variables"); qualityCheckBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { handleOtherCheckbox(qualityCheckBox); updateFileSize(); } }); calCheckBox.setText("Calibration Coefficients"); calCheckBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { handleOtherCheckbox(calCheckBox); updateFileSize(); } }); jLabel2.setText("Select output options"); convertButton.setText("Convert"); convertButton.setName("convertButton"); // NOI18N convertButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { convertButtonActionPerformed(evt); } }); exitButton.setText("Exit"); exitButton.setName("exitButton"); // NOI18N exitButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitButtonActionPerformed(evt); } }); // help dialog helpDialog = new javax.swing.JDialog(); helpCloseButton = new javax.swing.JButton("Close"); helpScrollPane = new javax.swing.JScrollPane(); // helpEditorPane = new javax.swing.JEditorPane("text/rtf", helpText); helpEditorPane = new javax.swing.JEditorPane(); helpEditorPane.setContentType("text/html"); InputStream stream = null; try { stream = AvhrrLevel1B2Netcdf.class.getResourceAsStream("/help.html"); if (stream != null) { helpEditorPane.read(stream, "html"); } } catch (IOException e1) { e1.printStackTrace(); } helpScrollPane.setViewportView(helpEditorPane); helpDialog.setSize(450, 500); helpCloseButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { helpDialog.dispose(); } }); // Log Dialog logDialog = new javax.swing.JDialog(); logScrollPane = new javax.swing.JScrollPane(); logTextArea = new javax.swing.JTextArea(); logCloseButton = new javax.swing.JButton(); clearButton = new javax.swing.JButton(); logDialog.setTitle("Log"); logDialog.setName("logDialog"); // NOI18N logDialog.setSize(450, 500); logScrollPane.setName("logScrollPane"); // NOI18N logTextArea.setColumns(20); logTextArea.setRows(5); logTextArea.setName("logTextArea"); // NOI18N logScrollPane.setViewportView(logTextArea); logCloseButton.setText("Close"); logCloseButton.setName("logCloseButton"); // NOI18N logCloseButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { logDialog.hide(); } }); clearButton.setText("Clear"); clearButton.setName("clearButton"); // NOI18N clearButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { logTextArea.setText(""); } }); latlonCheckBox.setText("Lat/Lon"); latlonCheckBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { handleLatLonCheckbox(); updateFileSize(); } }); metaCheckBox.setText("Other metadata"); metaCheckBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { handleMetadataCheckbox(); updateFileSize(); } }); jLabel2.setText("Select output options"); convertButton.setText("Convert"); convertButton.setName("convertButton"); exitButton.setText("Exit"); exitButton.setName("exitButton"); exitButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitButtonActionPerformed(evt); } }); jLabel2.setText("Select output options"); // NOI18N convertButton.setText("Convert"); // NOI18N convertButton.setName("convertButton"); // NOI18N exitButton.setText("Exit"); // NOI18N exitButton.setName("exitButton"); // NOI18N exitButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitButtonActionPerformed(evt); } }); jLabel6.setFont(new java.awt.Font("Dialog", 1, 11)); jLabel6.setText("Estimated output size: "); org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel1Layout.createSequentialGroup().addContainerGap().add(jPanel1Layout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(chan5CheckBox) .add(jPanel1Layout.createSequentialGroup().add(jPanel1Layout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel1Layout.createSequentialGroup().add(jPanel1Layout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel1Layout .createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false) .add(org.jdesktop.layout.GroupLayout.LEADING, jLabel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, allChanCheckBox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .add(chan1CheckBox).add(chan2CheckBox)).add(36, 36, 36) .add(jPanel1Layout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false) .add(radCheckBox) .add(tempCheckBox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 163, Short.MAX_VALUE) .add(rawCheckBox).add(jLabel4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .add(chan3CheckBox).add(chan4CheckBox)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(metaCheckBox).add(latlonCheckBox).add(allVarCheckBox) .add(jLabel5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 113, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(qualityCheckBox).add(calCheckBox)))) .add(67, 67, 67))); jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel1Layout.createSequentialGroup().addContainerGap() .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(jLabel3).add(jLabel5).add(jLabel4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 21, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED) .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(allChanCheckBox).add(allVarCheckBox).add(rawCheckBox)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(chan1CheckBox).add(qualityCheckBox).add(radCheckBox)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(chan2CheckBox).add(calCheckBox).add(tempCheckBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 22, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(chan3CheckBox).add(latlonCheckBox)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(chan4CheckBox).add(metaCheckBox)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(chan5CheckBox) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); jLabel2.setText("Select output options"); // NOI18N convertButton.setText("Convert"); // NOI18N convertButton.setName("convertButton"); // NOI18N exitButton.setText("Exit"); // NOI18N exitButton.setName("exitButton"); // NOI18N exitButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitButtonActionPerformed(evt); } }); jLabel6.setFont(new java.awt.Font("Dialog", 1, 11)); jLabel6.setText("Estimated output size: "); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup().addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 531, Short.MAX_VALUE) .add(layout.createSequentialGroup().add(outdirButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(outdirText, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 453, Short.MAX_VALUE)) .add(jLabel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 531, Short.MAX_VALUE) .add(openButton) .add(jLabel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 291, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(layout.createSequentialGroup().add(convertButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(jLabel6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 442, Short.MAX_VALUE)) .add(exitButton).add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 531, Short.MAX_VALUE)) .addContainerGap())); layout.setVerticalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(layout .createSequentialGroup().addContainerGap().add(openButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED) .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 173, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(jLabel1) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(outdirButton).add( outdirText, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 27, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jLabel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 15, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false).add(convertButton) .add(jLabel6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED).add(exitButton).add(12, 12, 12))); // log dialog layout org.jdesktop.layout.GroupLayout logDialogLayout = new org.jdesktop.layout.GroupLayout( logDialog.getContentPane()); logDialog.getContentPane().setLayout(logDialogLayout); logDialogLayout.setHorizontalGroup( logDialogLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add( org.jdesktop.layout.GroupLayout.TRAILING, logDialogLayout.createSequentialGroup().addContainerGap() .add(logDialogLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, logScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 520, Short.MAX_VALUE) .add(logDialogLayout.createSequentialGroup().add(clearButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED) .add(logCloseButton))) .addContainerGap())); logDialogLayout.setVerticalGroup(logDialogLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, logDialogLayout.createSequentialGroup() .addContainerGap() .add(logScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 304, Short.MAX_VALUE) .add(18, 18, 18) .add(logDialogLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(logCloseButton).add(clearButton)) .addContainerGap())); // help dialog layout org.jdesktop.layout.GroupLayout helpDialogLayout = new org.jdesktop.layout.GroupLayout( helpDialog.getContentPane()); helpDialog.getContentPane().setLayout(helpDialogLayout); helpDialogLayout.setHorizontalGroup( helpDialogLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add( org.jdesktop.layout.GroupLayout.TRAILING, helpDialogLayout.createSequentialGroup().addContainerGap() .add(helpDialogLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, helpScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 520, Short.MAX_VALUE) .add(helpDialogLayout.createSequentialGroup() .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED) .add(helpCloseButton))) .addContainerGap())); helpDialogLayout.setVerticalGroup(helpDialogLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, helpDialogLayout.createSequentialGroup() .addContainerGap() .add(helpScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 304, Short.MAX_VALUE) .add(18, 18, 18).add(helpDialogLayout .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(helpCloseButton)) .addContainerGap())); // about dialog layout org.jdesktop.layout.GroupLayout aboutDialogLayout = new org.jdesktop.layout.GroupLayout( aboutDialog.getContentPane()); aboutDialog.getContentPane().setLayout(aboutDialogLayout); aboutDialogLayout.setHorizontalGroup( aboutDialogLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add( org.jdesktop.layout.GroupLayout.TRAILING, aboutDialogLayout.createSequentialGroup().addContainerGap() .add(aboutDialogLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, aboutLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 227, Short.MAX_VALUE) .add(aboutButton)) .addContainerGap())); aboutDialogLayout.setVerticalGroup( aboutDialogLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add( org.jdesktop.layout.GroupLayout.TRAILING, aboutDialogLayout.createSequentialGroup().addContainerGap() .add(aboutLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 103, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 35, Short.MAX_VALUE) .add(aboutButton).add(21, 21, 21))); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); pack(); JOptionPane.showMessageDialog(this, "Warning! \nThis program is untested.\nPlease read help file for\nsupported files, limitations and license.\n"); // + "Please view Help for more information."); }
From source file:view.caja.Despacho.java
public JScrollPane getTablaProductos() { Object[][] datitos = {};/*from w w w .jav a 2 s . c o m*/ String[] columnas_Name = { "#", "Producto", "Precio", "Codigo", "Cantidad", "IDprod" }; TableModel jTable1Model = new DefaultTableModel(datitos, columnas_Name) { public boolean isCellEditable(int row, int column) { return false; } }; tbCarrito = new JTable(); tbCarrito.setModel(jTable1Model); tbCarrito.getTableHeader().setReorderingAllowed(false); tbCarrito.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); tbCarrito.setPreferredScrollableViewportSize(new Dimension(400, 350)); tbCarrito.setPreferredSize(new java.awt.Dimension(351, 283)); tbCarrito.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); tbCarrito.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent e) { if (tbCarrito.getRowCount() != 0) { fila = tbCarrito.getSelectedRow(); columna = tbCarrito.getSelectedColumn(); btQuitar.setEnabled(true); } } }); scrollProds = new JScrollPane(tbCarrito); return scrollProds; }
From source file:client.ui.FilePane.java
/** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor./*from www .jav a 2 s . c om*/ */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { fileButtonPane = new JPanel(); uploadFileButton = new JButton(); downloadFileButton = new JButton(); deleteFileButton = new JButton(); renameFileButton = new JButton(); authorizationButton = new JButton(); jSeparator1 = new JSeparator(); addNoteButton = new JButton(); deleteNoteButton = new JButton(); jSeparator2 = new JSeparator(); targetIDField = new JTextField(); searchUserButton = new JButton(); returnButton = new JButton(); jSeparator3 = new JSeparator(); refreshButton = new JButton(); jSeparator4 = new JSeparator(); changePasswdButton = new JButton(); fileSplitPane = new JSplitPane(); jSplitPane2 = new JSplitPane(); fileInfoScroll = new JScrollPane(); fileInfoTable = new JTable(); noteDisplayScroll = new JScrollPane(); noteTable = new JTable(); jSplitPane1 = new JSplitPane(); fileDisplayScroll = new JScrollPane(); fileContentArea = new JTextArea(); noteInputScroll = new JScrollPane(); noteInputArea = new JTextArea(); FormListener formListener = new FormListener(); setForeground(new Color(240, 240, 240)); setFont(new Font("", 0, 12)); // NOI18N setMaximumSize(new Dimension(1366, 768)); setPreferredSize(new Dimension(1366, 700)); fileButtonPane.setMaximumSize(new Dimension(32767, 50)); fileButtonPane.setMinimumSize(new Dimension(404, 50)); uploadFileButton.setFont(new Font("", 0, 12)); // NOI18N uploadFileButton.setText(""); uploadFileButton.setActionCommand("JButton1"); uploadFileButton.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1)); uploadFileButton.setBorderPainted(false); uploadFileButton.setContentAreaFilled(false); uploadFileButton.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); uploadFileButton.setFocusPainted(false); uploadFileButton.setMaximumSize(new Dimension(30, 20)); uploadFileButton.setMinimumSize(new Dimension(30, 20)); uploadFileButton.addMouseListener(formListener); uploadFileButton.addActionListener(formListener); downloadFileButton.setFont(new Font("", 0, 12)); // NOI18N downloadFileButton.setText(""); downloadFileButton.setActionCommand("JButton1"); downloadFileButton.setBorder(null); downloadFileButton.setBorderPainted(false); downloadFileButton.setContentAreaFilled(false); downloadFileButton.setEnabled(false); downloadFileButton.setFocusPainted(false); downloadFileButton.setMaximumSize(new Dimension(30, 20)); downloadFileButton.setMinimumSize(new Dimension(30, 20)); downloadFileButton.setPreferredSize(new Dimension(30, 20)); downloadFileButton.addMouseListener(formListener); downloadFileButton.addActionListener(formListener); deleteFileButton.setFont(new Font("", 0, 12)); // NOI18N deleteFileButton.setText(""); deleteFileButton.setBorder(null); deleteFileButton.setBorderPainted(false); deleteFileButton.setContentAreaFilled(false); deleteFileButton.setEnabled(false); deleteFileButton.setFocusPainted(false); deleteFileButton.addMouseListener(formListener); deleteFileButton.addActionListener(formListener); renameFileButton.setFont(new Font("", 0, 12)); // NOI18N renameFileButton.setText("???"); renameFileButton.setBorder(null); renameFileButton.setBorderPainted(false); renameFileButton.setContentAreaFilled(false); renameFileButton.setEnabled(false); renameFileButton.setFocusPainted(false); renameFileButton.addMouseListener(formListener); renameFileButton.addActionListener(formListener); authorizationButton.setFont(new Font("", 0, 12)); // NOI18N authorizationButton.setText("??"); authorizationButton.setBorder(null); authorizationButton.setBorderPainted(false); authorizationButton.setContentAreaFilled(false); authorizationButton.setEnabled(false); authorizationButton.setFocusPainted(false); authorizationButton.addMouseListener(formListener); authorizationButton.addActionListener(formListener); jSeparator1.setOrientation(SwingConstants.VERTICAL); addNoteButton.setFont(new Font("", 0, 12)); // NOI18N addNoteButton.setText(""); addNoteButton.setActionCommand("JButton1"); addNoteButton.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1)); addNoteButton.setBorderPainted(false); addNoteButton.setContentAreaFilled(false); addNoteButton.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); addNoteButton.setEnabled(false); addNoteButton.setFocusPainted(false); addNoteButton.setMaximumSize(new Dimension(30, 20)); addNoteButton.setMinimumSize(new Dimension(30, 20)); addNoteButton.addMouseListener(formListener); addNoteButton.addActionListener(formListener); deleteNoteButton.setFont(new Font("", 0, 12)); // NOI18N deleteNoteButton.setText(""); deleteNoteButton.setActionCommand("JButton1"); deleteNoteButton.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1)); deleteNoteButton.setBorderPainted(false); deleteNoteButton.setContentAreaFilled(false); deleteNoteButton.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); deleteNoteButton.setEnabled(false); deleteNoteButton.setFocusPainted(false); deleteNoteButton.setMaximumSize(new Dimension(30, 20)); deleteNoteButton.setMinimumSize(new Dimension(30, 20)); deleteNoteButton.addMouseListener(formListener); deleteNoteButton.addActionListener(formListener); jSeparator2.setOrientation(SwingConstants.VERTICAL); targetIDField.setFont(new Font("", 0, 12)); // NOI18N searchUserButton.setFont(new Font("", 0, 12)); // NOI18N searchUserButton.setText(""); searchUserButton.setActionCommand("JButton1"); searchUserButton.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1)); searchUserButton.setBorderPainted(false); searchUserButton.setContentAreaFilled(false); searchUserButton.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); searchUserButton.setFocusPainted(false); searchUserButton.setMaximumSize(new Dimension(30, 20)); searchUserButton.setMinimumSize(new Dimension(30, 20)); searchUserButton.addMouseListener(formListener); searchUserButton.addActionListener(formListener); returnButton.setFont(new Font("", 0, 12)); // NOI18N returnButton.setText(""); returnButton.setActionCommand("JButton1"); returnButton.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1)); returnButton.setBorderPainted(false); returnButton.setContentAreaFilled(false); returnButton.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); returnButton.setFocusPainted(false); returnButton.setMaximumSize(new Dimension(30, 20)); returnButton.setMinimumSize(new Dimension(30, 20)); returnButton.addMouseListener(formListener); returnButton.addActionListener(formListener); jSeparator3.setOrientation(SwingConstants.VERTICAL); refreshButton.setFont(new Font("", 0, 12)); // NOI18N refreshButton.setText(""); refreshButton.setActionCommand("JButton1"); refreshButton.setBorder(null); refreshButton.setBorderPainted(false); refreshButton.setContentAreaFilled(false); refreshButton.setFocusPainted(false); refreshButton.setMaximumSize(new Dimension(30, 20)); refreshButton.setMinimumSize(new Dimension(30, 20)); refreshButton.setPreferredSize(new Dimension(30, 20)); refreshButton.addMouseListener(formListener); refreshButton.addActionListener(formListener); jSeparator4.setOrientation(SwingConstants.VERTICAL); changePasswdButton.setFont(new Font("", 0, 12)); // NOI18N changePasswdButton.setText("?"); changePasswdButton.setActionCommand("JButton1"); changePasswdButton.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1)); changePasswdButton.setBorderPainted(false); changePasswdButton.setContentAreaFilled(false); changePasswdButton.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); changePasswdButton.setFocusPainted(false); changePasswdButton.setMaximumSize(new Dimension(30, 20)); changePasswdButton.setMinimumSize(new Dimension(30, 20)); changePasswdButton.addMouseListener(formListener); changePasswdButton.addActionListener(formListener); GroupLayout fileButtonPaneLayout = new GroupLayout(fileButtonPane); fileButtonPane.setLayout(fileButtonPaneLayout); fileButtonPaneLayout.setHorizontalGroup(fileButtonPaneLayout .createParallelGroup(GroupLayout.Alignment.LEADING) .addGroup(fileButtonPaneLayout.createSequentialGroup() .addComponent(uploadFileButton, GroupLayout.PREFERRED_SIZE, 46, GroupLayout.PREFERRED_SIZE) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addComponent(downloadFileButton, GroupLayout.PREFERRED_SIZE, 46, GroupLayout.PREFERRED_SIZE) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addComponent(deleteFileButton, GroupLayout.PREFERRED_SIZE, 46, GroupLayout.PREFERRED_SIZE) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addComponent(renameFileButton, GroupLayout.PREFERRED_SIZE, 57, GroupLayout.PREFERRED_SIZE) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addComponent(authorizationButton, GroupLayout.PREFERRED_SIZE, 63, GroupLayout.PREFERRED_SIZE) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addComponent(jSeparator1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addComponent(addNoteButton, GroupLayout.PREFERRED_SIZE, 63, GroupLayout.PREFERRED_SIZE) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addComponent(deleteNoteButton, GroupLayout.PREFERRED_SIZE, 63, GroupLayout.PREFERRED_SIZE) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addComponent(jSeparator2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addComponent(targetIDField, GroupLayout.PREFERRED_SIZE, 115, GroupLayout.PREFERRED_SIZE) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addComponent(searchUserButton, GroupLayout.PREFERRED_SIZE, 63, GroupLayout.PREFERRED_SIZE) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addComponent(returnButton, GroupLayout.PREFERRED_SIZE, 63, GroupLayout.PREFERRED_SIZE) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addComponent(jSeparator3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addComponent(refreshButton, GroupLayout.PREFERRED_SIZE, 46, GroupLayout.PREFERRED_SIZE) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addComponent(jSeparator4, GroupLayout.PREFERRED_SIZE, 2, GroupLayout.PREFERRED_SIZE) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(changePasswdButton, GroupLayout.PREFERRED_SIZE, 63, GroupLayout.PREFERRED_SIZE) .addContainerGap(18, Short.MAX_VALUE))); fileButtonPaneLayout.setVerticalGroup(fileButtonPaneLayout .createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(GroupLayout.Alignment.TRAILING, fileButtonPaneLayout.createSequentialGroup().addContainerGap().addGroup(fileButtonPaneLayout .createParallelGroup(GroupLayout.Alignment.TRAILING).addComponent(jSeparator4) .addGroup(fileButtonPaneLayout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE) .addGroup(fileButtonPaneLayout .createParallelGroup(GroupLayout.Alignment.TRAILING) .addComponent(changePasswdButton, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE) .addGroup(fileButtonPaneLayout .createParallelGroup(GroupLayout.Alignment.LEADING) .addComponent(refreshButton, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE) .addGroup(fileButtonPaneLayout .createParallelGroup( GroupLayout.Alignment.TRAILING, false) .addComponent(jSeparator2) .addGroup(fileButtonPaneLayout .createParallelGroup( GroupLayout.Alignment.BASELINE) .addComponent(addNoteButton, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE) .addComponent(deleteNoteButton, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE)) .addComponent(jSeparator1) .addGroup(fileButtonPaneLayout .createParallelGroup( GroupLayout.Alignment.BASELINE) .addComponent(downloadFileButton, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE) .addComponent(deleteFileButton, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE) .addComponent(renameFileButton, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE) .addComponent(authorizationButton, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE) .addComponent(uploadFileButton, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE)) .addComponent(jSeparator3) .addGroup(GroupLayout.Alignment.LEADING, fileButtonPaneLayout.createParallelGroup( GroupLayout.Alignment.BASELINE) .addComponent(targetIDField) .addComponent(searchUserButton, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE) .addComponent(returnButton, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE))))))) .addGap(15, 15, 15))); fileSplitPane.setBackground(new Color(255, 255, 255)); fileSplitPane.setDividerLocation(750); fileSplitPane.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); fileSplitPane.setMaximumSize(new Dimension(1366, 768)); fileSplitPane.setPreferredSize(new Dimension(701, 646)); jSplitPane2.setDividerLocation(400); jSplitPane2.setOrientation(JSplitPane.VERTICAL_SPLIT); jSplitPane2.setContinuousLayout(true); jSplitPane2.setMaximumSize(new Dimension(1366, 768)); fileInfoScroll.setBackground(new Color(255, 255, 255)); fileInfoScroll.setFont(new Font("", 0, 12)); // NOI18N fileInfoScroll.getViewport().setBackground(Color.WHITE); fileInfoScroll.addMouseListener(formListener); fileInfoTable.setAutoCreateRowSorter(true); fileInfoTable.setFont(new Font("", 0, 12)); // NOI18N fileInfoTable.setModel(fileTableModel); fileInfoTable.getTableHeader().setFont(new Font("", 0, 12)); fileInfoTable.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); fileInfoTable.setRowHeight(20); fileInfoTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); fileInfoTable.setShowHorizontalLines(false); fileInfoTable.setShowVerticalLines(false); fileInfoTable.addMouseListener(formListener); fileInfoTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent evt) { fileSelectedChanged(evt); } }); fileInfoScroll.setViewportView(fileInfoTable); jSplitPane2.setTopComponent(fileInfoScroll); noteDisplayScroll.setBackground(new Color(255, 255, 255)); noteDisplayScroll.setFont(new Font("", 0, 12)); // NOI18N noteDisplayScroll.getViewport().setBackground(Color.WHITE); noteDisplayScroll.addMouseListener(formListener); noteTable.setAutoCreateRowSorter(true); noteTable.setFont(new Font("", 0, 12)); // NOI18N noteTable.setModel(noteTableModel); noteTable.getTableHeader().setFont(new Font("", 0, 12)); noteTable.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); noteTable.setRowHeight(20); noteTable.setShowHorizontalLines(false); noteTable.setShowVerticalLines(false); noteTable.addMouseListener(formListener); noteTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent evt) { noteSelectedChanged(evt); } }); noteDisplayScroll.setViewportView(noteTable); jSplitPane2.setBottomComponent(noteDisplayScroll); fileSplitPane.setLeftComponent(jSplitPane2); jSplitPane1.setDividerLocation(500); jSplitPane1.setOrientation(JSplitPane.VERTICAL_SPLIT); fileDisplayScroll.setFont(new Font("", 0, 12)); // NOI18N fileDisplayScroll.setMinimumSize(new Dimension(30, 30)); fileContentArea.setEditable(false); fileContentArea.setColumns(20); fileContentArea.setFont(new Font("", 0, 12)); // NOI18N fileContentArea.setRows(5); fileContentArea.setToolTipText(""); fileContentArea .setBorder(BorderFactory.createTitledBorder(null, "", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font("", 0, 12))); // NOI18N fileDisplayScroll.setViewportView(fileContentArea); jSplitPane1.setTopComponent(fileDisplayScroll); noteInputScroll.setFont(new Font("", 0, 12)); // NOI18N noteInputScroll.setMaximumSize(new Dimension(1366, 768)); noteInputScroll.setMinimumSize(new Dimension(30, 30)); noteInputArea.setColumns(20); noteInputArea.setFont(new Font("", 0, 12)); // NOI18N noteInputArea.setRows(5); noteInputArea.setToolTipText(""); noteInputArea .setBorder(BorderFactory.createTitledBorder(null, "", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font("", 0, 12))); // NOI18N noteInputScroll.setViewportView(noteInputArea); jSplitPane1.setBottomComponent(noteInputScroll); fileSplitPane.setRightComponent(jSplitPane1); GroupLayout layout = new GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(layout .createSequentialGroup().addContainerGap() .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) .addComponent(fileSplitPane, GroupLayout.DEFAULT_SIZE, 1346, Short.MAX_VALUE) .addGroup(layout.createSequentialGroup() .addComponent(fileButtonPane, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE))) .addContainerGap())); layout.setVerticalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(fileButtonPane, GroupLayout.PREFERRED_SIZE, 38, GroupLayout.PREFERRED_SIZE) .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addComponent(fileSplitPane, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE) .addContainerGap())); }
From source file:net.sf.jabref.JabRefPreferences.java
private JabRefPreferences() { try {/*from w w w . j a v a 2s . c o m*/ if (new File("jabref.xml").exists()) { importPreferences("jabref.xml"); } } catch (JabRefException e) { LOGGER.warn("Could not import preferences from jabref.xml: " + e.getMessage(), e); } // load user preferences prefs = Preferences.userNodeForPackage(JabRefMain.class); defaults.put(TEXMAKER_PATH, JabRefDesktop.getNativeDesktop().detectProgramPath("texmaker", "Texmaker")); defaults.put(WIN_EDT_PATH, JabRefDesktop.getNativeDesktop().detectProgramPath("WinEdt", "WinEdt Team\\WinEdt")); defaults.put(LATEX_EDITOR_PATH, JabRefDesktop.getNativeDesktop().detectProgramPath("LEd", "LEd")); defaults.put(TEXSTUDIO_PATH, JabRefDesktop.getNativeDesktop().detectProgramPath("texstudio", "TeXstudio")); defaults.put(BIBLATEX_DEFAULT_MODE, false); if (OS.OS_X) { defaults.put(EMACS_PATH, "emacsclient"); defaults.put(EMACS_23, true); defaults.put(EMACS_ADDITIONAL_PARAMETERS, "-n -e"); defaults.put(FONT_FAMILY, "SansSerif"); defaults.put(WIN_LOOK_AND_FEEL, UIManager.getSystemLookAndFeelClassName()); } else if (OS.WINDOWS) { defaults.put(WIN_LOOK_AND_FEEL, "com.jgoodies.looks.windows.WindowsLookAndFeel"); defaults.put(EMACS_PATH, "emacsclient.exe"); defaults.put(EMACS_23, true); defaults.put(EMACS_ADDITIONAL_PARAMETERS, "-n -e"); defaults.put(FONT_FAMILY, "Arial"); } else { // Linux defaults.put(WIN_LOOK_AND_FEEL, "com.jgoodies.plaf.plastic.Plastic3DLookAndFeel"); defaults.put(FONT_FAMILY, "SansSerif"); defaults.put(EMACS_PATH, "gnuclient"); defaults.put(EMACS_23, false); defaults.put(EMACS_ADDITIONAL_PARAMETERS, "-batch -eval"); } defaults.put(PUSH_TO_APPLICATION, "TeXstudio"); defaults.put(RECENT_FILES, ""); defaults.put(EXTERNAL_FILE_TYPES, ""); defaults.put(KEY_PATTERN_REGEX, ""); defaults.put(KEY_PATTERN_REPLACEMENT, ""); // Proxy defaults.put(PROXY_USE, Boolean.FALSE); defaults.put(PROXY_HOSTNAME, ""); defaults.put(PROXY_PORT, "80"); defaults.put(PROXY_USE_AUTHENTICATION, Boolean.FALSE); defaults.put(PROXY_USERNAME, ""); defaults.put(PROXY_PASSWORD, ""); defaults.put(USE_DEFAULT_LOOK_AND_FEEL, Boolean.TRUE); defaults.put(LYXPIPE, USER_HOME + File.separator + ".lyx/lyxpipe"); defaults.put(VIM, "vim"); defaults.put(VIM_SERVER, "vim"); defaults.put(POS_X, 0); defaults.put(POS_Y, 0); defaults.put(SIZE_X, 1024); defaults.put(SIZE_Y, 768); defaults.put(WINDOW_MAXIMISED, Boolean.FALSE); defaults.put(AUTO_RESIZE_MODE, JTable.AUTO_RESIZE_ALL_COLUMNS); defaults.put(PREVIEW_PANEL_HEIGHT, 200); defaults.put(ENTRY_EDITOR_HEIGHT, 400); defaults.put(TABLE_COLOR_CODES_ON, Boolean.FALSE); defaults.put(NAMES_AS_IS, Boolean.FALSE); // "Show names unchanged" defaults.put(NAMES_FIRST_LAST, Boolean.FALSE); // "Show 'Firstname Lastname'" defaults.put(NAMES_NATBIB, Boolean.TRUE); // "Natbib style" defaults.put(ABBR_AUTHOR_NAMES, Boolean.TRUE); // "Abbreviate names" defaults.put(NAMES_LAST_ONLY, Boolean.TRUE); // "Show last names only" // system locale as default defaults.put(LANGUAGE, Locale.getDefault().getLanguage()); // Sorting preferences defaults.put(TABLE_PRIMARY_SORT_FIELD, "author"); defaults.put(TABLE_PRIMARY_SORT_DESCENDING, Boolean.FALSE); defaults.put(TABLE_SECONDARY_SORT_FIELD, "year"); defaults.put(TABLE_SECONDARY_SORT_DESCENDING, Boolean.TRUE); defaults.put(TABLE_TERTIARY_SORT_FIELD, "title"); defaults.put(TABLE_TERTIARY_SORT_DESCENDING, Boolean.FALSE); defaults.put(REFORMAT_FILE_ON_SAVE_AND_EXPORT, Boolean.FALSE); // export order defaults.put(EXPORT_IN_ORIGINAL_ORDER, Boolean.FALSE); defaults.put(EXPORT_IN_SPECIFIED_ORDER, Boolean.FALSE); // export order: if EXPORT_IN_SPECIFIED_ORDER, then use following criteria defaults.put(EXPORT_PRIMARY_SORT_FIELD, "bibtexkey"); defaults.put(EXPORT_PRIMARY_SORT_DESCENDING, Boolean.FALSE); defaults.put(EXPORT_SECONDARY_SORT_FIELD, "author"); defaults.put(EXPORT_SECONDARY_SORT_DESCENDING, Boolean.FALSE); defaults.put(EXPORT_TERTIARY_SORT_FIELD, "title"); defaults.put(EXPORT_TERTIARY_SORT_DESCENDING, Boolean.TRUE); defaults.put(NEWLINE, System.lineSeparator()); defaults.put(SIDE_PANE_COMPONENT_NAMES, ""); defaults.put(SIDE_PANE_COMPONENT_PREFERRED_POSITIONS, ""); defaults.put(COLUMN_NAMES, "entrytype;author/editor;title;year;journal/booktitle;bibtexkey"); defaults.put(COLUMN_WIDTHS, "75;300;470;60;130;100"); defaults.put(PersistenceTableColumnListener.ACTIVATE_PREF_KEY, PersistenceTableColumnListener.DEFAULT_ENABLED); defaults.put(XMP_PRIVACY_FILTERS, "pdf;timestamp;keywords;owner;note;review"); defaults.put(USE_XMP_PRIVACY_FILTER, Boolean.FALSE); defaults.put(NUMBER_COL_WIDTH, GUIGlobals.NUMBER_COL_LENGTH); defaults.put(WORKING_DIRECTORY, USER_HOME); defaults.put(EXPORT_WORKING_DIRECTORY, USER_HOME); // Remembers working directory of last import defaults.put(IMPORT_WORKING_DIRECTORY, USER_HOME); defaults.put(FILE_WORKING_DIRECTORY, USER_HOME); defaults.put(AUTO_OPEN_FORM, Boolean.TRUE); defaults.put(BACKUP, Boolean.TRUE); defaults.put(OPEN_LAST_EDITED, Boolean.TRUE); defaults.put(LAST_EDITED, ""); defaults.put(LAST_FOCUSED, ""); defaults.put(STRINGS_POS_X, 0); defaults.put(STRINGS_POS_Y, 0); defaults.put(STRINGS_SIZE_X, 600); defaults.put(STRINGS_SIZE_Y, 400); defaults.put(DUPLICATES_POS_X, 0); defaults.put(DUPLICATES_POS_Y, 0); defaults.put(DUPLICATES_SIZE_X, 800); defaults.put(DUPLICATES_SIZE_Y, 600); defaults.put(MERGEENTRIES_POS_X, 0); defaults.put(MERGEENTRIES_POS_Y, 0); defaults.put(MERGEENTRIES_SIZE_X, 800); defaults.put(MERGEENTRIES_SIZE_Y, 600); defaults.put(PREAMBLE_POS_X, 0); defaults.put(PREAMBLE_POS_Y, 0); defaults.put(PREAMBLE_SIZE_X, 600); defaults.put(PREAMBLE_SIZE_Y, 400); defaults.put(DEFAULT_SHOW_SOURCE, Boolean.FALSE); defaults.put(DEFAULT_AUTO_SORT, Boolean.FALSE); defaults.put(SEARCH_CASE_SENSITIVE, Boolean.FALSE); defaults.put(SEARCH_MODE_FILTER, Boolean.TRUE); defaults.put(SEARCH_REG_EXP, Boolean.FALSE); defaults.put(SEARCH_PANE_POS_X, 0); defaults.put(SEARCH_PANE_POS_Y, 0); defaults.put(MERGE_ENTRIES_DIFF_MODE, 2); defaults.put(EDITOR_EMACS_KEYBINDINGS, Boolean.FALSE); defaults.put(EDITOR_EMACS_KEYBINDINGS_REBIND_CA, Boolean.TRUE); defaults.put(EDITOR_EMACS_KEYBINDINGS_REBIND_CF, Boolean.TRUE); defaults.put(AUTO_COMPLETE, Boolean.TRUE); AutoCompletePreferences.putDefaults(defaults); defaults.put(GROUP_FLOAT_SELECTIONS, Boolean.TRUE); defaults.put(GROUP_INTERSECT_SELECTIONS, Boolean.TRUE); defaults.put(GROUP_INVERT_SELECTIONS, Boolean.FALSE); defaults.put(GROUP_SHOW_OVERLAPPING, Boolean.FALSE); defaults.put(GROUP_SELECT_MATCHES, Boolean.FALSE); defaults.put(GROUPS_DEFAULT_FIELD, "keywords"); defaults.put(GROUP_SHOW_ICONS, Boolean.TRUE); defaults.put(GROUP_SHOW_DYNAMIC, Boolean.TRUE); defaults.put(GROUP_EXPAND_TREE, Boolean.TRUE); defaults.put(GROUP_AUTO_SHOW, Boolean.TRUE); defaults.put(GROUP_AUTO_HIDE, Boolean.TRUE); defaults.put(GROUP_SHOW_NUMBER_OF_ELEMENTS, Boolean.FALSE); defaults.put(AUTO_ASSIGN_GROUP, Boolean.TRUE); defaults.put(GROUP_KEYWORD_SEPARATOR, ", "); defaults.put(EDIT_GROUP_MEMBERSHIP_MODE, Boolean.FALSE); defaults.put(HIGHLIGHT_GROUPS_MATCHING, ""); defaults.put(TOOLBAR_VISIBLE, Boolean.TRUE); defaults.put(DEFAULT_ENCODING, StandardCharsets.UTF_8.name()); defaults.put(GROUPS_VISIBLE_ROWS, 8); defaults.put(DEFAULT_OWNER, System.getProperty("user.name")); defaults.put(MEMORY_STICK_MODE, Boolean.FALSE); defaults.put(RENAME_ON_MOVE_FILE_TO_FILE_DIR, Boolean.TRUE); // The general fields stuff is made obsolete by the CUSTOM_TAB_... entries. defaults.put(GENERAL_FIELDS, "crossref;keywords;file;doi;url;urldate;" + "pdf;comment;owner"); defaults.put(FONT_STYLE, java.awt.Font.PLAIN); defaults.put(FONT_SIZE, 12); defaults.put(OVERRIDE_DEFAULT_FONTS, Boolean.FALSE); defaults.put(MENU_FONT_SIZE, 11); defaults.put(TABLE_ROW_PADDING, GUIGlobals.TABLE_ROW_PADDING); defaults.put(TABLE_SHOW_GRID, Boolean.FALSE); // Main table color settings: defaults.put(TABLE_BACKGROUND, "255:255:255"); defaults.put(TABLE_REQ_FIELD_BACKGROUND, "230:235:255"); defaults.put(TABLE_OPT_FIELD_BACKGROUND, "230:255:230"); defaults.put(TABLE_TEXT, "0:0:0"); defaults.put(GRID_COLOR, "210:210:210"); defaults.put(GRAYED_OUT_BACKGROUND, "210:210:210"); defaults.put(GRAYED_OUT_TEXT, "40:40:40"); defaults.put(VERY_GRAYED_OUT_BACKGROUND, "180:180:180"); defaults.put(VERY_GRAYED_OUT_TEXT, "40:40:40"); defaults.put(MARKED_ENTRY_BACKGROUND0, "255:255:180"); defaults.put(MARKED_ENTRY_BACKGROUND1, "255:220:180"); defaults.put(MARKED_ENTRY_BACKGROUND2, "255:180:160"); defaults.put(MARKED_ENTRY_BACKGROUND3, "255:120:120"); defaults.put(MARKED_ENTRY_BACKGROUND4, "255:75:75"); defaults.put(MARKED_ENTRY_BACKGROUND5, "220:255:220"); defaults.put(VALID_FIELD_BACKGROUND_COLOR, "255:255:255"); defaults.put(INVALID_FIELD_BACKGROUND_COLOR, "255:0:0"); defaults.put(ACTIVE_FIELD_EDITOR_BACKGROUND_COLOR, "220:220:255"); defaults.put(FIELD_EDITOR_TEXT_COLOR, "0:0:0"); defaults.put(INCOMPLETE_ENTRY_BACKGROUND, "250:175:175"); defaults.put(CTRL_CLICK, Boolean.FALSE); defaults.put(DISABLE_ON_MULTIPLE_SELECTION, Boolean.FALSE); defaults.put(URL_COLUMN, Boolean.TRUE); defaults.put(PREFER_URL_DOI, Boolean.FALSE); defaults.put(FILE_COLUMN, Boolean.TRUE); defaults.put(ARXIV_COLUMN, Boolean.FALSE); defaults.put(EXTRA_FILE_COLUMNS, Boolean.FALSE); defaults.put(LIST_OF_FILE_COLUMNS, ""); // OpenOffice/LibreOffice if (OS.WINDOWS) { defaults.put(JabRefPreferences.OO_PATH, OpenOfficePreferences.DEFAULT_WINDOWS_PATH); defaults.put(JabRefPreferences.OO_EXECUTABLE_PATH, OpenOfficePreferences.DEFAULT_WINDOWS_PATH + OpenOfficePreferences.WINDOWS_EXECUTABLE_SUBPATH + OpenOfficePreferences.WINDOWS_EXECUTABLE); defaults.put(JabRefPreferences.OO_JARS_PATH, OpenOfficePreferences.DEFAULT_WINDOWS_PATH + OpenOfficePreferences.WINDOWS_JARS_SUBPATH); } else if (OS.OS_X) { defaults.put(JabRefPreferences.OO_PATH, OpenOfficePreferences.DEFAULT_OSX_PATH); defaults.put(JabRefPreferences.OO_EXECUTABLE_PATH, OpenOfficePreferences.DEFAULT_OSX_PATH + OpenOfficePreferences.OSX_EXECUTABLE_SUBPATH + OpenOfficePreferences.OSX_EXECUTABLE); defaults.put(JabRefPreferences.OO_JARS_PATH, OpenOfficePreferences.DEFAULT_OSX_PATH + OpenOfficePreferences.OSX_JARS_SUBPATH); } else { // Linux defaults.put(JabRefPreferences.OO_PATH, "/opt/openoffice.org3"); defaults.put(JabRefPreferences.OO_EXECUTABLE_PATH, "/usr/lib/openoffice/program/soffice"); defaults.put(JabRefPreferences.OO_JARS_PATH, "/opt/openoffice.org/basis3.0"); } defaults.put(JabRefPreferences.OO_SYNC_WHEN_CITING, false); defaults.put(JabRefPreferences.OO_SHOW_PANEL, false); defaults.put(JabRefPreferences.OO_USE_ALL_OPEN_BASES, true); defaults.put(JabRefPreferences.OO_BIBLIOGRAPHY_STYLE_FILE, StyleLoader.DEFAULT_AUTHORYEAR_STYLE_PATH); defaults.put(JabRefPreferences.OO_EXTERNAL_STYLE_FILES, ""); defaults.put(STYLES_POS_X, 0); defaults.put(STYLES_POS_Y, 0); defaults.put(STYLES_SIZE_X, 600); defaults.put(STYLES_SIZE_Y, 400); defaults.put(SpecialFieldsUtils.PREF_SPECIALFIELDSENABLED, SpecialFieldsUtils.PREF_SPECIALFIELDSENABLED_DEFAULT); defaults.put(SpecialFieldsUtils.PREF_SHOWCOLUMN_PRIORITY, SpecialFieldsUtils.PREF_SHOWCOLUMN_PRIORITY_DEFAULT); defaults.put(SpecialFieldsUtils.PREF_SHOWCOLUMN_QUALITY, SpecialFieldsUtils.PREF_SHOWCOLUMN_QUALITY_DEFAULT); defaults.put(SpecialFieldsUtils.PREF_SHOWCOLUMN_RANKING, SpecialFieldsUtils.PREF_SHOWCOLUMN_RANKING_DEFAULT); defaults.put(SpecialFieldsUtils.PREF_SHOWCOLUMN_RELEVANCE, SpecialFieldsUtils.PREF_SHOWCOLUMN_RELEVANCE_DEFAULT); defaults.put(SpecialFieldsUtils.PREF_SHOWCOLUMN_PRINTED, SpecialFieldsUtils.PREF_SHOWCOLUMN_PRINTED_DEFAULT); defaults.put(SpecialFieldsUtils.PREF_SHOWCOLUMN_READ, SpecialFieldsUtils.PREF_SHOWCOLUMN_READ_DEFAULT); defaults.put(SpecialFieldsUtils.PREF_AUTOSYNCSPECIALFIELDSTOKEYWORDS, SpecialFieldsUtils.PREF_AUTOSYNCSPECIALFIELDSTOKEYWORDS_DEFAULT); defaults.put(SpecialFieldsUtils.PREF_SERIALIZESPECIALFIELDS, SpecialFieldsUtils.PREF_SERIALIZESPECIALFIELDS_DEFAULT); defaults.put(USE_OWNER, Boolean.FALSE); defaults.put(OVERWRITE_OWNER, Boolean.FALSE); defaults.put(DIALOG_WARNING_FOR_DUPLICATE_KEY, Boolean.TRUE); defaults.put(DIALOG_WARNING_FOR_EMPTY_KEY, Boolean.TRUE); defaults.put(DISPLAY_KEY_WARNING_DIALOG_AT_STARTUP, Boolean.TRUE); defaults.put(AVOID_OVERWRITING_KEY, Boolean.FALSE); defaults.put(WARN_BEFORE_OVERWRITING_KEY, Boolean.TRUE); defaults.put(CONFIRM_DELETE, Boolean.TRUE); defaults.put(GRAY_OUT_NON_HITS, Boolean.TRUE); defaults.put(SEARCH_MODE_FLOAT, Boolean.FALSE); defaults.put(DEFAULT_LABEL_PATTERN, "[authors3][year]"); defaults.put(PREVIEW_ENABLED, Boolean.TRUE); defaults.put(ACTIVE_PREVIEW, 0); defaults.put(PREVIEW_0, "<font face=\"sans-serif\">" + "<b><i>\\bibtextype</i><a name=\"\\bibtexkey\">\\begin{bibtexkey} (\\bibtexkey)</a>" + "\\end{bibtexkey}</b><br>__NEWLINE__" + "\\begin{author} \\format[Authors(LastFirst,Initials,Semicolon,Amp),HTMLChars]{\\author}<BR>\\end{author}__NEWLINE__" + "\\begin{editor} \\format[Authors(LastFirst,Initials,Semicolon,Amp),HTMLChars]{\\editor} " + "<i>(\\format[IfPlural(Eds.,Ed.)]{\\editor})</i><BR>\\end{editor}__NEWLINE__" + "\\begin{title} \\format[HTMLChars]{\\title} \\end{title}<BR>__NEWLINE__" + "\\begin{chapter} \\format[HTMLChars]{\\chapter}<BR>\\end{chapter}__NEWLINE__" + "\\begin{journal} <em>\\format[HTMLChars]{\\journal}, </em>\\end{journal}__NEWLINE__" // Include the booktitle field for @inproceedings, @proceedings, etc. + "\\begin{booktitle} <em>\\format[HTMLChars]{\\booktitle}, </em>\\end{booktitle}__NEWLINE__" + "\\begin{school} <em>\\format[HTMLChars]{\\school}, </em>\\end{school}__NEWLINE__" + "\\begin{institution} <em>\\format[HTMLChars]{\\institution}, </em>\\end{institution}__NEWLINE__" + "\\begin{publisher} <em>\\format[HTMLChars]{\\publisher}, </em>\\end{publisher}__NEWLINE__" + "\\begin{year}<b>\\year</b>\\end{year}\\begin{volume}<i>, \\volume</i>\\end{volume}" + "\\begin{pages}, \\format[FormatPagesForHTML]{\\pages} \\end{pages}__NEWLINE__" + "\\begin{abstract}<BR><BR><b>Abstract: </b> \\format[HTMLChars]{\\abstract} \\end{abstract}__NEWLINE__" + "\\begin{review}<BR><BR><b>Review: </b> \\format[HTMLChars]{\\review} \\end{review}" + "</dd>__NEWLINE__<p></p></font>"); defaults.put(PREVIEW_1, "<font face=\"sans-serif\">" + "<b><i>\\bibtextype</i><a name=\"\\bibtexkey\">\\begin{bibtexkey} (\\bibtexkey)</a>" + "\\end{bibtexkey}</b><br>__NEWLINE__" + "\\begin{author} \\format[Authors(LastFirst,Initials,Semicolon,Amp),HTMLChars]{\\author}<BR>\\end{author}__NEWLINE__" + "\\begin{editor} \\format[Authors(LastFirst,Initials,Semicolon,Amp),HTMLChars]{\\editor} " + "<i>(\\format[IfPlural(Eds.,Ed.)]{\\editor})</i><BR>\\end{editor}__NEWLINE__" + "\\begin{title} \\format[HTMLChars]{\\title} \\end{title}<BR>__NEWLINE__" + "\\begin{chapter} \\format[HTMLChars]{\\chapter}<BR>\\end{chapter}__NEWLINE__" + "\\begin{journal} <em>\\format[HTMLChars]{\\journal}, </em>\\end{journal}__NEWLINE__" // Include the booktitle field for @inproceedings, @proceedings, etc. + "\\begin{booktitle} <em>\\format[HTMLChars]{\\booktitle}, </em>\\end{booktitle}__NEWLINE__" + "\\begin{school} <em>\\format[HTMLChars]{\\school}, </em>\\end{school}__NEWLINE__" + "\\begin{institution} <em>\\format[HTMLChars]{\\institution}, </em>\\end{institution}__NEWLINE__" + "\\begin{publisher} <em>\\format[HTMLChars]{\\publisher}, </em>\\end{publisher}__NEWLINE__" + "\\begin{year}<b>\\year</b>\\end{year}\\begin{volume}<i>, \\volume</i>\\end{volume}" + "\\begin{pages}, \\format[FormatPagesForHTML]{\\pages} \\end{pages}" + "</dd>__NEWLINE__<p></p></font>"); // TODO: Currently not possible to edit this setting: defaults.put(PREVIEW_PRINT_BUTTON, Boolean.FALSE); defaults.put(DO_NOT_RESOLVE_STRINGS_FOR, "url"); defaults.put(RESOLVE_STRINGS_ALL_FIELDS, Boolean.FALSE); defaults.put(PUT_BRACES_AROUND_CAPITALS, "");//"title;journal;booktitle;review;abstract"); defaults.put(NON_WRAPPABLE_FIELDS, "pdf;ps;url;doi;file"); defaults.put(GENERATE_KEYS_AFTER_INSPECTION, Boolean.TRUE); defaults.put(MARK_IMPORTED_ENTRIES, Boolean.TRUE); defaults.put(UNMARK_ALL_ENTRIES_BEFORE_IMPORTING, Boolean.TRUE); defaults.put(WARN_ABOUT_DUPLICATES_IN_INSPECTION, Boolean.TRUE); defaults.put(USE_TIME_STAMP, Boolean.FALSE); defaults.put(OVERWRITE_TIME_STAMP, Boolean.FALSE); // default time stamp follows ISO-8601. Reason: https://xkcd.com/1179/ defaults.put(TIME_STAMP_FORMAT, "yyyy-MM-dd"); defaults.put(TIME_STAMP_FIELD, InternalBibtexFields.TIMESTAMP); defaults.put(UPDATE_TIMESTAMP, Boolean.FALSE); defaults.put(GENERATE_KEYS_BEFORE_SAVING, Boolean.FALSE); defaults.put(RemotePreferences.USE_REMOTE_SERVER, Boolean.TRUE); defaults.put(RemotePreferences.REMOTE_SERVER_PORT, 6050); defaults.put(PERSONAL_JOURNAL_LIST, ""); defaults.put(EXTERNAL_JOURNAL_LISTS, ""); defaults.put(CITE_COMMAND, "\\cite"); // obsoleted by the app-specific ones (not any more?) defaults.put(FLOAT_MARKED_ENTRIES, Boolean.TRUE); defaults.put(LAST_USED_EXPORT, ""); defaults.put(SIDE_PANE_WIDTH, -1); defaults.put(IMPORT_INSPECTION_DIALOG_WIDTH, 650); defaults.put(IMPORT_INSPECTION_DIALOG_HEIGHT, 650); defaults.put(SEARCH_DIALOG_WIDTH, 650); defaults.put(SEARCH_DIALOG_HEIGHT, 500); defaults.put(SHOW_FILE_LINKS_UPGRADE_WARNING, Boolean.TRUE); defaults.put(AUTOLINK_EXACT_KEY_ONLY, Boolean.FALSE); defaults.put(NUMERIC_FIELDS, "mittnum;author"); defaults.put(RUN_AUTOMATIC_FILE_SEARCH, Boolean.FALSE); defaults.put(USE_LOCK_FILES, Boolean.TRUE); defaults.put(AUTO_SAVE, Boolean.TRUE); defaults.put(AUTO_SAVE_INTERVAL, 5); defaults.put(PROMPT_BEFORE_USING_AUTOSAVE, Boolean.TRUE); defaults.put(ENFORCE_LEGAL_BIBTEX_KEY, Boolean.TRUE); // Curly brackets ({}) are the default delimiters, not quotes (") as these cause trouble when they appear within the field value: // Currently, JabRef does not escape them defaults.put(VALUE_DELIMITERS2, 1); defaults.put(KEY_GEN_FIRST_LETTER_A, Boolean.TRUE); defaults.put(KEY_GEN_ALWAYS_ADD_LETTER, Boolean.FALSE); defaults.put(EMAIL_SUBJECT, Localization.lang("References")); defaults.put(OPEN_FOLDERS_OF_ATTACHED_FILES, Boolean.FALSE); defaults.put(ALLOW_FILE_AUTO_OPEN_BROWSE, Boolean.TRUE); defaults.put(WEB_SEARCH_VISIBLE, Boolean.FALSE); defaults.put(SELECTED_FETCHER_INDEX, 0); defaults.put(BIB_LOC_AS_PRIMARY_DIR, Boolean.FALSE); defaults.put(DB_CONNECT_SERVER_TYPE, "MySQL"); defaults.put(DB_CONNECT_HOSTNAME, "localhost"); defaults.put(DB_CONNECT_DATABASE, "jabref"); defaults.put(DB_CONNECT_USERNAME, "root"); defaults.put(AKS_AUTO_NAMING_PDFS_AGAIN, Boolean.TRUE); insertCleanupPreset(defaults, CLEANUP_DEFAULT_PRESET); // defaults for DroppedFileHandler UI defaults.put(DroppedFileHandler.DFH_LEAVE, Boolean.FALSE); defaults.put(DroppedFileHandler.DFH_COPY, Boolean.TRUE); defaults.put(DroppedFileHandler.DFH_MOVE, Boolean.FALSE); defaults.put(DroppedFileHandler.DFH_RENAME, Boolean.FALSE); //defaults.put("lastAutodetectedImport", ""); //defaults.put("autoRemoveExactDuplicates", Boolean.FALSE); //defaults.put("confirmAutoRemoveExactDuplicates", Boolean.TRUE); //defaults.put("tempDir", System.getProperty("java.io.tmpdir")); LOGGER.debug("Temporary directory: " + System.getProperty("java.io.tempdir")); //defaults.put("keyPattern", new LabelPattern(KEY_PATTERN)); defaults.put(PREF_IMPORT_ALWAYSUSE, Boolean.FALSE); defaults.put(PREF_IMPORT_DEFAULT_PDF_IMPORT_STYLE, ImportSettingsTab.DEFAULT_STYLE); // use BibTeX key appended with filename as default pattern defaults.put(PREF_IMPORT_FILENAMEPATTERN, ImportSettingsTab.DEFAULT_FILENAMEPATTERNS[1]); customExports = new CustomExportList(new ExportComparator()); customImports = new CustomImportList(this); updateSpecialFieldHandling(); WRAPPED_USERNAME = '[' + get(DEFAULT_OWNER) + ']'; MARKING_WITH_NUMBER_PATTERN = "\\[" + get(DEFAULT_OWNER).replaceAll("\\\\", "\\\\\\\\") + ":(\\d+)\\]"; String defaultExpression = "**/.*[bibtexkey].*\\\\.[extension]"; defaults.put(DEFAULT_REG_EXP_SEARCH_EXPRESSION_KEY, defaultExpression); defaults.put(REG_EXP_SEARCH_EXPRESSION_KEY, defaultExpression); defaults.put(AUTOLINK_USE_REG_EXP_SEARCH_KEY, Boolean.FALSE); defaults.put(USE_IEEE_ABRV, Boolean.FALSE); defaults.put(USE_CONVERT_TO_EQUATION, Boolean.FALSE); defaults.put(USE_CASE_KEEPER_ON_SEARCH, Boolean.TRUE); defaults.put(USE_UNIT_FORMATTER_ON_SEARCH, Boolean.TRUE); }
From source file:net.sf.jabref.preferences.JabRefPreferences.java
private JabRefPreferences() { try {/* w w w. ja v a 2 s . co m*/ if (new File("jabref.xml").exists()) { importPreferences("jabref.xml"); } } catch (JabRefException e) { LOGGER.warn("Could not import preferences from jabref.xml: " + e.getMessage(), e); } // load user preferences prefs = Preferences.userNodeForPackage(JabRefMain.class); defaults.put(TEXMAKER_PATH, JabRefDesktop.getNativeDesktop().detectProgramPath("texmaker", "Texmaker")); defaults.put(WIN_EDT_PATH, JabRefDesktop.getNativeDesktop().detectProgramPath("WinEdt", "WinEdt Team\\WinEdt")); defaults.put(LATEX_EDITOR_PATH, JabRefDesktop.getNativeDesktop().detectProgramPath("LEd", "LEd")); defaults.put(TEXSTUDIO_PATH, JabRefDesktop.getNativeDesktop().detectProgramPath("texstudio", "TeXstudio")); defaults.put(BIBLATEX_DEFAULT_MODE, false); if (OS.OS_X) { defaults.put(EMACS_PATH, "emacsclient"); defaults.put(EMACS_23, true); defaults.put(EMACS_ADDITIONAL_PARAMETERS, "-n -e"); defaults.put(FONT_FAMILY, "SansSerif"); defaults.put(WIN_LOOK_AND_FEEL, UIManager.getSystemLookAndFeelClassName()); } else if (OS.WINDOWS) { defaults.put(WIN_LOOK_AND_FEEL, "com.jgoodies.looks.windows.WindowsLookAndFeel"); defaults.put(EMACS_PATH, "emacsclient.exe"); defaults.put(EMACS_23, true); defaults.put(EMACS_ADDITIONAL_PARAMETERS, "-n -e"); defaults.put(FONT_FAMILY, "Arial"); } else { // Linux defaults.put(WIN_LOOK_AND_FEEL, "com.jgoodies.plaf.plastic.Plastic3DLookAndFeel"); defaults.put(FONT_FAMILY, "SansSerif"); defaults.put(EMACS_PATH, "gnuclient"); defaults.put(EMACS_23, false); defaults.put(EMACS_ADDITIONAL_PARAMETERS, "-batch -eval"); } defaults.put(PUSH_TO_APPLICATION, "TeXstudio"); defaults.put(RECENT_FILES, ""); defaults.put(EXTERNAL_FILE_TYPES, ""); defaults.put(KEY_PATTERN_REGEX, ""); defaults.put(KEY_PATTERN_REPLACEMENT, ""); // Proxy defaults.put(PROXY_USE, Boolean.FALSE); defaults.put(PROXY_HOSTNAME, ""); defaults.put(PROXY_PORT, "80"); defaults.put(PROXY_USE_AUTHENTICATION, Boolean.FALSE); defaults.put(PROXY_USERNAME, ""); defaults.put(PROXY_PASSWORD, ""); defaults.put(USE_DEFAULT_LOOK_AND_FEEL, Boolean.TRUE); defaults.put(LYXPIPE, USER_HOME + File.separator + ".lyx/lyxpipe"); defaults.put(VIM, "vim"); defaults.put(VIM_SERVER, "vim"); defaults.put(POS_X, 0); defaults.put(POS_Y, 0); defaults.put(SIZE_X, 1024); defaults.put(SIZE_Y, 768); defaults.put(WINDOW_MAXIMISED, Boolean.FALSE); defaults.put(AUTO_RESIZE_MODE, JTable.AUTO_RESIZE_ALL_COLUMNS); defaults.put(PREVIEW_PANEL_HEIGHT, 200); defaults.put(ENTRY_EDITOR_HEIGHT, 400); defaults.put(TABLE_COLOR_CODES_ON, Boolean.FALSE); defaults.put(NAMES_AS_IS, Boolean.FALSE); // "Show names unchanged" defaults.put(NAMES_FIRST_LAST, Boolean.FALSE); // "Show 'Firstname Lastname'" defaults.put(NAMES_NATBIB, Boolean.TRUE); // "Natbib style" defaults.put(ABBR_AUTHOR_NAMES, Boolean.TRUE); // "Abbreviate names" defaults.put(NAMES_LAST_ONLY, Boolean.TRUE); // "Show last names only" // system locale as default defaults.put(LANGUAGE, Locale.getDefault().getLanguage()); // Sorting preferences defaults.put(TABLE_PRIMARY_SORT_FIELD, FieldName.AUTHOR); defaults.put(TABLE_PRIMARY_SORT_DESCENDING, Boolean.FALSE); defaults.put(TABLE_SECONDARY_SORT_FIELD, FieldName.YEAR); defaults.put(TABLE_SECONDARY_SORT_DESCENDING, Boolean.TRUE); defaults.put(TABLE_TERTIARY_SORT_FIELD, FieldName.TITLE); defaults.put(TABLE_TERTIARY_SORT_DESCENDING, Boolean.FALSE); defaults.put(REFORMAT_FILE_ON_SAVE_AND_EXPORT, Boolean.FALSE); // export order defaults.put(EXPORT_IN_ORIGINAL_ORDER, Boolean.FALSE); defaults.put(EXPORT_IN_SPECIFIED_ORDER, Boolean.FALSE); // export order: if EXPORT_IN_SPECIFIED_ORDER, then use following criteria defaults.put(EXPORT_PRIMARY_SORT_FIELD, BibEntry.KEY_FIELD); defaults.put(EXPORT_PRIMARY_SORT_DESCENDING, Boolean.FALSE); defaults.put(EXPORT_SECONDARY_SORT_FIELD, FieldName.AUTHOR); defaults.put(EXPORT_SECONDARY_SORT_DESCENDING, Boolean.FALSE); defaults.put(EXPORT_TERTIARY_SORT_FIELD, FieldName.TITLE); defaults.put(EXPORT_TERTIARY_SORT_DESCENDING, Boolean.TRUE); defaults.put(NEWLINE, System.lineSeparator()); defaults.put(SIDE_PANE_COMPONENT_NAMES, ""); defaults.put(SIDE_PANE_COMPONENT_PREFERRED_POSITIONS, ""); defaults.put(COLUMN_NAMES, "entrytype;author/editor;title;year;journal/booktitle;bibtexkey"); defaults.put(COLUMN_WIDTHS, "75;300;470;60;130;100"); defaults.put(PersistenceTableColumnListener.ACTIVATE_PREF_KEY, PersistenceTableColumnListener.DEFAULT_ENABLED); defaults.put(XMP_PRIVACY_FILTERS, "pdf;timestamp;keywords;owner;note;review"); defaults.put(USE_XMP_PRIVACY_FILTER, Boolean.FALSE); defaults.put(NUMBER_COL_WIDTH, 32); defaults.put(WORKING_DIRECTORY, USER_HOME); defaults.put(EXPORT_WORKING_DIRECTORY, USER_HOME); // Remembers working directory of last import defaults.put(IMPORT_WORKING_DIRECTORY, USER_HOME); defaults.put(FILE_WORKING_DIRECTORY, USER_HOME); defaults.put(AUTO_OPEN_FORM, Boolean.TRUE); defaults.put(BACKUP, Boolean.TRUE); defaults.put(OPEN_LAST_EDITED, Boolean.TRUE); defaults.put(LAST_EDITED, ""); defaults.put(LAST_FOCUSED, ""); defaults.put(STRINGS_POS_X, 0); defaults.put(STRINGS_POS_Y, 0); defaults.put(STRINGS_SIZE_X, 600); defaults.put(STRINGS_SIZE_Y, 400); defaults.put(DUPLICATES_POS_X, 0); defaults.put(DUPLICATES_POS_Y, 0); defaults.put(DUPLICATES_SIZE_X, 800); defaults.put(DUPLICATES_SIZE_Y, 600); defaults.put(MERGEENTRIES_POS_X, 0); defaults.put(MERGEENTRIES_POS_Y, 0); defaults.put(MERGEENTRIES_SIZE_X, 800); defaults.put(MERGEENTRIES_SIZE_Y, 600); defaults.put(PREAMBLE_POS_X, 0); defaults.put(PREAMBLE_POS_Y, 0); defaults.put(PREAMBLE_SIZE_X, 600); defaults.put(PREAMBLE_SIZE_Y, 400); defaults.put(DEFAULT_SHOW_SOURCE, Boolean.FALSE); defaults.put(DEFAULT_AUTO_SORT, Boolean.FALSE); defaults.put(SEARCH_CASE_SENSITIVE, Boolean.FALSE); defaults.put(SEARCH_MODE_FILTER, Boolean.TRUE); defaults.put(SEARCH_REG_EXP, Boolean.FALSE); defaults.put(SEARCH_PANE_POS_X, 0); defaults.put(SEARCH_PANE_POS_Y, 0); defaults.put(MERGE_ENTRIES_DIFF_MODE, 2); defaults.put(EDITOR_EMACS_KEYBINDINGS, Boolean.FALSE); defaults.put(EDITOR_EMACS_KEYBINDINGS_REBIND_CA, Boolean.TRUE); defaults.put(EDITOR_EMACS_KEYBINDINGS_REBIND_CF, Boolean.TRUE); defaults.put(AUTO_COMPLETE, Boolean.TRUE); AutoCompletePreferences.putDefaults(defaults); defaults.put(GROUP_FLOAT_SELECTIONS, Boolean.TRUE); defaults.put(GROUP_INTERSECT_SELECTIONS, Boolean.TRUE); defaults.put(GROUP_INVERT_SELECTIONS, Boolean.FALSE); defaults.put(GROUP_SHOW_OVERLAPPING, Boolean.FALSE); defaults.put(GROUPS_DEFAULT_FIELD, FieldName.KEYWORDS); defaults.put(GROUP_SHOW_ICONS, Boolean.TRUE); defaults.put(GROUP_SHOW_DYNAMIC, Boolean.TRUE); defaults.put(GROUP_EXPAND_TREE, Boolean.TRUE); defaults.put(GROUP_AUTO_SHOW, Boolean.TRUE); defaults.put(GROUP_AUTO_HIDE, Boolean.TRUE); defaults.put(GROUP_SHOW_NUMBER_OF_ELEMENTS, Boolean.FALSE); defaults.put(AUTO_ASSIGN_GROUP, Boolean.TRUE); defaults.put(KEYWORD_SEPARATOR, ", "); defaults.put(EDIT_GROUP_MEMBERSHIP_MODE, Boolean.FALSE); defaults.put(HIGHLIGHT_GROUPS_MATCHING, "all"); defaults.put(TOOLBAR_VISIBLE, Boolean.TRUE); defaults.put(DEFAULT_ENCODING, StandardCharsets.UTF_8.name()); defaults.put(GROUPS_VISIBLE_ROWS, 8); defaults.put(DEFAULT_OWNER, System.getProperty("user.name")); defaults.put(MEMORY_STICK_MODE, Boolean.FALSE); defaults.put(RENAME_ON_MOVE_FILE_TO_FILE_DIR, Boolean.TRUE); // The general fields stuff is made obsolete by the CUSTOM_TAB_... entries. defaults.put(GENERAL_FIELDS, "crossref;keywords;file;doi;url;urldate;" + "pdf;comment;owner"); defaults.put(FONT_STYLE, java.awt.Font.PLAIN); defaults.put(FONT_SIZE, 12); defaults.put(OVERRIDE_DEFAULT_FONTS, Boolean.FALSE); defaults.put(MENU_FONT_SIZE, 11); defaults.put(TABLE_ROW_PADDING, 9); defaults.put(TABLE_SHOW_GRID, Boolean.FALSE); // Main table color settings: defaults.put(TABLE_BACKGROUND, "255:255:255"); defaults.put(TABLE_REQ_FIELD_BACKGROUND, "230:235:255"); defaults.put(TABLE_OPT_FIELD_BACKGROUND, "230:255:230"); defaults.put(TABLE_TEXT, "0:0:0"); defaults.put(GRID_COLOR, "210:210:210"); defaults.put(GRAYED_OUT_BACKGROUND, "210:210:210"); defaults.put(GRAYED_OUT_TEXT, "40:40:40"); defaults.put(VERY_GRAYED_OUT_BACKGROUND, "180:180:180"); defaults.put(VERY_GRAYED_OUT_TEXT, "40:40:40"); defaults.put(MARKED_ENTRY_BACKGROUND0, "255:255:180"); defaults.put(MARKED_ENTRY_BACKGROUND1, "255:220:180"); defaults.put(MARKED_ENTRY_BACKGROUND2, "255:180:160"); defaults.put(MARKED_ENTRY_BACKGROUND3, "255:120:120"); defaults.put(MARKED_ENTRY_BACKGROUND4, "255:75:75"); defaults.put(MARKED_ENTRY_BACKGROUND5, "220:255:220"); defaults.put(VALID_FIELD_BACKGROUND_COLOR, "255:255:255"); defaults.put(INVALID_FIELD_BACKGROUND_COLOR, "255:0:0"); defaults.put(ACTIVE_FIELD_EDITOR_BACKGROUND_COLOR, "220:220:255"); defaults.put(FIELD_EDITOR_TEXT_COLOR, "0:0:0"); defaults.put(INCOMPLETE_ENTRY_BACKGROUND, "250:175:175"); defaults.put(CTRL_CLICK, Boolean.FALSE); defaults.put(DISABLE_ON_MULTIPLE_SELECTION, Boolean.FALSE); defaults.put(URL_COLUMN, Boolean.TRUE); defaults.put(PREFER_URL_DOI, Boolean.FALSE); defaults.put(FILE_COLUMN, Boolean.TRUE); defaults.put(ARXIV_COLUMN, Boolean.FALSE); defaults.put(EXTRA_FILE_COLUMNS, Boolean.FALSE); defaults.put(LIST_OF_FILE_COLUMNS, ""); // OpenOffice/LibreOffice if (OS.WINDOWS) { defaults.put(JabRefPreferences.OO_PATH, OpenOfficePreferences.DEFAULT_WINDOWS_PATH); defaults.put(JabRefPreferences.OO_EXECUTABLE_PATH, OpenOfficePreferences.DEFAULT_WINDOWS_PATH + OpenOfficePreferences.WINDOWS_EXECUTABLE_SUBPATH + OpenOfficePreferences.WINDOWS_EXECUTABLE); defaults.put(JabRefPreferences.OO_JARS_PATH, OpenOfficePreferences.DEFAULT_WINDOWS_PATH + OpenOfficePreferences.WINDOWS_JARS_SUBPATH); } else if (OS.OS_X) { defaults.put(JabRefPreferences.OO_PATH, OpenOfficePreferences.DEFAULT_OSX_PATH); defaults.put(JabRefPreferences.OO_EXECUTABLE_PATH, OpenOfficePreferences.DEFAULT_OSX_PATH + OpenOfficePreferences.OSX_EXECUTABLE_SUBPATH + OpenOfficePreferences.OSX_EXECUTABLE); defaults.put(JabRefPreferences.OO_JARS_PATH, OpenOfficePreferences.DEFAULT_OSX_PATH + OpenOfficePreferences.OSX_JARS_SUBPATH); } else { // Linux defaults.put(JabRefPreferences.OO_PATH, "/opt/openoffice.org3"); defaults.put(JabRefPreferences.OO_EXECUTABLE_PATH, "/usr/lib/openoffice/program/soffice"); defaults.put(JabRefPreferences.OO_JARS_PATH, "/opt/openoffice.org/basis3.0"); } defaults.put(JabRefPreferences.OO_SYNC_WHEN_CITING, false); defaults.put(JabRefPreferences.OO_SHOW_PANEL, false); defaults.put(JabRefPreferences.OO_USE_ALL_OPEN_BASES, true); defaults.put(JabRefPreferences.OO_BIBLIOGRAPHY_STYLE_FILE, StyleLoader.DEFAULT_AUTHORYEAR_STYLE_PATH); defaults.put(JabRefPreferences.OO_EXTERNAL_STYLE_FILES, ""); defaults.put(STYLES_POS_X, 0); defaults.put(STYLES_POS_Y, 0); defaults.put(STYLES_SIZE_X, 600); defaults.put(STYLES_SIZE_Y, 400); defaults.put(SpecialFieldsUtils.PREF_SPECIALFIELDSENABLED, SpecialFieldsUtils.PREF_SPECIALFIELDSENABLED_DEFAULT); defaults.put(SpecialFieldsUtils.PREF_SHOWCOLUMN_PRIORITY, SpecialFieldsUtils.PREF_SHOWCOLUMN_PRIORITY_DEFAULT); defaults.put(SpecialFieldsUtils.PREF_SHOWCOLUMN_QUALITY, SpecialFieldsUtils.PREF_SHOWCOLUMN_QUALITY_DEFAULT); defaults.put(SpecialFieldsUtils.PREF_SHOWCOLUMN_RANKING, SpecialFieldsUtils.PREF_SHOWCOLUMN_RANKING_DEFAULT); defaults.put(SpecialFieldsUtils.PREF_SHOWCOLUMN_RELEVANCE, SpecialFieldsUtils.PREF_SHOWCOLUMN_RELEVANCE_DEFAULT); defaults.put(SpecialFieldsUtils.PREF_SHOWCOLUMN_PRINTED, SpecialFieldsUtils.PREF_SHOWCOLUMN_PRINTED_DEFAULT); defaults.put(SpecialFieldsUtils.PREF_SHOWCOLUMN_READ, SpecialFieldsUtils.PREF_SHOWCOLUMN_READ_DEFAULT); defaults.put(SpecialFieldsUtils.PREF_AUTOSYNCSPECIALFIELDSTOKEYWORDS, SpecialFieldsUtils.PREF_AUTOSYNCSPECIALFIELDSTOKEYWORDS_DEFAULT); defaults.put(SpecialFieldsUtils.PREF_SERIALIZESPECIALFIELDS, SpecialFieldsUtils.PREF_SERIALIZESPECIALFIELDS_DEFAULT); defaults.put(USE_OWNER, Boolean.FALSE); defaults.put(OVERWRITE_OWNER, Boolean.FALSE); defaults.put(DIALOG_WARNING_FOR_DUPLICATE_KEY, Boolean.TRUE); defaults.put(DIALOG_WARNING_FOR_EMPTY_KEY, Boolean.TRUE); defaults.put(DISPLAY_KEY_WARNING_DIALOG_AT_STARTUP, Boolean.TRUE); defaults.put(AVOID_OVERWRITING_KEY, Boolean.FALSE); defaults.put(WARN_BEFORE_OVERWRITING_KEY, Boolean.TRUE); defaults.put(CONFIRM_DELETE, Boolean.TRUE); defaults.put(GRAY_OUT_NON_HITS, Boolean.TRUE); defaults.put(SEARCH_MODE_FLOAT, Boolean.FALSE); defaults.put(DEFAULT_LABEL_PATTERN, "[auth][year]"); defaults.put(PREVIEW_ENABLED, Boolean.TRUE); defaults.put(ACTIVE_PREVIEW, 0); defaults.put(PREVIEW_0, "<font face=\"sans-serif\">" + "<b><i>\\bibtextype</i><a name=\"\\bibtexkey\">\\begin{bibtexkey} (\\bibtexkey)</a>" + "\\end{bibtexkey}</b><br>__NEWLINE__" + "\\begin{author} \\format[Authors(LastFirst,Initials,Semicolon,Amp),HTMLChars]{\\author}<BR>\\end{author}__NEWLINE__" + "\\begin{editor} \\format[Authors(LastFirst,Initials,Semicolon,Amp),HTMLChars]{\\editor} " + "<i>(\\format[IfPlural(Eds.,Ed.)]{\\editor})</i><BR>\\end{editor}__NEWLINE__" + "\\begin{title} \\format[HTMLChars]{\\title} \\end{title}<BR>__NEWLINE__" + "\\begin{chapter} \\format[HTMLChars]{\\chapter}<BR>\\end{chapter}__NEWLINE__" + "\\begin{journal} <em>\\format[HTMLChars]{\\journal}, </em>\\end{journal}__NEWLINE__" // Include the booktitle field for @inproceedings, @proceedings, etc. + "\\begin{booktitle} <em>\\format[HTMLChars]{\\booktitle}, </em>\\end{booktitle}__NEWLINE__" + "\\begin{school} <em>\\format[HTMLChars]{\\school}, </em>\\end{school}__NEWLINE__" + "\\begin{institution} <em>\\format[HTMLChars]{\\institution}, </em>\\end{institution}__NEWLINE__" + "\\begin{publisher} <em>\\format[HTMLChars]{\\publisher}, </em>\\end{publisher}__NEWLINE__" + "\\begin{year}<b>\\year</b>\\end{year}\\begin{volume}<i>, \\volume</i>\\end{volume}" + "\\begin{pages}, \\format[FormatPagesForHTML]{\\pages} \\end{pages}__NEWLINE__" + "\\begin{abstract}<BR><BR><b>Abstract: </b> \\format[HTMLChars]{\\abstract} \\end{abstract}__NEWLINE__" + "\\begin{review}<BR><BR><b>Review: </b> \\format[HTMLChars]{\\review} \\end{review}" + "</dd>__NEWLINE__<p></p></font>"); defaults.put(PREVIEW_1, "<font face=\"sans-serif\">" + "<b><i>\\bibtextype</i><a name=\"\\bibtexkey\">\\begin{bibtexkey} (\\bibtexkey)</a>" + "\\end{bibtexkey}</b><br>__NEWLINE__" + "\\begin{author} \\format[Authors(LastFirst,Initials,Semicolon,Amp),HTMLChars]{\\author}<BR>\\end{author}__NEWLINE__" + "\\begin{editor} \\format[Authors(LastFirst,Initials,Semicolon,Amp),HTMLChars]{\\editor} " + "<i>(\\format[IfPlural(Eds.,Ed.)]{\\editor})</i><BR>\\end{editor}__NEWLINE__" + "\\begin{title} \\format[HTMLChars]{\\title} \\end{title}<BR>__NEWLINE__" + "\\begin{chapter} \\format[HTMLChars]{\\chapter}<BR>\\end{chapter}__NEWLINE__" + "\\begin{journal} <em>\\format[HTMLChars]{\\journal}, </em>\\end{journal}__NEWLINE__" // Include the booktitle field for @inproceedings, @proceedings, etc. + "\\begin{booktitle} <em>\\format[HTMLChars]{\\booktitle}, </em>\\end{booktitle}__NEWLINE__" + "\\begin{school} <em>\\format[HTMLChars]{\\school}, </em>\\end{school}__NEWLINE__" + "\\begin{institution} <em>\\format[HTMLChars]{\\institution}, </em>\\end{institution}__NEWLINE__" + "\\begin{publisher} <em>\\format[HTMLChars]{\\publisher}, </em>\\end{publisher}__NEWLINE__" + "\\begin{year}<b>\\year</b>\\end{year}\\begin{volume}<i>, \\volume</i>\\end{volume}" + "\\begin{pages}, \\format[FormatPagesForHTML]{\\pages} \\end{pages}" + "</dd>__NEWLINE__<p></p></font>"); // TODO: Currently not possible to edit this setting: defaults.put(PREVIEW_PRINT_BUTTON, Boolean.FALSE); defaults.put(DO_NOT_RESOLVE_STRINGS_FOR, FieldName.URL); defaults.put(RESOLVE_STRINGS_ALL_FIELDS, Boolean.FALSE); defaults.put(NON_WRAPPABLE_FIELDS, "pdf;ps;url;doi;file"); defaults.put(GENERATE_KEYS_AFTER_INSPECTION, Boolean.TRUE); defaults.put(MARK_IMPORTED_ENTRIES, Boolean.TRUE); defaults.put(UNMARK_ALL_ENTRIES_BEFORE_IMPORTING, Boolean.TRUE); defaults.put(WARN_ABOUT_DUPLICATES_IN_INSPECTION, Boolean.TRUE); defaults.put(USE_TIME_STAMP, Boolean.FALSE); defaults.put(OVERWRITE_TIME_STAMP, Boolean.FALSE); // default time stamp follows ISO-8601. Reason: https://xkcd.com/1179/ defaults.put(TIME_STAMP_FORMAT, "yyyy-MM-dd"); defaults.put(TIME_STAMP_FIELD, InternalBibtexFields.TIMESTAMP); defaults.put(UPDATE_TIMESTAMP, Boolean.FALSE); defaults.put(GENERATE_KEYS_BEFORE_SAVING, Boolean.FALSE); defaults.put(RemotePreferences.USE_REMOTE_SERVER, Boolean.TRUE); defaults.put(RemotePreferences.REMOTE_SERVER_PORT, 6050); defaults.put(PERSONAL_JOURNAL_LIST, ""); defaults.put(EXTERNAL_JOURNAL_LISTS, ""); defaults.put(CITE_COMMAND, "\\cite"); // obsoleted by the app-specific ones (not any more?) defaults.put(FLOAT_MARKED_ENTRIES, Boolean.TRUE); defaults.put(LAST_USED_EXPORT, ""); defaults.put(SIDE_PANE_WIDTH, -1); defaults.put(IMPORT_INSPECTION_DIALOG_WIDTH, 650); defaults.put(IMPORT_INSPECTION_DIALOG_HEIGHT, 650); defaults.put(SEARCH_DIALOG_WIDTH, 650); defaults.put(SEARCH_DIALOG_HEIGHT, 500); defaults.put(SHOW_FILE_LINKS_UPGRADE_WARNING, Boolean.TRUE); defaults.put(AUTOLINK_EXACT_KEY_ONLY, Boolean.FALSE); defaults.put(NUMERIC_FIELDS, "mittnum;author"); defaults.put(RUN_AUTOMATIC_FILE_SEARCH, Boolean.FALSE); defaults.put(USE_LOCK_FILES, Boolean.TRUE); defaults.put(AUTO_SAVE, Boolean.TRUE); defaults.put(AUTO_SAVE_INTERVAL, 5); defaults.put(PROMPT_BEFORE_USING_AUTOSAVE, Boolean.TRUE); defaults.put(ENFORCE_LEGAL_BIBTEX_KEY, Boolean.TRUE); // Curly brackets ({}) are the default delimiters, not quotes (") as these cause trouble when they appear within the field value: // Currently, JabRef does not escape them defaults.put(VALUE_DELIMITERS2, 1); defaults.put(KEY_GEN_FIRST_LETTER_A, Boolean.TRUE); defaults.put(KEY_GEN_ALWAYS_ADD_LETTER, Boolean.FALSE); defaults.put(EMAIL_SUBJECT, Localization.lang("References")); defaults.put(OPEN_FOLDERS_OF_ATTACHED_FILES, Boolean.FALSE); defaults.put(ALLOW_FILE_AUTO_OPEN_BROWSE, Boolean.TRUE); defaults.put(WEB_SEARCH_VISIBLE, Boolean.FALSE); defaults.put(SELECTED_FETCHER_INDEX, 0); defaults.put(BIB_LOC_AS_PRIMARY_DIR, Boolean.FALSE); defaults.put(DB_CONNECT_SERVER_TYPE, "MySQL"); defaults.put(DB_CONNECT_HOSTNAME, "localhost"); defaults.put(DB_CONNECT_DATABASE, "jabref"); defaults.put(DB_CONNECT_USERNAME, "root"); defaults.put(AKS_AUTO_NAMING_PDFS_AGAIN, Boolean.TRUE); insertCleanupPreset(defaults, CLEANUP_DEFAULT_PRESET); // defaults for DroppedFileHandler UI defaults.put(DroppedFileHandler.DFH_LEAVE, Boolean.FALSE); defaults.put(DroppedFileHandler.DFH_COPY, Boolean.TRUE); defaults.put(DroppedFileHandler.DFH_MOVE, Boolean.FALSE); defaults.put(DroppedFileHandler.DFH_RENAME, Boolean.FALSE); //defaults.put("lastAutodetectedImport", ""); //defaults.put("autoRemoveExactDuplicates", Boolean.FALSE); //defaults.put("confirmAutoRemoveExactDuplicates", Boolean.TRUE); //defaults.put("tempDir", System.getProperty("java.io.tmpdir")); LOGGER.debug("Temporary directory: " + System.getProperty("java.io.tempdir")); //defaults.put("keyPattern", new LabelPattern(KEY_PATTERN)); defaults.put(PREF_IMPORT_ALWAYSUSE, Boolean.FALSE); defaults.put(PREF_IMPORT_DEFAULT_PDF_IMPORT_STYLE, ImportSettingsTab.DEFAULT_STYLE); // use BibTeX key appended with filename as default pattern defaults.put(PREF_IMPORT_FILENAMEPATTERN, ImportSettingsTab.DEFAULT_FILENAMEPATTERNS[1]); customExports = new CustomExportList(new ExportComparator()); customImports = new CustomImportList(this); updateSpecialFieldHandling(); WRAPPED_USERNAME = '[' + get(DEFAULT_OWNER) + ']'; MARKING_WITH_NUMBER_PATTERN = "\\[" + get(DEFAULT_OWNER).replaceAll("\\\\", "\\\\\\\\") + ":(\\d+)\\]"; String defaultExpression = "**/.*[bibtexkey].*\\\\.[extension]"; defaults.put(DEFAULT_REG_EXP_SEARCH_EXPRESSION_KEY, defaultExpression); defaults.put(REG_EXP_SEARCH_EXPRESSION_KEY, defaultExpression); defaults.put(AUTOLINK_USE_REG_EXP_SEARCH_KEY, Boolean.FALSE); defaults.put(USE_IEEE_ABRV, Boolean.FALSE); defaults.put(USE_CASE_KEEPER_ON_SEARCH, Boolean.TRUE); defaults.put(USE_UNIT_FORMATTER_ON_SEARCH, Boolean.TRUE); defaults.put(MAX_BACK_HISTORY_SIZE, 10); defaults.put(LINE_LENGTH, 65); defaults.put(INDENT, 4); defaults.put(USE_DEFAULT_CONSOLE_APPLICATION, Boolean.TRUE); if (OS.WINDOWS) { defaults.put(CONSOLE_COMMAND, "C:\\Program Files\\ConEmu\\ConEmu64.exe /single /dir \"%DIR\""); } else { defaults.put(CONSOLE_COMMAND, ""); } //versioncheck defaults defaults.put(VersionPreferences.VERSION_IGNORED_UPDATE, ""); }
From source file:edu.ucla.stat.SOCR.chart.Chart.java
/** * setup GUI layout for the data panel including datatable and summary textArea * */// ww w. j av a 2 s . c o m protected void initTable() { tModel = new DefaultTableModel(dataObject, columnNames); hModel = new DefaultTableModel(0, 1); dataTable = new JTable(tModel); /* System.out.println("here"); dataTable.getTableHeader().addMouseListener(new MouseAdapter(){ public void mouseClicked(MouseEvent e) { TableColumnModel colModel = dataTable.getColumnModel(); int columnModelIndex = colModel.getColumnIndexAtX(e.getX()); selectedHeaderColumnIndex = colModel.getColumn(columnModelIndex) .getModelIndex(); System.out.println("mouseClicked haeder "+selectedHeaderColumnIndex); } });*/ /*final JTableHeader heading = dataTable.getTableHeader(); dataTable.addMouseListener(new MouseAdapter(){ public void mouseClicked(MouseEvent e) { selectedHeaderColumnIndex = heading.columnAtPoint(e.getPoint()); System.out.println("mouseClicked haeder "+selectedHeaderColumnIndex); } }); */ dataTable.addKeyListener(this); dataTable.setGridColor(Color.gray); dataTable.setShowGrid(true); for (int i = 0; i < tModel.getRowCount(); i++) hModel.addRow(new Object[] { (i + 1) + ":" }); headerTable = new JTable(hModel); headerTable.setCellSelectionEnabled(false); headerTable.setEnabled(false); headerTable.setGridColor(Color.gray); headerTable.setShowGrid(true); LookAndFeel.installColorsAndFont(headerTable, "TableHeader.background", "TableHeader.foreground", "TableHeader.font"); headerTable.setIntercellSpacing(new Dimension(0, 0)); Dimension d = headerTable.getPreferredScrollableViewportSize(); d.width = headerTable.getPreferredSize().width; headerTable.setPreferredScrollableViewportSize(d); headerTable.setRowHeight(dataTable.getRowHeight()); headerTable.setDefaultRenderer(Object.class, new RowHeaderRenderer()); JTableHeader corner = headerTable.getTableHeader(); corner.setReorderingAllowed(false); corner.setResizingAllowed(false); // this is a fix for the BAD SGI Java VM - not up to date as of dec. 22, 2003 try { dataTable.setDragEnabled(true); } catch (Exception e) { } columnModel = dataTable.getColumnModel(); dTableHeader = new EditableHeader(columnModel); dataTable.setTableHeader(dTableHeader); dataTable.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); dataTable.setCellSelectionEnabled(true); dataTable.setColumnSelectionAllowed(true); dataTable.setRowSelectionAllowed(true); hookTableAction(); dataPanel = new JPanel(); summaryPanel = new JTextArea(); // summaryPanel.setPreferredSize(new Dimension(CHART_SIZE_X,CHART_SIZE_Y/2)); Color bg = dataPanel.getBackground(); summaryPanel.setBackground(bg); summaryPanel.setEditable(false); summaryPanel.setForeground(Color.BLACK); dataPanel.setLayout(new BoxLayout(dataPanel, BoxLayout.Y_AXIS)); JScrollPane tablePanel = new JScrollPane(dataTable); tablePanel.setRowHeaderView(headerTable); tablePanel.setCorner(JScrollPane.UPPER_LEFT_CORNER, corner); new JScrollPaneAdjuster(tablePanel); new JTableRowHeaderResizer(tablePanel).setEnabled(true); dataPanel.add(tablePanel); JScrollPane st = new JScrollPane(summaryPanel); st.setPreferredSize(new Dimension(CHART_SIZE_X, CHART_SIZE_Y / 3)); dataPanel.add(new JScrollPane(st)); dataPanel.validate(); }
From source file:client.ui.FilePane.java
private void getDirectory(String targetID) { FileDirectoryResult result;/* w w w .j ava 2 s . c om*/ try { result = m_Business.getDirectory(targetID); FileDirectoryStatus status = result.getResult(); switch (status) { case OK: ArrayList<CloudFile> directory = result.getFileDirectory(); Collections.sort(directory); fileInfoTable.clearSelection(); fileInfoTable.getRowSorter().setSortKeys(null); fileTableModel.setDirectory(directory); fileInfoTable.setModel(fileTableModel); fileInfoTable.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); fileInfoTable.setEnabled(true); setCurrentID(targetID); //fileInfoTable.repaint(); repaint(); break; case unAuthorized: JOptionPane.showMessageDialog(m_MainFrame, "?", "", JOptionPane.WARNING_MESSAGE); m_MainFrame.setVisible(false); LoginDialog loginDialog = new LoginDialog(m_MainFrame, m_Business); break; case wrong: JOptionPane.showMessageDialog(m_MainFrame, "?", "", JOptionPane.WARNING_MESSAGE); break; default: JOptionPane.showMessageDialog(m_MainFrame, "", "", JOptionPane.ERROR_MESSAGE); break; } } catch (IOException e) { JOptionPane.showMessageDialog(m_MainFrame, "", "", JOptionPane.ERROR_MESSAGE); } clearNoteAndText(); fileInfoTable.clearSelection(); }
From source file:client.ui.FilePane.java
private void refreshNoteAndText() { CloudFile selectedFile = getSelectedFile(); if (selectedFile == null) { // clearNoteAndText(); //note } else {/* w w w . ja va2 s.c o m*/ try { NoteListResult noteListResult = m_Business.getNoteList(selectedFile); NoteListStatus noteStatus = noteListResult.getResult(); switch (noteStatus) { case OK: ArrayList<Note> noteList = noteListResult.getNoteList(); Collections.sort(noteList); noteTable.getRowSorter().setSortKeys(null); noteTableModel.setNoteList(noteList); noteTable.setModel(noteTableModel); noteTable.clearSelection(); noteTable.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); if (selectedFile.getFilename().endsWith(".txt")) { DownloadFileResult downloadFileResult = m_Business.downloadFile(selectedFile); DownloadFileStatus fileStatus = downloadFileResult.getResult(); switch (fileStatus) { case OK: String content = IOUtils.toString(downloadFileResult.getContent(), "gbk"); fileContentArea.setText(content); noteTable.repaint(); fileContentArea.repaint(); break; case unAuthorized: JOptionPane.showMessageDialog(m_MainFrame, "?", "", JOptionPane.WARNING_MESSAGE); m_MainFrame.setVisible(false); LoginDialog loginDialog = new LoginDialog(m_MainFrame, m_Business); break; case wrong: JOptionPane.showMessageDialog(m_MainFrame, "?", "", JOptionPane.WARNING_MESSAGE); getDirectory(currentID); break; default: JOptionPane.showMessageDialog(m_MainFrame, "", "", JOptionPane.ERROR_MESSAGE); break; } } else { fileContentArea.setText(""); noteTable.repaint(); fileContentArea.repaint(); } break; case unAuthorized: JOptionPane.showMessageDialog(m_MainFrame, "?", "", JOptionPane.WARNING_MESSAGE); m_MainFrame.setVisible(false); LoginDialog loginDialog = new LoginDialog(m_MainFrame, m_Business); break; case wrong: JOptionPane.showMessageDialog(m_MainFrame, "?", "", JOptionPane.WARNING_MESSAGE); getDirectory(currentID); break; default: JOptionPane.showMessageDialog(m_MainFrame, "", "", JOptionPane.ERROR_MESSAGE); break; } } catch (IOException e) { JOptionPane.showMessageDialog(m_MainFrame, "", "", JOptionPane.ERROR_MESSAGE); clearNoteAndText(); } } }
From source file:com.osparking.attendant.AttListForm.java
/** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor./*from www. ja v a2 s . c o m*/ */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; saveFileChooser = new javax.swing.JFileChooser(); requiredNotice = new javax.swing.JLabel(); filler40 = new javax.swing.Box.Filler(new java.awt.Dimension(40, 0), new java.awt.Dimension(40, 0), new java.awt.Dimension(40, 32767)); topPanel = new javax.swing.JPanel(); wholePanel = new javax.swing.JPanel(); westPanel = new javax.swing.JPanel(); metaKeyPanel = new javax.swing.JPanel(); modePanel = new javax.swing.JPanel(); jLabel2 = new javax.swing.JLabel(); modeString = new javax.swing.JLabel(); jSeparator1 = new javax.swing.JSeparator(); RequiredPanel1 = new javax.swing.JPanel(); legendLLabel = new javax.swing.JLabel(); filler42 = new javax.swing.Box.Filler(new java.awt.Dimension(20, 0), new java.awt.Dimension(20, 0), new java.awt.Dimension(20, 32767)); sym_1 = new javax.swing.JLabel(); legend_1 = new javax.swing.JLabel(); sym_2 = new javax.swing.JLabel(); legend_2 = new javax.swing.JLabel(); jSeparator2 = new javax.swing.JSeparator(); userDetailsPanel = new javax.swing.JPanel(); userIDLabel = new javax.swing.JLabel(); isIDreqLabel = new javax.swing.JLabel(); userIDText = new javax.swing.JTextField(); checkIDButton = new javax.swing.JButton(); adminAuthLabel = new javax.swing.JLabel(); managerCheckBox = new javax.swing.JCheckBox(); managerHelpButton = new javax.swing.JButton(); nameLabel = new javax.swing.JLabel(); nameReqLabel = new javax.swing.JLabel(); userNameText = new javax.swing.JTextField(); jLabel5 = new javax.swing.JLabel(); cellReqLabel = new javax.swing.JLabel(); cellPhoneText = new javax.swing.JTextField(); jLabel6 = new javax.swing.JLabel(); phoneReqLabel = new javax.swing.JLabel(); phoneText = new javax.swing.JTextField(); jLabel4 = new javax.swing.JLabel(); emailAddrText = new javax.swing.JTextField(); checkEmailButton = new javax.swing.JButton(); changePWLabel = new javax.swing.JLabel(); changePWCheckBox = new javax.swing.JCheckBox(); newPW1Label = new javax.swing.JLabel(); newPW1ReqLabel = new javax.swing.JLabel(); new1Password = new javax.swing.JPasswordField(); PWHelpButton = new javax.swing.JButton(); newPW2Label = new javax.swing.JLabel(); newPW2ReqLabel = new javax.swing.JLabel(); new2Password = new javax.swing.JPasswordField(); userPWLabel = new javax.swing.JLabel(); userPWReqLabel = new javax.swing.JLabel(); userPassword = new javax.swing.JPasswordField(); createDate = new javax.swing.JLabel(); creationDateText = new javax.swing.JTextField(); centerPanel = new javax.swing.JPanel(); titlePanel = new javax.swing.JPanel(); attendantGUI_title = new javax.swing.JLabel(); topInPanel2 = new javax.swing.JPanel(); adminAuth2CheckBox = new javax.swing.JCheckBox(); listTopPanel = new javax.swing.JPanel(); countLabel = new javax.swing.JLabel(); countValue = new javax.swing.JLabel(); topUserIdLabel = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); usersTable = new javax.swing.JTable() { public boolean isCellEditable(int rowIndex, int colIndex) { return false; //Disallow the editing of any cell } }; southPanel = new javax.swing.JPanel(); spacePanel1 = new javax.swing.JPanel(); btnPanel = new javax.swing.JPanel(); createButton = new javax.swing.JButton(); filler71 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 10), new java.awt.Dimension(10, 10), new java.awt.Dimension(10, 32767)); multiFuncButton = new javax.swing.JButton(); filler72 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 10), new java.awt.Dimension(10, 10), new java.awt.Dimension(10, 32767)); deleteButton = new javax.swing.JButton(); filler73 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 10), new java.awt.Dimension(10, 10), new java.awt.Dimension(10, 32767)); cancelButton = new javax.swing.JButton(); filler22 = new javax.swing.Box.Filler(new java.awt.Dimension(15, 0), new java.awt.Dimension(90, 0), new java.awt.Dimension(32767, 32767)); searchPanel = new javax.swing.JPanel(); searchCriteriaComboBox = new javax.swing.JComboBox(); searchText = new javax.swing.JTextField(); searchButton = new javax.swing.JButton(); filler81 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 10), new java.awt.Dimension(10, 10), new java.awt.Dimension(10, 32767)); saveOdsButton = new javax.swing.JButton(); filler82 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 10), new java.awt.Dimension(10, 10), new java.awt.Dimension(10, 32767)); closeFormButton = new javax.swing.JButton(); bottomPanel = new javax.swing.JPanel(); filler3 = new javax.swing.Box.Filler(new java.awt.Dimension(40, 0), new java.awt.Dimension(40, 0), new java.awt.Dimension(40, 32767)); saveFileChooser.setDialogType(javax.swing.JFileChooser.SAVE_DIALOG); saveFileChooser.setApproveButtonText(SAVE_BTN.getContent()); saveFileChooser.setCurrentDirectory(ODS_DIRECTORY); saveFileChooser.setDialogTitle(ATTENDANT_ODS_TITLE.getContent()); saveFileChooser.setFileFilter(new OdsFileOnly()); saveFileChooser.setToolTipText(""); saveFileChooser.setEnabled(false); saveFileChooser.setName(""); // NOI18N requiredNotice.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); requiredNotice.setText("X: Reauired, O : 1"); requiredNotice.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); requiredNotice.setMaximumSize(new java.awt.Dimension(80, 21)); requiredNotice.setMinimumSize(new java.awt.Dimension(80, 21)); requiredNotice.setPreferredSize(new java.awt.Dimension(80, 21)); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle(ATTLIST_FRAME_TITLE.getContent()); setMinimumSize(new Dimension(normGUIwidth, normGUIheight)); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { formWindowClosing(evt); } }); getContentPane().add(filler40, java.awt.BorderLayout.WEST); topPanel.setMinimumSize(new java.awt.Dimension(267, 40)); topPanel.setPreferredSize(new java.awt.Dimension(267, 40)); javax.swing.GroupLayout topPanelLayout = new javax.swing.GroupLayout(topPanel); topPanel.setLayout(topPanelLayout); topPanelLayout.setHorizontalGroup(topPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 1022, Short.MAX_VALUE)); topPanelLayout.setVerticalGroup(topPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 40, Short.MAX_VALUE)); getContentPane().add(topPanel, java.awt.BorderLayout.NORTH); wholePanel.setMinimumSize(new java.awt.Dimension(400, 670)); wholePanel.setPreferredSize(new java.awt.Dimension(400, 670)); wholePanel.setLayout(new java.awt.BorderLayout(20, 0)); westPanel.setMaximumSize(new java.awt.Dimension(2147483647, 2147483647)); westPanel.setMinimumSize(new java.awt.Dimension(330, 540)); westPanel.setPreferredSize(new java.awt.Dimension(330, 540)); westPanel.setLayout(new javax.swing.BoxLayout(westPanel, javax.swing.BoxLayout.PAGE_AXIS)); metaKeyPanel.setMinimumSize(new java.awt.Dimension(0, 26)); metaKeyPanel.setPreferredSize(new java.awt.Dimension(0, 26)); metaKeyPanel.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 0, 0)); westPanel.add(metaKeyPanel); modePanel.setMaximumSize(new java.awt.Dimension(32767, 28)); modePanel.setMinimumSize(new java.awt.Dimension(300, 26)); modePanel.setPreferredSize(new java.awt.Dimension(300, 26)); jLabel2.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel2.setText(MODE_LABEL.getContent()); jLabel2.setMaximumSize(new java.awt.Dimension(200, 28)); jLabel2.setMinimumSize(new java.awt.Dimension(50, 26)); jLabel2.setPreferredSize(new java.awt.Dimension(80, 26)); modeString.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); modeString.setForeground(pointColor); modeString.setText(SEARCH.getContent()); modeString.setMaximumSize(new java.awt.Dimension(200, 28)); modeString.setMinimumSize(new java.awt.Dimension(34, 26)); modeString.setPreferredSize(new java.awt.Dimension(80, 26)); javax.swing.GroupLayout modePanelLayout = new javax.swing.GroupLayout(modePanel); modePanel.setLayout(modePanelLayout); modePanelLayout .setHorizontalGroup(modePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(modePanelLayout.createSequentialGroup() .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(5, 5, 5).addComponent(modeString, javax.swing.GroupLayout.PREFERRED_SIZE, 198, javax.swing.GroupLayout.PREFERRED_SIZE))); modePanelLayout.setVerticalGroup(modePanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, modePanelLayout.createSequentialGroup() .addGap(0, 0, 0) .addGroup(modePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(modeString, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap())); westPanel.add(modePanel); jSeparator1.setMaximumSize(new java.awt.Dimension(32767, 5)); jSeparator1.setMinimumSize(new java.awt.Dimension(0, 5)); jSeparator1.setPreferredSize(new java.awt.Dimension(0, 5)); westPanel.add(jSeparator1); RequiredPanel1.setMaximumSize(new java.awt.Dimension(32877, 1024)); RequiredPanel1.setMinimumSize(new java.awt.Dimension(300, 26)); RequiredPanel1.setPreferredSize(new java.awt.Dimension(300, 26)); RequiredPanel1.setLayout(new javax.swing.BoxLayout(RequiredPanel1, javax.swing.BoxLayout.LINE_AXIS)); legendLLabel.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); legendLLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); legendLLabel.setText(DATA_COND.getContent()); legendLLabel.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); legendLLabel.setMaximumSize(new java.awt.Dimension(130, 21)); legendLLabel.setMinimumSize(new java.awt.Dimension(130, 21)); legendLLabel.setName(""); // NOI18N legendLLabel.setPreferredSize(new java.awt.Dimension(130, 21)); RequiredPanel1.add(legendLLabel); RequiredPanel1.add(filler42); sym_1.setFont(new java.awt.Font(font_Type, font_Style, font_Size + 3)); sym_1.setForeground(new java.awt.Color(255, 0, 0)); sym_1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); sym_1.setText("*"); sym_1.setMaximumSize(new java.awt.Dimension(16, 30)); sym_1.setMinimumSize(new java.awt.Dimension(16, 21)); sym_1.setPreferredSize(new java.awt.Dimension(16, 21)); RequiredPanel1.add(sym_1); legend_1.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); legend_1.setText(REQUIRED1_LABEL.getContent() + ", "); legend_1.setMaximumSize(new java.awt.Dimension(80, 30)); legend_1.setMinimumSize(new java.awt.Dimension(40, 21)); legend_1.setName(""); // NOI18N legend_1.setPreferredSize(new java.awt.Dimension(40, 21)); resizeComponentFor(legend_1, REQUIRED1_LABEL.getContent() + ", "); RequiredPanel1.add(legend_1); sym_2.setFont(new java.awt.Font(font_Type, font_Style, font_Size + 3)); sym_2.setForeground(new java.awt.Color(0, 0, 255)); sym_2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); sym_2.setText("*"); sym_2.setMaximumSize(new java.awt.Dimension(16, 30)); sym_2.setMinimumSize(new java.awt.Dimension(16, 21)); sym_2.setPreferredSize(new java.awt.Dimension(16, 21)); RequiredPanel1.add(sym_2); legend_2.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); legend_2.setText(REQUIRED2_LABEL.getContent()); legend_2.setMaximumSize(new java.awt.Dimension(320, 30)); legend_2.setMinimumSize(new java.awt.Dimension(50, 21)); legend_2.setName(""); // NOI18N legend_2.setPreferredSize(new java.awt.Dimension(50, 21)); RequiredPanel1.add(legend_2); westPanel.add(RequiredPanel1); jSeparator2.setMaximumSize(new java.awt.Dimension(32767, 2)); jSeparator2.setMinimumSize(new java.awt.Dimension(0, 2)); westPanel.add(jSeparator2); userDetailsPanel.setMinimumSize(new java.awt.Dimension(320, 318)); userDetailsPanel.setPreferredSize(new java.awt.Dimension(320, 337)); java.awt.GridBagLayout userDetailsPanelLayout = new java.awt.GridBagLayout(); userDetailsPanelLayout.columnWidths = new int[] { 0, 5, 0, 5, 0, 5, 0 }; userDetailsPanelLayout.rowHeights = new int[] { 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0 }; userDetailsPanel.setLayout(userDetailsPanelLayout); userIDLabel.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); userIDLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); userIDLabel.setText(LOGIN_ID_LABEL.getContent()); userIDLabel.setMaximumSize(new java.awt.Dimension(130, 26)); userIDLabel.setMinimumSize(new java.awt.Dimension(130, 26)); userIDLabel.setPreferredSize(new java.awt.Dimension(130, 26)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END; userDetailsPanel.add(userIDLabel, gridBagConstraints); isIDreqLabel.setFont(new java.awt.Font(font_Type, font_Style, font_Size + 3)); isIDreqLabel.setForeground(new java.awt.Color(255, 0, 0)); isIDreqLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); isIDreqLabel.setText("*"); isIDreqLabel.setToolTipText(""); isIDreqLabel.setEnabled(false); isIDreqLabel.setMaximumSize(new java.awt.Dimension(24, 26)); isIDreqLabel.setMinimumSize(new java.awt.Dimension(24, 21)); isIDreqLabel.setPreferredSize(new java.awt.Dimension(24, 26)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 0; userDetailsPanel.add(isIDreqLabel, gridBagConstraints); userIDText.setEditable(false); userIDText.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); userIDText.setToolTipText(ID_INPUT_TOOLTIP.getContent()); userIDText.setDisabledTextColor(new java.awt.Color(102, 102, 102)); userIDText.setEnabled(false); userIDText.setMaximumSize(new java.awt.Dimension(32767, 30)); userIDText.setMinimumSize(new Dimension(carTagWidth, 30)); userIDText.setPreferredSize(new Dimension(carTagWidth, 30)); userIDText.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { userIDTextFocusGained(evt); } }); userIDText.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { newIDtyped(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; userDetailsPanel.add(userIDText, gridBagConstraints); checkIDButton.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); checkIDButton.setMnemonic('K'); checkIDButton.setText(ID_CHECK_BTN.getContent()); checkIDButton.setToolTipText(CHK_DUP_ID_TIP.getContent()); checkIDButton.setEnabled(false); checkIDButton.setMaximumSize(new Dimension(buttonWidthWide, buttonHeightShort)); checkIDButton.setMinimumSize(new Dimension(buttonWidthWide, buttonHeightShort)); checkIDButton.setPreferredSize(new Dimension(buttonWidthWide, buttonHeightShort)); checkIDButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { checkIDButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 2; userDetailsPanel.add(checkIDButton, gridBagConstraints); adminAuthLabel.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); adminAuthLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); adminAuthLabel.setText(MANAGER_HEADER.getContent()); adminAuthLabel.setToolTipText(""); adminAuthLabel.setMaximumSize(new java.awt.Dimension(130, 21)); adminAuthLabel.setMinimumSize(new java.awt.Dimension(130, 21)); adminAuthLabel.setPreferredSize(new java.awt.Dimension(130, 21)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 4; gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END; userDetailsPanel.add(adminAuthLabel, gridBagConstraints); managerCheckBox.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); managerCheckBox.setEnabled(false); managerCheckBox.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT); managerCheckBox.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { managerCheckBoxActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 4; gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; userDetailsPanel.add(managerCheckBox, gridBagConstraints); managerHelpButton.setBackground(new java.awt.Color(153, 255, 153)); managerHelpButton.setFont(new java.awt.Font("Dotum", 1, 14)); // NOI18N managerHelpButton.setIcon(getQuest20_Icon()); managerHelpButton.setEnabled(false); managerHelpButton.setIconTextGap(0); managerHelpButton.setMargin(new java.awt.Insets(0, 0, 0, 0)); managerHelpButton.setMaximumSize(new java.awt.Dimension(20, 20)); managerHelpButton.setMinimumSize(new java.awt.Dimension(20, 20)); managerHelpButton.setOpaque(false); managerHelpButton.setPreferredSize(new java.awt.Dimension(20, 20)); managerHelpButton.setRequestFocusEnabled(false); managerHelpButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { managerHelpButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 6; gridBagConstraints.gridy = 4; gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 5); userDetailsPanel.add(managerHelpButton, gridBagConstraints); nameLabel.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); nameLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); nameLabel.setText(NAME_LABEL.getContent()); nameLabel.setMaximumSize(new java.awt.Dimension(130, 26)); nameLabel.setMinimumSize(new java.awt.Dimension(130, 26)); nameLabel.setPreferredSize(new java.awt.Dimension(130, 26)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 6; gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END; userDetailsPanel.add(nameLabel, gridBagConstraints); nameReqLabel.setFont(new java.awt.Font(font_Type, font_Style, font_Size + 3)); nameReqLabel.setForeground(new java.awt.Color(255, 0, 0)); nameReqLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); nameReqLabel.setText("*"); nameReqLabel.setMaximumSize(new java.awt.Dimension(24, 26)); nameReqLabel.setMinimumSize(new java.awt.Dimension(24, 21)); nameReqLabel.setPreferredSize(new java.awt.Dimension(24, 26)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 6; userDetailsPanel.add(nameReqLabel, gridBagConstraints); userNameText.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); userNameText.setToolTipText(NAME_INPUT_TOOLTIP.getContent()); userNameText.setEnabled(false); userNameText.setMaximumSize(new java.awt.Dimension(32767, 30)); userNameText.setMinimumSize(new Dimension(carTagWidth, 30)); userNameText.setName(""); // NOI18N userNameText.setPreferredSize(new Dimension(carTagWidth, 30)); userNameText.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { userNameTextFocusGained(evt); } }); userNameText.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { userNameTextKeyReleased(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; userDetailsPanel.add(userNameText, gridBagConstraints); jLabel5.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel5.setText(CELL_PHONE_LABEL.getContent()); jLabel5.setToolTipText(CELL_PHONE_TOOLTIP.getContent()); jLabel5.setMaximumSize(new java.awt.Dimension(130, 21)); jLabel5.setMinimumSize(new java.awt.Dimension(130, 21)); jLabel5.setPreferredSize(new java.awt.Dimension(130, 21)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 8; gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END; userDetailsPanel.add(jLabel5, gridBagConstraints); cellReqLabel.setFont(new java.awt.Font(font_Type, font_Style, font_Size + 3)); cellReqLabel.setForeground(new java.awt.Color(0, 0, 255)); cellReqLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); cellReqLabel.setText("*"); cellReqLabel.setToolTipText(CELL_PHONE_TOOLTIP.getContent()); cellReqLabel.setMaximumSize(new java.awt.Dimension(24, 26)); cellReqLabel.setMinimumSize(new java.awt.Dimension(24, 21)); cellReqLabel.setPreferredSize(new java.awt.Dimension(24, 26)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 8; userDetailsPanel.add(cellReqLabel, gridBagConstraints); cellPhoneText.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); cellPhoneText.setToolTipText(CELL_INPUT_TOOLTIP.getContent()); cellPhoneText.setEnabled(false); cellPhoneText.setMaximumSize(new java.awt.Dimension(32767, 30)); cellPhoneText.setMinimumSize(new Dimension(carTagWidth, 30)); cellPhoneText.setPreferredSize(new Dimension(carTagWidth, 30)); cellPhoneText.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { cellPhoneTextKeyReleased(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 8; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; userDetailsPanel.add(cellPhoneText, gridBagConstraints); jLabel6.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel6.setText(PHONE_LABEL.getContent()); jLabel6.setToolTipText(CELL_PHONE_TOOLTIP.getContent()); jLabel6.setMaximumSize(new java.awt.Dimension(130, 21)); jLabel6.setMinimumSize(new java.awt.Dimension(130, 21)); jLabel6.setPreferredSize(new java.awt.Dimension(130, 21)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 10; gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END; userDetailsPanel.add(jLabel6, gridBagConstraints); phoneReqLabel.setFont(new java.awt.Font(font_Type, font_Style, font_Size + 3)); phoneReqLabel.setForeground(new java.awt.Color(0, 0, 255)); phoneReqLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); phoneReqLabel.setText("*"); phoneReqLabel.setToolTipText(CELL_PHONE_TOOLTIP.getContent()); phoneReqLabel.setMaximumSize(new java.awt.Dimension(24, 26)); phoneReqLabel.setMinimumSize(new java.awt.Dimension(24, 21)); phoneReqLabel.setPreferredSize(new java.awt.Dimension(24, 26)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 10; userDetailsPanel.add(phoneReqLabel, gridBagConstraints); phoneText.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); phoneText.setToolTipText(PHONE_INPUT_TOOLTIP.getContent()); phoneText.setEnabled(false); phoneText.setMaximumSize(new java.awt.Dimension(32767, 30)); phoneText.setMinimumSize(new Dimension(carTagWidth, 30)); phoneText.setPreferredSize(new Dimension(carTagWidth, 30)); phoneText.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { phoneTextKeyReleased(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 10; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; userDetailsPanel.add(phoneText, gridBagConstraints); jLabel4.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel4.setText(EMAIL_LABEL.getContent()); jLabel4.setMaximumSize(new java.awt.Dimension(130, 30)); jLabel4.setMinimumSize(new java.awt.Dimension(130, 30)); jLabel4.setPreferredSize(new java.awt.Dimension(130, 30)); jLabel4.setRequestFocusEnabled(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 12; gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END; userDetailsPanel.add(jLabel4, gridBagConstraints); emailAddrText.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); emailAddrText.setHorizontalAlignment(javax.swing.JTextField.LEFT); emailAddrText.setToolTipText(EMAIL_TOOLTIP.getContent() + "userID@company.com"); emailAddrText.setEnabled(false); emailAddrText.setMaximumSize(new java.awt.Dimension(32767, 30)); emailAddrText.setMinimumSize(new java.awt.Dimension(140, 30)); emailAddrText.setPreferredSize(new java.awt.Dimension(140, 30)); emailAddrText.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { emailAddrTextFocusGained(evt); } }); emailAddrText.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { emailAddrTextKeyReleased(evt); } public void keyTyped(java.awt.event.KeyEvent evt) { EmailTypedHandler(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 12; gridBagConstraints.gridwidth = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; userDetailsPanel.add(emailAddrText, gridBagConstraints); checkEmailButton.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); checkEmailButton.setMnemonic('L'); checkEmailButton.setText(EMAIL_CHECK_BTN.getContent()); checkEmailButton.setToolTipText(CHK_E_MAIL_TIP.getContent()); checkEmailButton.setEnabled(false); checkEmailButton.setMaximumSize(new Dimension(buttonWidthWide, buttonHeightShort)); checkEmailButton.setMinimumSize(new Dimension(buttonWidthWide, buttonHeightShort)); checkEmailButton.setPreferredSize(new Dimension(buttonWidthWide, buttonHeightShort)); checkEmailButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { checkEmailButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 14; userDetailsPanel.add(checkEmailButton, gridBagConstraints); changePWLabel.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); changePWLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); changePWLabel.setText(CHANGE_PW_LABEL.getContent()); changePWLabel.setMaximumSize(new java.awt.Dimension(130, 21)); changePWLabel.setMinimumSize(new java.awt.Dimension(130, 21)); changePWLabel.setPreferredSize(new java.awt.Dimension(130, 21)); changePWLabel.setRequestFocusEnabled(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 16; gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END; userDetailsPanel.add(changePWLabel, gridBagConstraints); changePWCheckBox.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); changePWCheckBox.setEnabled(false); changePWCheckBox.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { changePWCheckBoxActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 16; gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; userDetailsPanel.add(changePWCheckBox, gridBagConstraints); newPW1Label.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); newPW1Label.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING); newPW1Label.setText(NEW_PW_LABLE.getContent()); newPW1Label.setMaximumSize(new java.awt.Dimension(150, 21)); newPW1Label.setMinimumSize(new java.awt.Dimension(150, 21)); newPW1Label.setPreferredSize(new java.awt.Dimension(150, 21)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 18; gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END; userDetailsPanel.add(newPW1Label, gridBagConstraints); newPW1ReqLabel.setFont(new java.awt.Font(font_Type, font_Style, font_Size + 3)); newPW1ReqLabel.setForeground(new java.awt.Color(255, 0, 0)); newPW1ReqLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); newPW1ReqLabel.setText("*"); newPW1ReqLabel.setToolTipText(""); newPW1ReqLabel.setEnabled(false); newPW1ReqLabel.setMaximumSize(new java.awt.Dimension(24, 26)); newPW1ReqLabel.setMinimumSize(new java.awt.Dimension(24, 21)); newPW1ReqLabel.setPreferredSize(new java.awt.Dimension(24, 26)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 18; userDetailsPanel.add(newPW1ReqLabel, gridBagConstraints); new1Password.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); new1Password.setToolTipText(showPasswordRequirement()); new1Password.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR)); new1Password.setEnabled(false); new1Password.setMaximumSize(new java.awt.Dimension(32767, 30)); new1Password.setMinimumSize(new Dimension(carTagWidth, 30)); new1Password.setNextFocusableComponent(new2Password); new1Password.setPreferredSize(new Dimension(carTagWidth, 30)); new1Password.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { new1PasswordFocusGained(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 18; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; userDetailsPanel.add(new1Password, gridBagConstraints); PWHelpButton.setBackground(new java.awt.Color(153, 255, 153)); PWHelpButton.setFont(new java.awt.Font("Dotum", 1, 14)); // NOI18N PWHelpButton.setIcon(getQuest20_Icon()); PWHelpButton.setEnabled(false); PWHelpButton.setIconTextGap(0); PWHelpButton.setMargin(new java.awt.Insets(0, 0, 0, 0)); PWHelpButton.setMaximumSize(new java.awt.Dimension(20, 20)); PWHelpButton.setMinimumSize(new java.awt.Dimension(20, 20)); PWHelpButton.setOpaque(false); PWHelpButton.setPreferredSize(new java.awt.Dimension(20, 20)); PWHelpButton.setRequestFocusEnabled(false); PWHelpButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { PWHelpButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 6; gridBagConstraints.gridy = 18; gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 5); userDetailsPanel.add(PWHelpButton, gridBagConstraints); newPW2Label.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); newPW2Label.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING); newPW2Label.setText(REPEAT_PW_LABEL.getContent()); newPW2Label.setMaximumSize(new java.awt.Dimension(150, 21)); newPW2Label.setMinimumSize(new java.awt.Dimension(150, 21)); newPW2Label.setPreferredSize(new java.awt.Dimension(150, 21)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 20; userDetailsPanel.add(newPW2Label, gridBagConstraints); newPW2ReqLabel.setFont(new java.awt.Font(font_Type, font_Style, font_Size + 3)); newPW2ReqLabel.setForeground(new java.awt.Color(255, 0, 0)); newPW2ReqLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); newPW2ReqLabel.setText("*"); newPW2ReqLabel.setToolTipText(""); newPW2ReqLabel.setEnabled(false); newPW2ReqLabel.setMaximumSize(new java.awt.Dimension(24, 26)); newPW2ReqLabel.setMinimumSize(new java.awt.Dimension(24, 21)); newPW2ReqLabel.setPreferredSize(new java.awt.Dimension(24, 26)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 20; userDetailsPanel.add(newPW2ReqLabel, gridBagConstraints); new2Password.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); new2Password.setToolTipText(REPEAT_PW_INPUT_TOOLTIP.getContent()); new2Password.setEnabled(false); new2Password.setMaximumSize(new java.awt.Dimension(32767, 30)); new2Password.setMinimumSize(new Dimension(carTagWidth, 30)); new2Password.setPreferredSize(new Dimension(carTagWidth, 30)); new2Password.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { new2PasswordFocusGained(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 20; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; userDetailsPanel.add(new2Password, gridBagConstraints); userPWLabel.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); userPWLabel.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING); userPWLabel.setText(MY_PW_LABEL.getContent()); userPWLabel.setMaximumSize(new java.awt.Dimension(150, 21)); userPWLabel.setMinimumSize(new java.awt.Dimension(150, 21)); userPWLabel.setPreferredSize(new java.awt.Dimension(150, 21)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 22; userDetailsPanel.add(userPWLabel, gridBagConstraints); userPWReqLabel.setFont(new java.awt.Font(font_Type, font_Style, font_Size + 3)); userPWReqLabel.setForeground(new java.awt.Color(255, 0, 0)); userPWReqLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); userPWReqLabel.setText("*"); userPWReqLabel.setEnabled(false); userPWReqLabel.setMaximumSize(new java.awt.Dimension(24, 26)); userPWReqLabel.setMinimumSize(new java.awt.Dimension(24, 21)); userPWReqLabel.setPreferredSize(new java.awt.Dimension(24, 26)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 22; userDetailsPanel.add(userPWReqLabel, gridBagConstraints); userPassword.setEditable(false); userPassword.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); userPassword.setToolTipText(""); userPassword.setEnabled(false); userPassword.setMaximumSize(new java.awt.Dimension(32767, 30)); userPassword.setMinimumSize(new Dimension(carTagWidth, 30)); userPassword.setPreferredSize(new Dimension(carTagWidth, 30)); userPassword.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { userPasswordFocusGained(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 22; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; userDetailsPanel.add(userPassword, gridBagConstraints); createDate.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); createDate.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); createDate.setText(CREATION_LABEL.getContent()); createDate.setMaximumSize(new java.awt.Dimension(150, 21)); createDate.setMinimumSize(new java.awt.Dimension(150, 21)); createDate.setPreferredSize(new java.awt.Dimension(150, 21)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 24; userDetailsPanel.add(createDate, gridBagConstraints); creationDateText.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); creationDateText.setToolTipText(""); creationDateText.setEnabled(false); creationDateText.setMaximumSize(new java.awt.Dimension(32767, 30)); creationDateText.setMinimumSize(new Dimension(carTagWidth, 30)); creationDateText.setPreferredSize(new Dimension(carTagWidth, 30)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 24; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; userDetailsPanel.add(creationDateText, gridBagConstraints); westPanel.add(userDetailsPanel); wholePanel.add(westPanel, java.awt.BorderLayout.WEST); centerPanel.setMinimumSize(new java.awt.Dimension(600, 540)); centerPanel.setPreferredSize(new java.awt.Dimension(600, 540)); centerPanel.setLayout(new javax.swing.BoxLayout(centerPanel, javax.swing.BoxLayout.Y_AXIS)); titlePanel.setMaximumSize(new java.awt.Dimension(32767, 26)); titlePanel.setMinimumSize(new java.awt.Dimension(267, 26)); titlePanel.setPreferredSize(new java.awt.Dimension(267, 26)); titlePanel.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 0, 0)); attendantGUI_title.setFont(new java.awt.Font(font_Type, font_Style, head_font_Size)); attendantGUI_title.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); attendantGUI_title.setText(ATTLIST_FRAME_TITLE.getContent()); titlePanel.add(attendantGUI_title); centerPanel.add(titlePanel); topInPanel2.setMaximumSize(new java.awt.Dimension(32767, 26)); topInPanel2.setMinimumSize(new java.awt.Dimension(267, 26)); topInPanel2.setPreferredSize(new java.awt.Dimension(267, 26)); adminAuth2CheckBox.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); adminAuth2CheckBox.setText(MANAGER_HEADER.getContent()); adminAuth2CheckBox.setToolTipText(""); adminAuth2CheckBox.setEnabled(false); adminAuth2CheckBox.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); adminAuth2CheckBox.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT); javax.swing.GroupLayout topInPanel2Layout = new javax.swing.GroupLayout(topInPanel2); topInPanel2.setLayout(topInPanel2Layout); topInPanel2Layout.setHorizontalGroup( topInPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup( javax.swing.GroupLayout.Alignment.TRAILING, topInPanel2Layout.createSequentialGroup() .addContainerGap(491, Short.MAX_VALUE).addComponent(adminAuth2CheckBox))); topInPanel2Layout .setVerticalGroup(topInPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, topInPanel2Layout .createSequentialGroup().addGap(0, 0, 0).addComponent(adminAuth2CheckBox))); centerPanel.add(topInPanel2); listTopPanel.setMaximumSize(new java.awt.Dimension(32767, 30)); listTopPanel.setPreferredSize(new java.awt.Dimension(76, 30)); countLabel.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); countLabel.setText(COUNT_LABEL.getContent()); countValue.setForeground(pointColor); countValue.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); countValue.setText("0"); topUserIdLabel.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); topUserIdLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); topUserIdLabel.setText(LOGIN_ID_LABEL.getContent() + ": " + loginID); topUserIdLabel.setBorder(javax.swing.BorderFactory.createEtchedBorder()); topUserIdLabel.setMaximumSize(new java.awt.Dimension(20000, 26)); topUserIdLabel.setMinimumSize(new java.awt.Dimension(80, 26)); topUserIdLabel.setPreferredSize(new java.awt.Dimension(80, 26)); javax.swing.GroupLayout listTopPanelLayout = new javax.swing.GroupLayout(listTopPanel); listTopPanel.setLayout(listTopPanelLayout); listTopPanelLayout.setHorizontalGroup(listTopPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(listTopPanelLayout.createSequentialGroup().addGap(1, 1, 1) .addComponent(countLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(countValue, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 398, Short.MAX_VALUE) .addComponent(topUserIdLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))); listTopPanelLayout.setVerticalGroup(listTopPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(listTopPanelLayout.createSequentialGroup().addGap(0, 0, 0) .addGroup(listTopPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(countLabel).addComponent(countValue).addComponent(topUserIdLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); centerPanel.add(listTopPanel); jScrollPane1.setMinimumSize(new java.awt.Dimension(603, 474)); jScrollPane1.setName(""); // NOI18N jScrollPane1.setPreferredSize(new java.awt.Dimension(603, 0)); usersTable.setAutoCreateRowSorter(true); usersTable.setFont(new java.awt.Font(font_Type, 0, font_Size)); usersTable.setModel(new javax.swing.table.DefaultTableModel( new Object[][] { { null, null, null, null, null, null, null, null }, { null, null, null, null, null, null, null, null }, { null, null, null, null, null, null, null, null }, { null, null, null, null, null, null, null, null }, }, new String[] { USER_ID_HEADER.getContent(), NAME_HEADER.getContent(), MANAGER_HEADER.getContent(), CELL_PHONE_HEADER.getContent(), PHONE_HEADER.getContent(), EMAIL_HEADER.getContent(), CREATED_HEADER.getContent(), MODIFIED_HEADER.getContent() })); TableColumnModel utcm = usersTable.getColumnModel(); utcm.removeColumn(utcm.getColumn(6)); usersTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_ALL_COLUMNS); usersTable.setFillsViewportHeight(true); usersTable.setFocusCycleRoot(true); usersTable.setMaximumSize(new java.awt.Dimension(32767, 32767)); usersTable.setMinimumSize(new java.awt.Dimension(600, 0)); usersTable.setName(""); // NOI18N usersTable.setNextFocusableComponent(userNameText); usersTable.setPreferredSize(new java.awt.Dimension(600, 0)); usersTable.setRowHeight(tableRowHeight); ((DefaultTableCellRenderer) usersTable.getTableHeader().getDefaultRenderer()) .setHorizontalAlignment(JLabel.CENTER); jScrollPane1.setViewportView(usersTable); centerPanel.add(jScrollPane1); wholePanel.add(centerPanel, java.awt.BorderLayout.CENTER); southPanel.setMinimumSize(new java.awt.Dimension(980, 55)); southPanel.setPreferredSize(new java.awt.Dimension(980, 55)); southPanel.setLayout(new javax.swing.BoxLayout(southPanel, javax.swing.BoxLayout.PAGE_AXIS)); spacePanel1.setMaximumSize(new java.awt.Dimension(32767, 15)); spacePanel1.setMinimumSize(new java.awt.Dimension(0, 15)); spacePanel1.setPreferredSize(new java.awt.Dimension(980, 15)); javax.swing.GroupLayout spacePanel1Layout = new javax.swing.GroupLayout(spacePanel1); spacePanel1.setLayout(spacePanel1Layout); spacePanel1Layout.setHorizontalGroup(spacePanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 942, Short.MAX_VALUE)); spacePanel1Layout.setVerticalGroup(spacePanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 15, Short.MAX_VALUE)); southPanel.add(spacePanel1); btnPanel.setMaximumSize(new java.awt.Dimension(33747, 40)); btnPanel.setMinimumSize(new java.awt.Dimension(980, 40)); btnPanel.setPreferredSize(new java.awt.Dimension(980, 40)); btnPanel.setLayout(new javax.swing.BoxLayout(btnPanel, javax.swing.BoxLayout.LINE_AXIS)); createButton.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); createButton.setMnemonic('r'); createButton.setText(CREATE_BTN.getContent()); createButton.setEnabled(false); createButton.setMargin(new java.awt.Insets(0, 0, 0, 0)); createButton.setMaximumSize(new Dimension(buttonWidthNorm, buttonHeightNorm)); createButton.setMinimumSize(new Dimension(buttonWidthNorm, buttonHeightNorm)); createButton.setPreferredSize(new Dimension(buttonWidthNorm, buttonHeightNorm)); createButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { createButtonActionPerformed(evt); } }); btnPanel.add(createButton); btnPanel.add(filler71); multiFuncButton.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); multiFuncButton.setMnemonic('m'); multiFuncButton.setText(MODIFY_BTN.getContent()); multiFuncButton.setEnabled(false); multiFuncButton.setMargin(new java.awt.Insets(0, 0, 0, 0)); multiFuncButton.setMaximumSize(new Dimension(buttonWidthNorm, buttonHeightNorm)); multiFuncButton.setMinimumSize(new Dimension(buttonWidthNorm, buttonHeightNorm)); multiFuncButton.setPreferredSize(new Dimension(buttonWidthNorm, buttonHeightNorm)); multiFuncButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { multiFuncButtonActionPerformed(evt); } }); btnPanel.add(multiFuncButton); btnPanel.add(filler72); deleteButton.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); deleteButton.setMnemonic('d'); deleteButton.setText(DELETE_BTN.getContent()); deleteButton.setEnabled(false); deleteButton.setMargin(new java.awt.Insets(0, 0, 0, 0)); deleteButton.setMaximumSize(new Dimension(buttonWidthNorm, buttonHeightNorm)); deleteButton.setMinimumSize(new Dimension(buttonWidthNorm, buttonHeightNorm)); deleteButton.setPreferredSize(new Dimension(buttonWidthNorm, buttonHeightNorm)); deleteButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { deleteButtonActionPerformed(evt); } }); btnPanel.add(deleteButton); btnPanel.add(filler73); cancelButton.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); cancelButton.setMnemonic('c'); cancelButton.setText(CANCEL_BTN.getContent()); cancelButton.setEnabled(false); cancelButton.setMargin(new java.awt.Insets(0, 0, 0, 0)); cancelButton.setMaximumSize(new Dimension(buttonWidthNorm, buttonHeightNorm)); cancelButton.setMinimumSize(new Dimension(buttonWidthNorm, buttonHeightNorm)); cancelButton.setPreferredSize(new Dimension(buttonWidthNorm, buttonHeightNorm)); cancelButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelButtonActionPerformed(evt); } }); btnPanel.add(cancelButton); btnPanel.add(filler22); searchPanel.setBackground(new java.awt.Color(191, 191, 191)); searchPanel.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED)); searchPanel.setMaximumSize(new java.awt.Dimension(300, 2147483647)); searchPanel.setMinimumSize(new java.awt.Dimension(270, 56)); searchPanel.setPreferredSize(new java.awt.Dimension(270, 56)); searchPanel.setLayout(new javax.swing.BoxLayout(searchPanel, javax.swing.BoxLayout.LINE_AXIS)); searchCriteriaComboBox.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); ((JLabel) searchCriteriaComboBox.getRenderer()).setHorizontalAlignment(JLabel.RIGHT); searchCriteriaComboBox.setModel(new javax.swing.DefaultComboBoxModel( new String[] { NAME_LABEL.getContent(), LOGIN_ID_LABEL.getContent() })); searchCriteriaComboBox.setMaximumSize(new java.awt.Dimension(90, 30)); searchCriteriaComboBox.setMinimumSize(new java.awt.Dimension(90, 30)); searchCriteriaComboBox.setPreferredSize(new java.awt.Dimension(90, 30)); searchCriteriaComboBox.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { searchCriteriaComboBoxItemStateChanged(evt); } }); searchPanel.add(searchCriteriaComboBox); searchText.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); searchText.setText(CTRL_F_TOOLTIP.getContent()); searchText.setToolTipText(SEARCH_TOOLTIP.getContent()); searchText.setMaximumSize(new java.awt.Dimension(120, 30)); searchText.setMinimumSize(new java.awt.Dimension(80, 30)); searchText.setPreferredSize(new java.awt.Dimension(80, 30)); searchText.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { searchTextFocusGained(evt); } public void focusLost(java.awt.event.FocusEvent evt) { searchTextFocusLost(evt); } }); searchText.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { searchTextKeyReleased(evt); } }); searchPanel.add(searchText); searchButton.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); searchButton.setMnemonic('S'); searchButton.setText(SEARCH_BTN.getContent()); searchButton.setEnabled(false); searchButton.setMargin(new java.awt.Insets(0, 0, 0, 0)); searchButton.setMaximumSize(new Dimension(buttonWidthNorm, buttonHeightNorm)); searchButton.setMinimumSize(new Dimension(buttonWidthNorm, buttonHeightNorm)); searchButton.setPreferredSize(new Dimension(buttonWidthNorm, buttonHeightNorm)); searchButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { searchButtonActionPerformed(evt); } }); searchPanel.add(searchButton); btnPanel.add(searchPanel); btnPanel.add(filler81); saveOdsButton.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); saveOdsButton.setMnemonic('A'); saveOdsButton.setText(SAVE_ODS_BTN.getContent()); saveOdsButton.setToolTipText(SAVE_AS_TOOLTIP.getContent()); saveOdsButton.setAutoscrolls(true); saveOdsButton.setEnabled(false); saveOdsButton.setMargin(new java.awt.Insets(0, 0, 0, 0)); saveOdsButton.setMaximumSize(new Dimension(CommonData.buttonWidthWide, buttonHeightNorm)); saveOdsButton.setMinimumSize(new Dimension(CommonData.buttonWidthWide, buttonHeightNorm)); saveOdsButton.setPreferredSize(new Dimension(CommonData.buttonWidthWide, buttonHeightNorm)); saveOdsButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveOdsButtonActionPerformed(evt); } }); btnPanel.add(saveOdsButton); btnPanel.add(filler82); closeFormButton.setFont(new java.awt.Font(font_Type, font_Style, font_Size)); closeFormButton.setMnemonic('c'); closeFormButton.setText(CLOSE_BTN.getContent()); closeFormButton.setMargin(new java.awt.Insets(0, 0, 0, 0)); closeFormButton.setMaximumSize(new Dimension(buttonWidthNorm, buttonHeightNorm)); closeFormButton.setMinimumSize(new Dimension(buttonWidthNorm, buttonHeightNorm)); closeFormButton.setPreferredSize(new Dimension(buttonWidthNorm, buttonHeightNorm)); closeFormButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { closeFormButtonActionPerformed(evt); } }); btnPanel.add(closeFormButton); southPanel.add(btnPanel); wholePanel.add(southPanel, java.awt.BorderLayout.SOUTH); getContentPane().add(wholePanel, java.awt.BorderLayout.CENTER); bottomPanel.setMinimumSize(new java.awt.Dimension(0, 40)); bottomPanel.setPreferredSize(new java.awt.Dimension(980, 40)); javax.swing.GroupLayout bottomPanelLayout = new javax.swing.GroupLayout(bottomPanel); bottomPanel.setLayout(bottomPanelLayout); bottomPanelLayout.setHorizontalGroup(bottomPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 1022, Short.MAX_VALUE)); bottomPanelLayout.setVerticalGroup(bottomPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 40, Short.MAX_VALUE)); getContentPane().add(bottomPanel, java.awt.BorderLayout.SOUTH); getContentPane().add(filler3, java.awt.BorderLayout.EAST); setSize(new java.awt.Dimension(1030, 719)); setLocationRelativeTo(null); }