bugged
stringlengths 6
599k
| fixed
stringlengths 6
40.8M
| __index_level_0__
int64 0
3.24M
|
|---|---|---|
public final void visit_lushr() { final IntItem cnt = vstack.popInt(); final LongItem val = vstack.popLong();// final X86RegisterPool pool = eContext.getGPRPool(); // Get cnt into ECX if (!cnt.uses(X86Register.ECX)) { val.spillIfUsing(eContext, X86Register.ECX); L1AHelper.requestRegister(eContext, X86Register.ECX, cnt); cnt.loadTo(eContext, X86Register.ECX); } // Load val val.load(eContext); if (os.isCode32()) { final X86Register.GPR lsb = val.getLsbRegister(eContext); final X86Register.GPR msb = val.getMsbRegister(eContext); final Label curInstrLabel = getCurInstrLabel(); // Calculate os.writeAND(X86Register.ECX, 63); os.writeCMP_Const(X86Register.ECX, 32); final Label gt32Label = new Label(curInstrLabel + "gt32"); final Label endLabel = new Label(curInstrLabel + "end"); os.writeJCC(gt32Label, X86Constants.JAE); // JAE /** ECX < 32 */ os.writeSHRD_CL(lsb, msb); os.writeSHR_CL(msb); os.writeJMP(endLabel); /** ECX >= 32 */ os.setObjectRef(gt32Label); os.writeMOV(INTSIZE, lsb, msb); os.writeXOR(msb, msb); os.writeSHR_CL(lsb); os.setObjectRef(endLabel); } else { final GPR64 valr = val.getRegister(eContext); os.writeSHR_CL(valr); } // Push vstack.push(val); // Release cnt.release(eContext); }
|
public final void visit_lushr() { final IntItem cnt = vstack.popInt(); final LongItem val = vstack.popLong();// final X86RegisterPool pool = eContext.getGPRPool(); // Get cnt into ECX if (!cnt.uses(X86Register.ECX)) { val.spillIfUsing(eContext, X86Register.ECX); L1AHelper.requestRegister(eContext, X86Register.ECX, cnt); cnt.loadTo(eContext, X86Register.ECX); } // Load val val.load(eContext); if (os.isCode32()) { final X86Register.GPR lsb = val.getLsbRegister(eContext); final X86Register.GPR msb = val.getMsbRegister(eContext); final Label curInstrLabel = getCurInstrLabel(); // Calculate os.writeAND(X86Register.ECX, 63); os.writeCMP_Const(X86Register.ECX, 32); final Label gt32Label = new Label(curInstrLabel + "gt32"); final Label endLabel = new Label(curInstrLabel + "end"); os.writeJCC(gt32Label, X86Constants.JAE); // JAE /** ECX < 32 */ os.writeSHRD_CL(lsb, msb); os.writeSHR_CL(msb); os.writeJMP(endLabel); /** ECX >= 32 */ os.setObjectRef(gt32Label); os.writeMOV(INTSIZE, lsb, msb); os.writeXOR(msb, msb); os.writeSHR_CL(lsb); os.setObjectRef(endLabel); } else { final GPR64 valr = val.getRegister(eContext); os.writeSHR_CL(valr); } // Push vstack.push(val); // Release cnt.release(eContext); }
| 13,162
|
public final void visit_lushr() { final IntItem cnt = vstack.popInt(); final LongItem val = vstack.popLong();// final X86RegisterPool pool = eContext.getGPRPool(); // Get cnt into ECX if (!cnt.uses(X86Register.ECX)) { val.spillIfUsing(eContext, X86Register.ECX); L1AHelper.requestRegister(eContext, X86Register.ECX, cnt); cnt.loadTo(eContext, X86Register.ECX); } // Load val val.load(eContext); if (os.isCode32()) { final X86Register.GPR lsb = val.getLsbRegister(eContext); final X86Register.GPR msb = val.getMsbRegister(eContext); final Label curInstrLabel = getCurInstrLabel(); // Calculate os.writeAND(X86Register.ECX, 63); os.writeCMP_Const(X86Register.ECX, 32); final Label gt32Label = new Label(curInstrLabel + "gt32"); final Label endLabel = new Label(curInstrLabel + "end"); os.writeJCC(gt32Label, X86Constants.JAE); // JAE /** ECX < 32 */ os.writeSHRD_CL(lsb, msb); os.writeSHR_CL(msb); os.writeJMP(endLabel); /** ECX >= 32 */ os.setObjectRef(gt32Label); os.writeMOV(INTSIZE, lsb, msb); os.writeXOR(msb, msb); os.writeSHR_CL(lsb); os.setObjectRef(endLabel); } else { final GPR64 valr = val.getRegister(eContext); os.writeSHR_CL(valr); } // Push vstack.push(val); // Release cnt.release(eContext); }
|
public final void visit_lushr() { final IntItem cnt = vstack.popInt(); final LongItem val = vstack.popLong();// final X86RegisterPool pool = eContext.getGPRPool(); // Get cnt into ECX if (!cnt.uses(X86Register.ECX)) { val.spillIfUsing(eContext, X86Register.ECX); L1AHelper.requestRegister(eContext, X86Register.ECX, cnt); cnt.loadTo(eContext, X86Register.ECX); } // Load val val.load(eContext); if (os.isCode32()) { final X86Register.GPR lsb = val.getLsbRegister(eContext); final X86Register.GPR msb = val.getMsbRegister(eContext); final Label curInstrLabel = getCurInstrLabel(); // Calculate os.writeAND(X86Register.ECX, 63); os.writeCMP_Const(X86Register.ECX, 32); final Label gt32Label = new Label(curInstrLabel + "gt32"); final Label endLabel = new Label(curInstrLabel + "end"); os.writeJCC(gt32Label, X86Constants.JAE); // JAE /** ECX < 32 */ os.writeSHRD_CL(lsb, msb); os.writeSHR_CL(msb); os.writeJMP(endLabel); /** ECX >= 32 */ os.setObjectRef(gt32Label); os.writeMOV(INTSIZE, lsb, msb); os.writeXOR(msb, msb); os.writeSHR_CL(lsb); os.setObjectRef(endLabel); } else { final GPR64 valr = val.getRegister(eContext); os.writeSHR_CL(valr); } // Push vstack.push(val); // Release cnt.release(eContext); }
| 13,163
|
private void showPopupMenu(MouseEvent me) { JPopupMenu jpm = new JPopupMenu(); JMenuItem menuItem; Action action; final int row = spools.rowAtPoint(me.getPoint()); action = new AbstractAction(LangTool.getString("spool.optionView")) { public void actionPerformed(ActionEvent e) { System.out.println(row + " is selected "); spools.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); SwingUtilities.invokeLater( new Runnable () { public void run() { displayViewer(getSpooledFile(row)); } } ); } }; jpm.add(action); action = new AbstractAction(LangTool.getString("spool.optionProps")) { public void actionPerformed(ActionEvent e) {// spools.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));// SwingUtilities.invokeLater(// new Runnable () {// public void run() {//// displayViewer(getSpooledFile(row));// }// }// ); JOptionPane.showMessageDialog(null,"Not Available yet","Not yet", JOptionPane.WARNING_MESSAGE); } }; jpm.add(action); jpm.addSeparator(); action = new AbstractAction(LangTool.getString("spool.optionExport")) { public void actionPerformed(ActionEvent e) { SpoolExportWizard sew = new SpoolExportWizard(getSpooledFile(row), session); sew.show(); } }; jpm.add(action); jpm.addSeparator(); action = new AbstractAction(LangTool.getString("spool.optionHold")) { public void actionPerformed(ActionEvent e) { doSpoolStuff(getSpooledFile(row),e.getActionCommand()); } }; jpm.add(action); action = new AbstractAction(LangTool.getString("spool.optionRelease")) { public void actionPerformed(ActionEvent e) { doSpoolStuff(getSpooledFile(row),e.getActionCommand()); } }; jpm.add(action); action = new AbstractAction(LangTool.getString("spool.optionDelete")) { public void actionPerformed(ActionEvent e) { doSpoolStuff(getSpooledFile(row),e.getActionCommand()); } }; jpm.add(action); GUIGraphicsUtils.positionPopup(spools,jpm,me.getX(),me.getY()); }
|
private void showPopupMenu(MouseEvent me) { JPopupMenu jpm = new JPopupMenu(); JMenuItem menuItem; Action action; final int row = spools.rowAtPoint(me.getPoint()); action = new AbstractAction(LangTool.getString("spool.optionView")) { public void actionPerformed(ActionEvent e) { System.out.println(row + " is selected "); spools.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); SwingUtilities.invokeLater(new Runnable () { public void run() { displayViewer(getSpooledFile(row)); }} ); } }; jpm.add(action); action = new AbstractAction(LangTool.getString("spool.optionProps")) { public void actionPerformed(ActionEvent e) {// spools.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));// SwingUtilities.invokeLater(//new Runnable () {// public void run() {//// displayViewer(getSpooledFile(row));// }//}// ); JOptionPane.showMessageDialog(null,"Not Available yet","Not yet",JOptionPane.WARNING_MESSAGE); } }; jpm.add(action); jpm.addSeparator(); action = new AbstractAction(LangTool.getString("spool.optionExport")) {public void actionPerformed(ActionEvent e) { SpoolExportWizard sew = new SpoolExportWizard(getSpooledFile(row), session); sew.show();} }; jpm.add(action); jpm.addSeparator(); action = new AbstractAction(LangTool.getString("spool.optionHold")) { public void actionPerformed(ActionEvent e) { doSpoolStuff(getSpooledFile(row),e.getActionCommand()); } }; jpm.add(action); action = new AbstractAction(LangTool.getString("spool.optionRelease")) { public void actionPerformed(ActionEvent e) { doSpoolStuff(getSpooledFile(row),e.getActionCommand()); } }; jpm.add(action); action = new AbstractAction(LangTool.getString("spool.optionDelete")) { public void actionPerformed(ActionEvent e) { doSpoolStuff(getSpooledFile(row),e.getActionCommand()); } }; jpm.add(action); GUIGraphicsUtils.positionPopup(spools,jpm,me.getX(),me.getY()); }
| 13,165
|
public void actionPerformed(ActionEvent e) {// spools.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));// SwingUtilities.invokeLater(// new Runnable () {// public void run() {//// displayViewer(getSpooledFile(row));// }// }// ); JOptionPane.showMessageDialog(null,"Not Available yet","Not yet", JOptionPane.WARNING_MESSAGE); }
|
public void actionPerformed(ActionEvent e) {// spools.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));// SwingUtilities.invokeLater(//new Runnable () {// public void run() {//// displayViewer(getSpooledFile(row));// }//}// ); JOptionPane.showMessageDialog(null,"Not Available yet","Not yet",JOptionPane.WARNING_MESSAGE); }
| 13,167
|
public void actionPerformed(ActionEvent e) { doSpoolStuff(getSpooledFile(row),e.getActionCommand()); }
|
public void actionPerformed(ActionEvent e) { doSpoolStuff(getSpooledFile(row),e.getActionCommand()); }
| 13,168
|
public void run() { status.setText(stat); }
|
public void run() { status.setText(stat); }
| 13,170
|
private static void incorrect_plug_in(Throwable ex) throws NO_IMPLEMENT { NO_IMPLEMENT no = new NO_IMPLEMENT("Incorrect CORBA plug-in"); no.initCause(ex); throw no; }
|
static void incorrect_plug_in(Throwable ex) throws NO_IMPLEMENT { NO_IMPLEMENT no = new NO_IMPLEMENT("Incorrect CORBA plug-in"); no.initCause(ex); throw no; }
| 13,174
|
public static Serializable read(InputStream input) { // Explicitly prevent the stream from closing as we may need // to read the subsequent bytes as well. Stream may be auto-closed // in its finalizer. try { // We may need to jump back if the value is read via value factory. input.mark(512); int value_tag = input.read_long(); checkTag(value_tag); String codebase = null; String[] ids = null; String id = null; // The existing implementing object. java.lang.Object ox = null; // Check for the agreed null value. if (value_tag == vt_NULL) return null; else if (value_tag == vt_INDIRECTION) // TODO FIXME Implement support for indirections. throw new NO_IMPLEMENT("Indirections unsupported"); else { // Read the value. if ((value_tag & vf_CODEBASE) != 0) { // The codebase is present. The codebase is a space // separated list of URLs from where the implementing // code can be downloaded. codebase = input.read_string(); } if ((value_tag & vf_MULTIPLE_IDS) != 0) { // Multiple supported repository ids are present. ids = StringSeqHelper.read(input); for (int i = 0; (i < ids.length) && (ox == null); i++) { ox = ObjectCreator.Idl2Object(ids [ i ]); if (ox == null) { // Try to find the value factory. ValueFactory f = ((org.omg.CORBA_2_3.ORB) input.orb()).lookup_value_factory(ids [ i ]); if (f != null) { // Reset, as the value factory reads from beginning. input.reset(); return f.read_value((org.omg.CORBA_2_3.portable.InputStream) input); } } } } else if ((value_tag & vf_ID) != 0) { // Single supported repository id is present. id = input.read_string(); ox = ObjectCreator.Idl2Object(id); if (ox == null) { // Try to find the value factory. ValueFactory f = ((org.omg.CORBA_2_3.ORB) input.orb()).lookup_value_factory(id); if (f != null) { input.reset(); return f.read_value((org.omg.CORBA_2_3.portable.InputStream) input); } } } } if (ox == null) throw new MARSHAL("Unable to instantiate the value type"); else { read_instance(input, ox, value_tag); return (Serializable) ox; } } catch (Exception ex) { throw new MARSHAL(ex + ":" + ex.getMessage()); } }
|
public static Serializable read(InputStream input) { // Explicitly prevent the stream from closing as we may need // to read the subsequent bytes as well. Stream may be auto-closed // in its finalizer. try { // We may need to jump back if the value is read via value factory. input.mark(512); int value_tag = input.read_long(); checkTag(value_tag); String codebase = null; String[] ids = null; String id = null; // The existing implementing object. java.lang.Object ox = null; // Check for the agreed null value. if (value_tag == vt_NULL) return null; else if (value_tag == vt_INDIRECTION) // TODO FIXME Implement support for indirections. throw new NO_IMPLEMENT("Indirections unsupported"); else { // Read the value. if ((value_tag & vf_CODEBASE) != 0) { // The codebase is present. The codebase is a space // separated list of URLs from where the implementing // code can be downloaded. codebase = input.read_string(); } if ((value_tag & vf_MULTIPLE_IDS) != 0) { // Multiple supported repository ids are present. ids = StringSeqHelper.read(input); for (int i = 0; (i < ids.length) && (ox == null); i++) { ox = ObjectCreator.Idl2Object(ids [ i ]); if (ox == null) { // Try to find the value factory. ValueFactory f = ((org.omg.CORBA_2_3.ORB) input.orb()).lookup_value_factory(ids [ i ]); if (f != null) { // Reset, as the value factory reads from beginning. input.reset(); return f.read_value((org.omg.CORBA_2_3.portable.InputStream) input); } } } } else if ((value_tag & vf_ID) != 0) { // Single supported repository id is present. id = input.read_string(); ox = ObjectCreator.Idl2Object(id); if (ox == null) { // Try to find the value factory. ValueFactory f = ((org.omg.CORBA_2_3.ORB) input.orb()).lookup_value_factory(id); if (f != null) { input.reset(); return f.read_value((org.omg.CORBA_2_3.portable.InputStream) input); } } } } if (ox == null) throw new MARSHAL("Unable to instantiate the value type"); else { read_instance(input, ox, value_tag, null); return (Serializable) ox; } } catch (Exception ex) { throw new MARSHAL(ex + ":" + ex.getMessage()); } }
| 13,175
|
public static void read_instance(InputStream input, Object value, int value_tag ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; // Read all chunks. int chunk_size = input.read_long(); if (chunk_size <= 0) throw new MARSHAL("Invalid first chunk size " + chunk_size); byte[] r = new byte[ chunk_size ]; while (chunk_size > 0) { if (r.length < chunk_size) r = new byte[ chunk_size + 256 ]; n = 0; reading: while (n < chunk_size) n += input.read(r, n, r.length - n); // Read the size of the next chunk. chunk_size = input.read_long(); // If the value is non negative, there is more than one chunk. // Accumulate chunks in the buffer. // The last chunk (or the only chunk, if only one chunk is // present) is not written in the buffer. It is stored in the // array r, avoiding unnecessary buffer operations. if (chunk_size > 0) { bout = new ByteArrayOutputStream(2 * chunk_size); bout.write(r, 0, chunk_size); } } if (bout != null) { // More than one chunk was present. // Add the last chunk. bout.write(r, 0, n); input = new cdrBufInput(bout.toByteArray()); } else { // Only one chunk was present. input = new cdrBufInput(r); } } } catch (IOException ex) { MARSHAL m = new MARSHAL("Unable to read chunks"); m.initCause(ex); throw m; } // The user-defines io operations are implemented. if (value instanceof CustomMarshal) { CustomMarshal marsh = (CustomMarshal) value; try { marsh.unmarshal((DataInputStream) input); } catch (ClassCastException ex) { incorrect_plug_in(ex); } } else // The IDL-generated io operations are implemented. if (value instanceof Streamable) { ((Streamable) value)._read(input); } else // Stating the interfaces that the USER should use. throw new MARSHAL("The " + value.getClass().getName() + " must implement either StreamableValue or CustomValue." ); // The negative end of state marker is expected from OMG standard. // If the chunking is used, this marker is already extracted. if ((value_tag & vf_CHUNKING) == 0) { int eor = input.read_long(); if (eor >= 0) throw new MARSHAL("End of state marker has an invalid value " + eor); } }
|
public static void read_instance(InputStream input, Object value, int value_tag ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; // Read all chunks. int chunk_size = input.read_long(); if (chunk_size <= 0) throw new MARSHAL("Invalid first chunk size " + chunk_size); byte[] r = new byte[ chunk_size ]; while (chunk_size > 0) { if (r.length < chunk_size) r = new byte[ chunk_size + 256 ]; n = 0; reading: while (n < chunk_size) n += input.read(r, n, r.length - n); // Read the size of the next chunk. chunk_size = input.read_long(); // If the value is non negative, there is more than one chunk. // Accumulate chunks in the buffer. // The last chunk (or the only chunk, if only one chunk is // present) is not written in the buffer. It is stored in the // array r, avoiding unnecessary buffer operations. if (chunk_size > 0) { bout = new ByteArrayOutputStream(2 * chunk_size); bout.write(r, 0, chunk_size); } } if (bout != null) { // More than one chunk was present. // Add the last chunk. bout.write(r, 0, n); input = new cdrBufInput(bout.toByteArray()); } else { // Only one chunk was present. input = new cdrBufInput(r); } } } catch (IOException ex) { MARSHAL m = new MARSHAL("Unable to read chunks"); m.initCause(ex); throw m; } // The user-defines io operations are implemented. if (value instanceof CustomMarshal) { CustomMarshal marsh = (CustomMarshal) value; try { marsh.unmarshal((DataInputStream) input); } catch (ClassCastException ex) { incorrect_plug_in(ex); } } else // The IDL-generated io operations are implemented. if (value instanceof Streamable) { ((Streamable) value)._read(input); } else // Stating the interfaces that the USER should use. throw new MARSHAL("The " + value.getClass().getName() + " must implement either StreamableValue or CustomValue." ); // The negative end of state marker is expected from OMG standard. // If the chunking is used, this marker is already extracted. if ((value_tag & vf_CHUNKING) == 0) { int eor = input.read_long(); if (eor >= 0) throw new MARSHAL("End of state marker has an invalid value " + eor); } }
| 13,176
|
public static void read_instance(InputStream input, Object value, int value_tag ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; // Read all chunks. int chunk_size = input.read_long(); if (chunk_size <= 0) throw new MARSHAL("Invalid first chunk size " + chunk_size); byte[] r = new byte[ chunk_size ]; while (chunk_size > 0) { if (r.length < chunk_size) r = new byte[ chunk_size + 256 ]; n = 0; reading: while (n < chunk_size) n += input.read(r, n, r.length - n); // Read the size of the next chunk. chunk_size = input.read_long(); // If the value is non negative, there is more than one chunk. // Accumulate chunks in the buffer. // The last chunk (or the only chunk, if only one chunk is // present) is not written in the buffer. It is stored in the // array r, avoiding unnecessary buffer operations. if (chunk_size > 0) { bout = new ByteArrayOutputStream(2 * chunk_size); bout.write(r, 0, chunk_size); } } if (bout != null) { // More than one chunk was present. // Add the last chunk. bout.write(r, 0, n); input = new cdrBufInput(bout.toByteArray()); } else { // Only one chunk was present. input = new cdrBufInput(r); } } } catch (IOException ex) { MARSHAL m = new MARSHAL("Unable to read chunks"); m.initCause(ex); throw m; } // The user-defines io operations are implemented. if (value instanceof CustomMarshal) { CustomMarshal marsh = (CustomMarshal) value; try { marsh.unmarshal((DataInputStream) input); } catch (ClassCastException ex) { incorrect_plug_in(ex); } } else // The IDL-generated io operations are implemented. if (value instanceof Streamable) { ((Streamable) value)._read(input); } else // Stating the interfaces that the USER should use. throw new MARSHAL("The " + value.getClass().getName() + " must implement either StreamableValue or CustomValue." ); // The negative end of state marker is expected from OMG standard. // If the chunking is used, this marker is already extracted. if ((value_tag & vf_CHUNKING) == 0) { int eor = input.read_long(); if (eor >= 0) throw new MARSHAL("End of state marker has an invalid value " + eor); } }
|
public static void read_instance(InputStream input, Object value, int value_tag ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; // Read all chunks. int chunk_size = input.read_long(); if (chunk_size < 0) throw new MARSHAL("Invalid first chunk size " + chunk_size); byte[] r = new byte[ chunk_size ]; while (chunk_size > 0) { if (r.length < chunk_size) r = new byte[ chunk_size + 256 ]; n = 0; reading: while (n < chunk_size) n += input.read(r, n, r.length - n); // Read the size of the next chunk. chunk_size = input.read_long(); // If the value is non negative, there is more than one chunk. // Accumulate chunks in the buffer. // The last chunk (or the only chunk, if only one chunk is // present) is not written in the buffer. It is stored in the // array r, avoiding unnecessary buffer operations. if (chunk_size > 0) { bout = new ByteArrayOutputStream(2 * chunk_size); bout.write(r, 0, chunk_size); } } if (bout != null) { // More than one chunk was present. // Add the last chunk. bout.write(r, 0, n); input = new cdrBufInput(bout.toByteArray()); } else { // Only one chunk was present. input = new cdrBufInput(r); } } } catch (IOException ex) { MARSHAL m = new MARSHAL("Unable to read chunks"); m.initCause(ex); throw m; } // The user-defines io operations are implemented. if (value instanceof CustomMarshal) { CustomMarshal marsh = (CustomMarshal) value; try { marsh.unmarshal((DataInputStream) input); } catch (ClassCastException ex) { incorrect_plug_in(ex); } } else // The IDL-generated io operations are implemented. if (value instanceof Streamable) { ((Streamable) value)._read(input); } else // Stating the interfaces that the USER should use. throw new MARSHAL("The " + value.getClass().getName() + " must implement either StreamableValue or CustomValue." ); // The negative end of state marker is expected from OMG standard. // If the chunking is used, this marker is already extracted. if ((value_tag & vf_CHUNKING) == 0) { int eor = input.read_long(); if (eor >= 0) throw new MARSHAL("End of state marker has an invalid value " + eor); } }
| 13,177
|
public static void read_instance(InputStream input, Object value, int value_tag ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; // Read all chunks. int chunk_size = input.read_long(); if (chunk_size <= 0) throw new MARSHAL("Invalid first chunk size " + chunk_size); byte[] r = new byte[ chunk_size ]; while (chunk_size > 0) { if (r.length < chunk_size) r = new byte[ chunk_size + 256 ]; n = 0; reading: while (n < chunk_size) n += input.read(r, n, r.length - n); // Read the size of the next chunk. chunk_size = input.read_long(); // If the value is non negative, there is more than one chunk. // Accumulate chunks in the buffer. // The last chunk (or the only chunk, if only one chunk is // present) is not written in the buffer. It is stored in the // array r, avoiding unnecessary buffer operations. if (chunk_size > 0) { bout = new ByteArrayOutputStream(2 * chunk_size); bout.write(r, 0, chunk_size); } } if (bout != null) { // More than one chunk was present. // Add the last chunk. bout.write(r, 0, n); input = new cdrBufInput(bout.toByteArray()); } else { // Only one chunk was present. input = new cdrBufInput(r); } } } catch (IOException ex) { MARSHAL m = new MARSHAL("Unable to read chunks"); m.initCause(ex); throw m; } // The user-defines io operations are implemented. if (value instanceof CustomMarshal) { CustomMarshal marsh = (CustomMarshal) value; try { marsh.unmarshal((DataInputStream) input); } catch (ClassCastException ex) { incorrect_plug_in(ex); } } else // The IDL-generated io operations are implemented. if (value instanceof Streamable) { ((Streamable) value)._read(input); } else // Stating the interfaces that the USER should use. throw new MARSHAL("The " + value.getClass().getName() + " must implement either StreamableValue or CustomValue." ); // The negative end of state marker is expected from OMG standard. // If the chunking is used, this marker is already extracted. if ((value_tag & vf_CHUNKING) == 0) { int eor = input.read_long(); if (eor >= 0) throw new MARSHAL("End of state marker has an invalid value " + eor); } }
|
public static void read_instance(InputStream input, Object value, int value_tag ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; // Read all chunks. int chunk_size = input.read_long(); if (chunk_size <= 0) throw new MARSHAL("Invalid first chunk size " + chunk_size); byte[] r = new byte[ chunk_size ]; while (chunk_size > 0) { if (r.length < chunk_size) r = new byte[ chunk_size + 256 ]; n = 0; reading: while (n < chunk_size) n += input.read(r, n, r.length - n); // Read the size of the next chunk. chunk_size = input.read_long(); // If the value is non negative, there is more than one chunk. // Accumulate chunks in the buffer. // The last chunk (or the only chunk, if only one chunk is // present) is not written in the buffer. It is stored in the // array r, avoiding unnecessary buffer operations. if (chunk_size > 0) { bout = new ByteArrayOutputStream(2 * chunk_size); bout.write(r, 0, chunk_size); } } if (bout != null) { // More than one chunk was present. // Add the last chunk. bout.write(r, 0, n); input = new noHeaderInput(bout.toByteArray()); } else { // Only one chunk was present. input = new cdrBufInput(r); } } } catch (IOException ex) { MARSHAL m = new MARSHAL("Unable to read chunks"); m.initCause(ex); throw m; } // The user-defines io operations are implemented. if (value instanceof CustomMarshal) { CustomMarshal marsh = (CustomMarshal) value; try { marsh.unmarshal((DataInputStream) input); } catch (ClassCastException ex) { incorrect_plug_in(ex); } } else // The IDL-generated io operations are implemented. if (value instanceof Streamable) { ((Streamable) value)._read(input); } else // Stating the interfaces that the USER should use. throw new MARSHAL("The " + value.getClass().getName() + " must implement either StreamableValue or CustomValue." ); // The negative end of state marker is expected from OMG standard. // If the chunking is used, this marker is already extracted. if ((value_tag & vf_CHUNKING) == 0) { int eor = input.read_long(); if (eor >= 0) throw new MARSHAL("End of state marker has an invalid value " + eor); } }
| 13,178
|
public static void read_instance(InputStream input, Object value, int value_tag ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; // Read all chunks. int chunk_size = input.read_long(); if (chunk_size <= 0) throw new MARSHAL("Invalid first chunk size " + chunk_size); byte[] r = new byte[ chunk_size ]; while (chunk_size > 0) { if (r.length < chunk_size) r = new byte[ chunk_size + 256 ]; n = 0; reading: while (n < chunk_size) n += input.read(r, n, r.length - n); // Read the size of the next chunk. chunk_size = input.read_long(); // If the value is non negative, there is more than one chunk. // Accumulate chunks in the buffer. // The last chunk (or the only chunk, if only one chunk is // present) is not written in the buffer. It is stored in the // array r, avoiding unnecessary buffer operations. if (chunk_size > 0) { bout = new ByteArrayOutputStream(2 * chunk_size); bout.write(r, 0, chunk_size); } } if (bout != null) { // More than one chunk was present. // Add the last chunk. bout.write(r, 0, n); input = new cdrBufInput(bout.toByteArray()); } else { // Only one chunk was present. input = new cdrBufInput(r); } } } catch (IOException ex) { MARSHAL m = new MARSHAL("Unable to read chunks"); m.initCause(ex); throw m; } // The user-defines io operations are implemented. if (value instanceof CustomMarshal) { CustomMarshal marsh = (CustomMarshal) value; try { marsh.unmarshal((DataInputStream) input); } catch (ClassCastException ex) { incorrect_plug_in(ex); } } else // The IDL-generated io operations are implemented. if (value instanceof Streamable) { ((Streamable) value)._read(input); } else // Stating the interfaces that the USER should use. throw new MARSHAL("The " + value.getClass().getName() + " must implement either StreamableValue or CustomValue." ); // The negative end of state marker is expected from OMG standard. // If the chunking is used, this marker is already extracted. if ((value_tag & vf_CHUNKING) == 0) { int eor = input.read_long(); if (eor >= 0) throw new MARSHAL("End of state marker has an invalid value " + eor); } }
|
public static void read_instance(InputStream input, Object value, int value_tag ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; // Read all chunks. int chunk_size = input.read_long(); if (chunk_size <= 0) throw new MARSHAL("Invalid first chunk size " + chunk_size); byte[] r = new byte[ chunk_size ]; while (chunk_size > 0) { if (r.length < chunk_size) r = new byte[ chunk_size + 256 ]; n = 0; reading: while (n < chunk_size) n += input.read(r, n, r.length - n); // Read the size of the next chunk. chunk_size = input.read_long(); // If the value is non negative, there is more than one chunk. // Accumulate chunks in the buffer. // The last chunk (or the only chunk, if only one chunk is // present) is not written in the buffer. It is stored in the // array r, avoiding unnecessary buffer operations. if (chunk_size > 0) { bout = new ByteArrayOutputStream(2 * chunk_size); bout.write(r, 0, chunk_size); } } if (bout != null) { // More than one chunk was present. // Add the last chunk. bout.write(r, 0, n); input = new cdrBufInput(bout.toByteArray()); } else { // Only one chunk was present. input = new noHeaderInput(r); } } else { if (input instanceof cdrBufInput) { input = new noHeaderInput(((cdrBufInput) input).buffer.getBuffer()); } else { cdrBufOutput bout = new cdrBufOutput(); int c; while ((c = input.read()) >= 0) bout.write((byte) c); input = new noHeaderInput(bout.buffer.toByteArray()); } } } catch (IOException ex) { MARSHAL m = new MARSHAL("Unable to read chunks"); m.initCause(ex); throw m; } // The user-defines io operations are implemented. if (value instanceof CustomMarshal) { CustomMarshal marsh = (CustomMarshal) value; try { marsh.unmarshal((DataInputStream) input); } catch (ClassCastException ex) { incorrect_plug_in(ex); } } else // The IDL-generated io operations are implemented. if (value instanceof Streamable) { ((Streamable) value)._read(input); } else // Stating the interfaces that the USER should use. throw new MARSHAL("The " + value.getClass().getName() + " must implement either StreamableValue or CustomValue." ); // The negative end of state marker is expected from OMG standard. // If the chunking is used, this marker is already extracted. if ((value_tag & vf_CHUNKING) == 0) { int eor = input.read_long(); if (eor >= 0) throw new MARSHAL("End of state marker has an invalid value " + eor); } }
| 13,179
|
private static void write_instance(OutputStream output, Serializable value, String id ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use // a codebase. int value_tag = vt_VALUE_TAG | vf_ID; OutputStream outObj; cdrBufOutput out = null; if (USE_CHUNKING) { out = new cdrBufOutput(); out.setOrb(output.orb()); outObj = out; value_tag |= vf_CHUNKING; } else outObj = output; output.write_long(value_tag); output.write_string(id); // User defince write method is present. if (value instanceof CustomMarshal) { try { ((CustomMarshal) value).marshal((DataOutputStream) outObj); } catch (ClassCastException ex) { incorrect_plug_in(ex); } } else if (value instanceof Streamable) { ((Streamable) value)._write(outObj); } else // Stating the interfaces that the USER should use. throw new MARSHAL("The " + value.getClass().getName() + " must implement either StreamableValue or CustomValue." ); if (USE_CHUNKING) { output.write_long(out.buffer.size()); try { out.buffer.writeTo(output); } catch (IOException ex) { MARSHAL m = new MARSHAL(); m.initCause(ex); throw m; } } // The end of record marker, required by OMG standard. output.write_long(-1); }
|
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use // a codebase. int value_tag = vt_VALUE_TAG | vf_ID; OutputStream outObj; cdrBufOutput out = null; if (USE_CHUNKING) { out = new cdrBufOutput(); out.setOrb(output.orb()); outObj = out; value_tag |= vf_CHUNKING; } else outObj = output; output.write_long(value_tag); output.write_string(id); // User defince write method is present. if (value instanceof CustomMarshal) { try { ((CustomMarshal) value).marshal((DataOutputStream) outObj); } catch (ClassCastException ex) { incorrect_plug_in(ex); } } else if (value instanceof Streamable) { ((Streamable) value)._write(outObj); } else // Stating the interfaces that the USER should use. throw new MARSHAL("The " + value.getClass().getName() + " must implement either StreamableValue or CustomValue." ); if (USE_CHUNKING) { output.write_long(out.buffer.size()); try { out.buffer.writeTo(output); } catch (IOException ex) { MARSHAL m = new MARSHAL(); m.initCause(ex); throw m; } } // The end of record marker, required by OMG standard. output.write_long(-1); }
| 13,181
|
private static void write_instance(OutputStream output, Serializable value, String id ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use // a codebase. int value_tag = vt_VALUE_TAG | vf_ID; OutputStream outObj; cdrBufOutput out = null; if (USE_CHUNKING) { out = new cdrBufOutput(); out.setOrb(output.orb()); outObj = out; value_tag |= vf_CHUNKING; } else outObj = output; output.write_long(value_tag); output.write_string(id); // User defince write method is present. if (value instanceof CustomMarshal) { try { ((CustomMarshal) value).marshal((DataOutputStream) outObj); } catch (ClassCastException ex) { incorrect_plug_in(ex); } } else if (value instanceof Streamable) { ((Streamable) value)._write(outObj); } else // Stating the interfaces that the USER should use. throw new MARSHAL("The " + value.getClass().getName() + " must implement either StreamableValue or CustomValue." ); if (USE_CHUNKING) { output.write_long(out.buffer.size()); try { out.buffer.writeTo(output); } catch (IOException ex) { MARSHAL m = new MARSHAL(); m.initCause(ex); throw m; } } // The end of record marker, required by OMG standard. output.write_long(-1); }
|
private static void write_instance(OutputStream output, Serializable value, String id ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use // a codebase. int value_tag = vt_VALUE_TAG | vf_ID; OutputStream outObj; cdrBufOutput out = null; if (USE_CHUNKING) { out = new cdrBufOutput(); out.setOrb(output.orb()); outObj = out; value_tag |= vf_CHUNKING; } else outObj = output; output.write_long(value_tag); output.write_string(id); // User defince write method is present. if (value instanceof CustomMarshal) { try { ((CustomMarshal) value).marshal((DataOutputStream) outObj); } catch (ClassCastException ex) { incorrect_plug_in(ex); } } else if (value instanceof Streamable) { ((Streamable) value)._write(outObj); } else // Stating the interfaces that the USER should use. throw new MARSHAL("The " + value.getClass().getName() + " must implement either StreamableValue" + " or CustomValue." ); if (USE_CHUNKING) { output.write_long(out.buffer.size()); try { out.buffer.writeTo(output); } catch (IOException ex) { MARSHAL m = new MARSHAL(); m.initCause(ex); throw m; } } // The end of record marker, required by OMG standard. output.write_long(-1); }
| 13,182
|
protected String basicXMLWriter ( Writer outputWriter, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) throws java.io.IOException { boolean niceOutput = Specification.getInstance().isPrettyXDFOutput(); String myIndent; if (indent!=null) myIndent = indent; else myIndent = ""; String moreIndent = myIndent + Specification.getInstance().getPrettyXDFOutputIndentation(); if (niceOutput) outputWriter.write( myIndent); //open the read block outputWriter.write( "<"+READ_NODE_NAME); //write out attributes of read, ie. synchronized(attribHash) { //sync, prevent the attribHash' structure be changed String attrib; if ( (attrib=getEncoding()) !=null) { outputWriter.write( " "+ENCODING_XML_ATTRIBUTE_NAME+"=\""); outputWriter.write( attrib); outputWriter.write( "\""); } if ( (attrib=getEndian()) !=null) { outputWriter.write( " "+ENDIAN_XML_ATTRIBUTE_NAME+"=\""); outputWriter.write( attrib); outputWriter.write( "\""); } if ( (attrib=getReadId()) !=null) { outputWriter.write( " "+ID_XML_ATTRIBUTE_NAME+"=\""); outputWriter.write( attrib); outputWriter.write( "\""); } if ( (attrib=getReadIdRef()) !=null) { outputWriter.write( " "+IDREF_XML_ATTRIBUTE_NAME+"=\""); outputWriter.write( attrib); outputWriter.write( "\""); } } outputWriter.write( ">"); //specific tailoring for childObj: Tagged, Delimited, Formated specificIOStyleToXDF(outputWriter, moreIndent); //close the read block if (niceOutput) { // outputWriter.write( Constants.NEW_LINE); outputWriter.write( indent); } outputWriter.write( "</"+READ_NODE_NAME+">");// if (niceOutput) { outputWriter.write(Constants.NEW_LINE); } return READ_NODE_NAME; }
|
protected String basicXMLWriter ( Writer outputWriter, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) throws java.io.IOException { boolean niceOutput = Specification.getInstance().isPrettyXDFOutput(); String myIndent; if (indent!=null) myIndent = indent; else myIndent = ""; String moreIndent = myIndent + Specification.getInstance().getPrettyXDFOutputIndentation(); if (niceOutput) outputWriter.write( myIndent); //open the read block outputWriter.write( "<"+READ_NODE_NAME); //write out attributes of read, ie. synchronized(attribHash) { //sync, prevent the attribHash' structure be changed String attrib; if ( (attrib=getEncoding()) !=null) { outputWriter.write( " "+ENCODING_XML_ATTRIBUTE_NAME+"=\""); outputWriter.write( attrib); outputWriter.write( "\""); } attrib = (String) ((Attribute) attribHash.get(ENDIAN_XML_ATTRIBUTE_NAME)).getAttribValue(); if ( attrib != null) { outputWriter.write( " "+ENDIAN_XML_ATTRIBUTE_NAME+"=\""); outputWriter.write( attrib); outputWriter.write( "\""); } if ( (attrib=getReadId()) !=null) { outputWriter.write( " "+ID_XML_ATTRIBUTE_NAME+"=\""); outputWriter.write( attrib); outputWriter.write( "\""); } if ( (attrib=getReadIdRef()) !=null) { outputWriter.write( " "+IDREF_XML_ATTRIBUTE_NAME+"=\""); outputWriter.write( attrib); outputWriter.write( "\""); } } outputWriter.write( ">"); //specific tailoring for childObj: Tagged, Delimited, Formated specificIOStyleToXDF(outputWriter, moreIndent); //close the read block if (niceOutput) { // outputWriter.write( Constants.NEW_LINE); outputWriter.write( indent); } outputWriter.write( "</"+READ_NODE_NAME+">");// if (niceOutput) { outputWriter.write(Constants.NEW_LINE); } return READ_NODE_NAME; }
| 13,184
|
public boolean add(Attribute attribute) { return addInternal(attribute, interfaceName); }
|
public boolean add(Attribute attribute) { return addInternal(attribute, myInterface); }
| 13,185
|
public boolean addAll(AttributeSet attributes) { return addAllInternal(attributes, interfaceName); }
|
public boolean addAll(AttributeSet attributes) { return addAllInternal(attributes, myInterface); }
| 13,186
|
private boolean addInternal(Attribute attribute, Class interfaceName) { if (attribute == null) throw new NullPointerException("attribute may not be null"); AttributeSetUtilities.verifyAttributeCategory(interfaceName, this.interfaceName); Object old = attributeMap.put (attribute.getCategory(), AttributeSetUtilities.verifyAttributeValue (attribute, interfaceName)); return !attribute.equals(old); }
|
private boolean addInternal(Attribute attribute, Class interfaceName) { if (attribute == null) throw new NullPointerException("attribute may not be null"); AttributeSetUtilities.verifyAttributeCategory(interfaceName, myInterface); Object old = attributeMap.put (attribute.getCategory(), AttributeSetUtilities.verifyAttributeValue (attribute, interfaceName)); return !attribute.equals(old); }
| 13,187
|
public ConfigureTableModel() { super(); resetSorted(); }
|
public ConfigureTableModel() { super(); resetSorted(); }
| 13,188
|
public void addSession() { resetSorted(); fireTableRowsInserted(props.size()-1,props.size()-1); }
|
public void addSession() { resetSorted(); fireTableRowsInserted(props.size()-1,props.size()-1); }
| 13,189
|
public void chgSession(int row) { resetSorted(); fireTableRowsUpdated(row,row); }
|
public void chgSession(int row) { resetSorted(); fireTableRowsUpdated(row,row); }
| 13,190
|
public Class getColumnClass(int c) { return getValueAt(0, c).getClass(); }
|
public Class getColumnClass(int c) { return getValueAt(0, c).getClass(); }
| 13,191
|
public int getColumnCount() { return cols.length; }
|
public int getColumnCount() { return cols.length; }
| 13,192
|
public String getColumnName(int col) { return cols[col]; }
|
public String getColumnName(int col) { return cols[col]; }
| 13,193
|
private String getPropValue(int row,String param) { String prop = ""; String[] args = new String[NUM_PARMS]; String ses = null; prop = (String)mySort.get(row); if (param == null) return prop; else { Configure.parseArgs(props.getProperty(prop),args); if (param.equals("0")) return args[0]; } return null; }
|
private String getPropValue(int row, String param) { String prop = ""; String[] args = new String[NUM_PARMS]; String ses = null; prop = (String)mySort.get(row); if (param == null) return prop; else { Configure.parseArgs(props.getProperty(prop),args); if (param.equals("0")) return args[0]; } return null; }
| 13,194
|
private String getPropValue(int row,String param) { String prop = ""; String[] args = new String[NUM_PARMS]; String ses = null; prop = (String)mySort.get(row); if (param == null) return prop; else { Configure.parseArgs(props.getProperty(prop),args); if (param.equals("0")) return args[0]; } return null; }
|
private String getPropValue(int row,String param) { String prop = ""; String[] args = new String[NUM_PARMS]; String ses = null; prop = (String)mySort.get(row); if (param == null) return prop; else { Configure.parseArgs(props.getProperty(prop),args); if (param.equals("0")) return args[0]; } return null; }
| 13,195
|
private String getPropValue(int row,String param) { String prop = ""; String[] args = new String[NUM_PARMS]; String ses = null; prop = (String)mySort.get(row); if (param == null) return prop; else { Configure.parseArgs(props.getProperty(prop),args); if (param.equals("0")) return args[0]; } return null; }
|
private String getPropValue(int row,String param) { String prop = ""; String[] args = new String[NUM_PARMS]; String ses = null; prop = (String) mySort.get(row); if (param == null) return prop; else { Configure.parseArgs(props.getProperty(prop),args); if (param.equals("0")) return args[0]; } return null; }
| 13,196
|
private String getPropValue(int row,String param) { String prop = ""; String[] args = new String[NUM_PARMS]; String ses = null; prop = (String)mySort.get(row); if (param == null) return prop; else { Configure.parseArgs(props.getProperty(prop),args); if (param.equals("0")) return args[0]; } return null; }
|
private String getPropValue(int row,String param) { String prop = ""; String[] args = new String[NUM_PARMS]; String ses = null; prop = (String)mySort.get(row); if (param == null) return prop; else { Configure.parseArgs(props.getProperty(prop),args); if (param.equals("0")) return args[0]; } return null; }
| 13,197
|
public int getRowCount() { return mySort.size(); }
|
public int getRowCount() { return mySort.size(); }
| 13,198
|
public Object getValueAt(int row, int col) { if (col == 0) return getPropValue(row,null); if (col == 1) return getPropValue(row,"0"); // remember if you change this here you need to change the default // selection option of the main table to pass in the correct // column number. if (col == 2) { if (getPropValue(row,null).equals(props.getProperty("emul.default",""))) return new Boolean(true); else return new Boolean(false); } return null; }
|
public Object getValueAt(int row, int col) { if (col == 0) return getPropValue(row,null); if (col == 1) return getPropValue(row,"0"); // remember if you change this here you need to change the default // selection option of the main table to pass in the correct // column number. if (col == 2) { if (getPropValue(row,null).equals(props.getProperty("emul.default",""))) return new Boolean(true); else return new Boolean(false); } return null; }
| 13,199
|
public Object getValueAt(int row, int col) { if (col == 0) return getPropValue(row,null); if (col == 1) return getPropValue(row,"0"); // remember if you change this here you need to change the default // selection option of the main table to pass in the correct // column number. if (col == 2) { if (getPropValue(row,null).equals(props.getProperty("emul.default",""))) return new Boolean(true); else return new Boolean(false); } return null; }
|
public Object getValueAt(int row, int col) { if (col == 0) return getPropValue(row,null); if (col == 1) return getPropValue(row,"0"); // remember if you change this here you need to change the default // selection option of the main table to pass in the correct // column number. if (col == 2) { if (getPropValue(row,null).equals(props.getProperty("emul.default",""))) return new Boolean(true); else return new Boolean(false); } return null; }
| 13,200
|
public Object getValueAt(int row, int col) { if (col == 0) return getPropValue(row,null); if (col == 1) return getPropValue(row,"0"); // remember if you change this here you need to change the default // selection option of the main table to pass in the correct // column number. if (col == 2) { if (getPropValue(row,null).equals(props.getProperty("emul.default",""))) return new Boolean(true); else return new Boolean(false); } return null; }
|
public Object getValueAt(int row, int col) { if (col == 0) return getPropValue(row,null); if (col == 1) return getPropValue(row,"0"); // remember if you change this here you need to change the default // selection option of the main table to pass in the correct // column number. if (col == 2) { if (getPropValue(row,null).equals(props.getProperty("emul.default",""))) return new Boolean(true); else return new Boolean(false); } return null; }
| 13,201
|
public boolean isCellEditable(int row, int col) { //Note that the data/cell address is constant, //no matter where the cell appears onscreen. if (col == 2) { return true; } else { return false; } }
|
public boolean isCellEditable(int row, int col) { //Note that the data/cell address is constant, //no matter where the cell appears onscreen. if (col == 2) { return true; } else { return false; } }
| 13,202
|
public boolean isSortable(int col) { if (col == 0) return true; else return false; }
|
public boolean isSortable(int col) { if (col == 0) return true; else return false; }
| 13,203
|
public void removeSession(int row) { resetSorted(); fireTableRowsDeleted(row,row); }
|
public void removeSession(int row) { resetSorted(); fireTableRowsDeleted(row,row); }
| 13,204
|
private void resetSorted() { Enumeration e = props.keys(); mySort.clear(); int x = 0; String ses = null; while (e.hasMoreElements()) { ses = (String)e.nextElement(); if (!ses.startsWith("emul.")) { mySort.add(ses); } } sortColumn(sortedColumn,isAscending); }
|
private void resetSorted() { Enumeration e = props.keys(); mySort.clear(); int x = 0; String ses = null; while (e.hasMoreElements()) { ses = (String)e.nextElement(); if (!ses.startsWith("emul.")) { mySort.add(ses); } } sortColumn(sortedColumn,isAscending); }
| 13,205
|
private void resetSorted() { Enumeration e = props.keys(); mySort.clear(); int x = 0; String ses = null; while (e.hasMoreElements()) { ses = (String)e.nextElement(); if (!ses.startsWith("emul.")) { mySort.add(ses); } } sortColumn(sortedColumn,isAscending); }
|
private void resetSorted() { Enumeration e = props.keys(); mySort.clear(); int x = 0; String ses = null; while (e.hasMoreElements()) { ses = (String)e.nextElement(); if (!ses.startsWith("emul.")) { mySort.add(ses); } } sortColumn(sortedColumn,isAscending); }
| 13,206
|
private void resetSorted() { Enumeration e = props.keys(); mySort.clear(); int x = 0; String ses = null; while (e.hasMoreElements()) { ses = (String)e.nextElement(); if (!ses.startsWith("emul.")) { mySort.add(ses); } } sortColumn(sortedColumn,isAscending); }
|
private void resetSorted() { Enumeration e = props.keys(); mySort.clear(); int x = 0; String ses = null; while (e.hasMoreElements()) { ses = (String)e.nextElement(); if (!ses.startsWith("emul.")) { mySort.add(ses); } } sortColumn(sortedColumn,isAscending); }
| 13,207
|
public void setValueAt(Object value, int row, int col) { boolean which = ((Boolean)value).booleanValue(); if (which) props.setProperty("emul.default",getPropValue(row,null)); else props.setProperty("emul.default",""); }
|
public void setValueAt(Object value, int row, int col) { boolean which = ((Boolean)value).booleanValue(); if (which) props.setProperty("emul.default",getPropValue(row,null)); else props.setProperty("emul.default",""); }
| 13,208
|
public void setValueAt(Object value, int row, int col) { boolean which = ((Boolean)value).booleanValue(); if (which) props.setProperty("emul.default",getPropValue(row,null)); else props.setProperty("emul.default",""); }
|
public void setValueAt(Object value, int row, int col) { boolean which = ((Boolean)value).booleanValue(); if (which) props.setProperty("emul.default",getPropValue(row,null)); else props.setProperty("emul.default",""); }
| 13,209
|
public void sortColumn(int col, boolean ascending) { sortedColumn = col; isAscending = ascending; Collections.sort(mySort, new SessionComparator(col, ascending)); }
|
public void sortColumn(int col, boolean ascending) { sortedColumn = col; isAscending = ascending; Collections.sort(mySort, new SessionComparator(col, ascending)); }
| 13,210
|
public SessionComparator(int index, boolean ascending) { this.index = index; this.ascending = ascending; }
|
public SessionComparator(int index, boolean ascending) { this.index = index; this.ascending = ascending; }
| 13,211
|
public int compare(Object one, Object two) { if (one instanceof String && two instanceof String) { String s1 = one.toString(); String s2 = two.toString(); int result = 0; if (ascending) result = s1.compareTo(s2); else result = s2.compareTo(s1); if (result < 0) { return -1; } else if (result > 0) { return 1; } else return 0; } else { if (one instanceof Boolean && two instanceof Boolean) { boolean bOne = ((Boolean)one).booleanValue(); boolean bTwo = ((Boolean)two).booleanValue(); if (ascending) { if (bOne == bTwo) { return 0; } else if (bOne) { // Define false < true return 1; } else { return -1; } } else { if (bOne == bTwo) { return 0; } else if (bTwo) { // Define false < true return 1; } else { return -1; } } } else { if (one instanceof Comparable && two instanceof Comparable) { Comparable cOne = (Comparable)one; Comparable cTwo = (Comparable)two; if (ascending) { return cOne.compareTo(cTwo); } else { return cTwo.compareTo(cOne); } } } return 1; } }
|
public int compare(Object one, Object two) { if (one instanceof String && two instanceof String) { String s1 = one.toString(); String s2 = two.toString(); int result = 0; if (ascending) result = s1.compareTo(s2); else result = s2.compareTo(s1); if (result < 0) { return -1; } else if (result > 0) { return 1; } else return 0; } else { if (one instanceof Boolean && two instanceof Boolean) { boolean bOne = ((Boolean)one).booleanValue(); boolean bTwo = ((Boolean)two).booleanValue(); if (ascending) { if (bOne == bTwo) { return 0; } else if (bOne) { // Define false < true return 1; } else { return -1; } } else { if (bOne == bTwo) { return 0; } else if (bTwo) { // Define false < true return 1; } else { return -1; } } } else { if (one instanceof Comparable && two instanceof Comparable) { Comparable cOne = (Comparable)one; Comparable cTwo = (Comparable)two; if (ascending) { return cOne.compareTo(cTwo); } else { return cTwo.compareTo(cOne); } } } return 1; } }
| 13,212
|
public int compare(Object one, Object two) { if (one instanceof String && two instanceof String) { String s1 = one.toString(); String s2 = two.toString(); int result = 0; if (ascending) result = s1.compareTo(s2); else result = s2.compareTo(s1); if (result < 0) { return -1; } else if (result > 0) { return 1; } else return 0; } else { if (one instanceof Boolean && two instanceof Boolean) { boolean bOne = ((Boolean)one).booleanValue(); boolean bTwo = ((Boolean)two).booleanValue(); if (ascending) { if (bOne == bTwo) { return 0; } else if (bOne) { // Define false < true return 1; } else { return -1; } } else { if (bOne == bTwo) { return 0; } else if (bTwo) { // Define false < true return 1; } else { return -1; } } } else { if (one instanceof Comparable && two instanceof Comparable) { Comparable cOne = (Comparable)one; Comparable cTwo = (Comparable)two; if (ascending) { return cOne.compareTo(cTwo); } else { return cTwo.compareTo(cOne); } } } return 1; } }
|
public int compare(Object one, Object two) { if (one instanceof String && two instanceof String) { String s1 = one.toString(); String s2 = two.toString(); int result = 0; if (ascending) result = s1.compareTo(s2); else result = s2.compareTo(s1); if (result < 0) { return -1; } else if (result > 0) { return 1; } else return 0; } else { if (one instanceof Boolean && two instanceof Boolean) { boolean bOne = ((Boolean)one).booleanValue(); boolean bTwo = ((Boolean)two).booleanValue(); if (ascending) { if (bOne == bTwo) { return 0; } else if (bOne) { // Define false < true return 1; } else { return -1; } } else { if (bOne == bTwo) { return 0; } else if (bTwo) { // Define false < true return 1; } else { return -1; } } } else { if (one instanceof Comparable && two instanceof Comparable) { Comparable cOne = (Comparable)one; Comparable cTwo = (Comparable)two; if (ascending) { return cOne.compareTo(cTwo); } else { return cTwo.compareTo(cOne); } } } return 1; } }
| 13,213
|
public int compare(Object one, Object two) { if (one instanceof String && two instanceof String) { String s1 = one.toString(); String s2 = two.toString(); int result = 0; if (ascending) result = s1.compareTo(s2); else result = s2.compareTo(s1); if (result < 0) { return -1; } else if (result > 0) { return 1; } else return 0; } else { if (one instanceof Boolean && two instanceof Boolean) { boolean bOne = ((Boolean)one).booleanValue(); boolean bTwo = ((Boolean)two).booleanValue(); if (ascending) { if (bOne == bTwo) { return 0; } else if (bOne) { // Define false < true return 1; } else { return -1; } } else { if (bOne == bTwo) { return 0; } else if (bTwo) { // Define false < true return 1; } else { return -1; } } } else { if (one instanceof Comparable && two instanceof Comparable) { Comparable cOne = (Comparable)one; Comparable cTwo = (Comparable)two; if (ascending) { return cOne.compareTo(cTwo); } else { return cTwo.compareTo(cOne); } } } return 1; } }
|
public int compare(Object one, Object two) { if (one instanceof String && two instanceof String) { String s1 = one.toString(); String s2 = two.toString(); int result = 0; if (ascending) result = s1.compareTo(s2); else result = s2.compareTo(s1); if (result < 0) { return -1; } else if (result > 0) { return 1; } else return 0; } else { if (one instanceof Boolean && two instanceof Boolean) { boolean bOne = ((Boolean)one).booleanValue(); boolean bTwo = ((Boolean)two).booleanValue(); if (ascending) { if (bOne == bTwo) { return 0; } else if (bOne) { // Define false < true return 1; } else { return -1; } } else { if (bOne == bTwo) { return 0; } else if (bTwo) { // Define false < true return 1; } else { return -1; } } } else { if (one instanceof Comparable && two instanceof Comparable) { Comparable cOne = (Comparable)one; Comparable cTwo = (Comparable)two; if (ascending) { return cOne.compareTo(cTwo); } else { return cTwo.compareTo(cOne); } } } return 1; } }
| 13,214
|
public int compare(Object one, Object two) { if (one instanceof String && two instanceof String) { String s1 = one.toString(); String s2 = two.toString(); int result = 0; if (ascending) result = s1.compareTo(s2); else result = s2.compareTo(s1); if (result < 0) { return -1; } else if (result > 0) { return 1; } else return 0; } else { if (one instanceof Boolean && two instanceof Boolean) { boolean bOne = ((Boolean)one).booleanValue(); boolean bTwo = ((Boolean)two).booleanValue(); if (ascending) { if (bOne == bTwo) { return 0; } else if (bOne) { // Define false < true return 1; } else { return -1; } } else { if (bOne == bTwo) { return 0; } else if (bTwo) { // Define false < true return 1; } else { return -1; } } } else { if (one instanceof Comparable && two instanceof Comparable) { Comparable cOne = (Comparable)one; Comparable cTwo = (Comparable)two; if (ascending) { return cOne.compareTo(cTwo); } else { return cTwo.compareTo(cOne); } } } return 1; } }
|
public int compare(Object one, Object two) { if (one instanceof String && two instanceof String) { String s1 = one.toString(); String s2 = two.toString(); int result = 0; if (ascending) result = s1.compareTo(s2); else result = s2.compareTo(s1); if (result < 0) { return -1; } else if (result > 0) { return 1; } else return 0; } else { if (one instanceof Boolean && two instanceof Boolean) { boolean bOne = ((Boolean)one).booleanValue(); boolean bTwo = ((Boolean)two).booleanValue(); if (ascending) { if (bOne == bTwo) { return 0; } else if (bOne) { // Define false < true return 1; } else { return -1; } } else { if (bOne == bTwo) { return 0; } else if (bTwo) { // Define false < true return 1; } else { return -1; } } } else { if (one instanceof Comparable && two instanceof Comparable) { Comparable cOne = (Comparable)one; Comparable cTwo = (Comparable)two; if (ascending) { return cOne.compareTo(cTwo); } else { return cTwo.compareTo(cOne); } } } return 1; } }
| 13,215
|
public int compare(Object one, Object two) { if (one instanceof String && two instanceof String) { String s1 = one.toString(); String s2 = two.toString(); int result = 0; if (ascending) result = s1.compareTo(s2); else result = s2.compareTo(s1); if (result < 0) { return -1; } else if (result > 0) { return 1; } else return 0; } else { if (one instanceof Boolean && two instanceof Boolean) { boolean bOne = ((Boolean)one).booleanValue(); boolean bTwo = ((Boolean)two).booleanValue(); if (ascending) { if (bOne == bTwo) { return 0; } else if (bOne) { // Define false < true return 1; } else { return -1; } } else { if (bOne == bTwo) { return 0; } else if (bTwo) { // Define false < true return 1; } else { return -1; } } } else { if (one instanceof Comparable && two instanceof Comparable) { Comparable cOne = (Comparable)one; Comparable cTwo = (Comparable)two; if (ascending) { return cOne.compareTo(cTwo); } else { return cTwo.compareTo(cOne); } } } return 1; } }
|
public int compare(Object one, Object two) { if (one instanceof String && two instanceof String) { String s1 = one.toString(); String s2 = two.toString(); int result = 0; if (ascending) result = s1.compareTo(s2); else result = s2.compareTo(s1); if (result < 0) { return -1; } else if (result > 0) { return 1; } else return 0; } else { if (one instanceof Boolean && two instanceof Boolean) { boolean bOne = ((Boolean)one).booleanValue(); boolean bTwo = ((Boolean)two).booleanValue(); if (ascending) { if (bOne == bTwo) { return 0; } else if (bOne) { // Define false < true return 1; } else { return -1; } } else { if (bOne == bTwo) { return 0; } else if (bTwo) { // Define false < true return 1; } else { return -1; } } } else { if (one instanceof Comparable && two instanceof Comparable) { Comparable cOne = (Comparable)one; Comparable cTwo = (Comparable)two; if (ascending) { return cOne.compareTo(cTwo); } else { return cTwo.compareTo(cOne); } } } return 1; } }
| 13,216
|
public int compare(Object one, Object two) { if (one instanceof String && two instanceof String) { String s1 = one.toString(); String s2 = two.toString(); int result = 0; if (ascending) result = s1.compareTo(s2); else result = s2.compareTo(s1); if (result < 0) { return -1; } else if (result > 0) { return 1; } else return 0; } else { if (one instanceof Boolean && two instanceof Boolean) { boolean bOne = ((Boolean)one).booleanValue(); boolean bTwo = ((Boolean)two).booleanValue(); if (ascending) { if (bOne == bTwo) { return 0; } else if (bOne) { // Define false < true return 1; } else { return -1; } } else { if (bOne == bTwo) { return 0; } else if (bTwo) { // Define false < true return 1; } else { return -1; } } } else { if (one instanceof Comparable && two instanceof Comparable) { Comparable cOne = (Comparable)one; Comparable cTwo = (Comparable)two; if (ascending) { return cOne.compareTo(cTwo); } else { return cTwo.compareTo(cOne); } } } return 1; } }
|
public int compare(Object one, Object two) { if (one instanceof String && two instanceof String) { String s1 = one.toString(); String s2 = two.toString(); int result = 0; if (ascending) result = s1.compareTo(s2); else result = s2.compareTo(s1); if (result < 0) { return -1; } else if (result > 0) { return 1; } else return 0; } else { if (one instanceof Boolean && two instanceof Boolean) { boolean bOne = ((Boolean)one).booleanValue(); boolean bTwo = ((Boolean)two).booleanValue(); if (ascending) { if (bOne == bTwo) { return 0; } else if (bOne) { // Define false < true return 1; } else { return -1; } } else { if (bOne == bTwo) { return 0; } else if (bTwo) { // Define false < true return 1; } else { return -1; } } } else { if (one instanceof Comparable && two instanceof Comparable) { Comparable cOne = (Comparable)one; Comparable cTwo = (Comparable)two; if (ascending) { return cOne.compareTo(cTwo); } else { return cTwo.compareTo(cOne); } } } return 1; } }
| 13,217
|
public Connect(Frame frame, String title, Properties prop) { super(frame, title, true); props = ConfigureFactory.getInstance().getProperties(GlobalConfigure.SESSIONS); try { jbInit(); } catch(Exception ex) { ex.printStackTrace(); } }
|
public Connect(Frame frame, String title, Properties prop) { super(frame, title, true); props = ConfigureFactory.getInstance().getProperties(GlobalConfigure.SESSIONS); try { jbInit(); } catch(Exception ex) { ex.printStackTrace(); } }
| 13,218
|
public Connect(Frame frame, String title, Properties prop) { super(frame, title, true); props = ConfigureFactory.getInstance().getProperties(GlobalConfigure.SESSIONS); try { jbInit(); } catch(Exception ex) { ex.printStackTrace(); } }
|
public Connect(Frame frame, String title, Properties prop) { super(frame, title, true); props = ConfigureFactory.getInstance().getProperties( GlobalConfigure.SESSIONS); try { jbInit(); } catch(Exception ex) { ex.printStackTrace(); } }
| 13,219
|
public Connect(Frame frame, String title, Properties prop) { super(frame, title, true); props = ConfigureFactory.getInstance().getProperties(GlobalConfigure.SESSIONS); try { jbInit(); } catch(Exception ex) { ex.printStackTrace(); } }
|
public Connect(Frame frame, String title, Properties prop) { super(frame, title, true); props = ConfigureFactory.getInstance().getProperties(GlobalConfigure.SESSIONS); try { jbInit(); } catch(Exception ex) { ex.printStackTrace(); } }
| 13,220
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("DONE")) { saveProps(); setVisible(false); } if (e.getActionCommand().equals("ADD")) { Configure.doEntry((JFrame)getParent(),null,props); ctm.addSession(); } if (e.getActionCommand().equals("REMOVE")) { removeEntry(); editButton.setEnabled(false); removeButton.setEnabled(false); } if (e.getActionCommand().equals("EDIT")) { int selectedRow = rowSM.getMinSelectionIndex(); Configure.doEntry((JFrame)getParent(),(String)ctm.getValueAt(selectedRow,0),props); ctm.chgSession(selectedRow); } if (e.getActionCommand().equals("CONNECT")) { doActionConnect(); } if (e.getActionCommand().equals("APPLY")) { saveProps(); } }
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("DONE")) { saveProps(); setVisible(false); } if (e.getActionCommand().equals("ADD")) { Configure.doEntry((JFrame)getParent(),null,props); ctm.addSession(); } if (e.getActionCommand().equals("REMOVE")) { removeEntry(); editButton.setEnabled(false); removeButton.setEnabled(false); } if (e.getActionCommand().equals("EDIT")) { int selectedRow = rowSM.getMinSelectionIndex(); Configure.doEntry((JFrame)getParent(),(String)ctm.getValueAt(selectedRow,0),props); ctm.chgSession(selectedRow); } if (e.getActionCommand().equals("CONNECT")) { doActionConnect(); } if (e.getActionCommand().equals("APPLY")) { saveProps(); } }
| 13,221
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("DONE")) { saveProps(); setVisible(false); } if (e.getActionCommand().equals("ADD")) { Configure.doEntry((JFrame)getParent(),null,props); ctm.addSession(); } if (e.getActionCommand().equals("REMOVE")) { removeEntry(); editButton.setEnabled(false); removeButton.setEnabled(false); } if (e.getActionCommand().equals("EDIT")) { int selectedRow = rowSM.getMinSelectionIndex(); Configure.doEntry((JFrame)getParent(),(String)ctm.getValueAt(selectedRow,0),props); ctm.chgSession(selectedRow); } if (e.getActionCommand().equals("CONNECT")) { doActionConnect(); } if (e.getActionCommand().equals("APPLY")) { saveProps(); } }
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("DONE")) { saveProps(); setVisible(false); } if (e.getActionCommand().equals("ADD")) { Configure.doEntry((JFrame)getParent(),null,props); ctm.addSession(); } if (e.getActionCommand().equals("REMOVE")) { removeEntry(); editButton.setEnabled(false); removeButton.setEnabled(false); } if (e.getActionCommand().equals("EDIT")) { int selectedRow = rowSM.getMinSelectionIndex(); Configure.doEntry((JFrame)getParent(),(String)ctm.getValueAt(selectedRow,0),props); ctm.chgSession(selectedRow); } if (e.getActionCommand().equals("CONNECT")) { doActionConnect(); } if (e.getActionCommand().equals("APPLY")) { saveProps(); } }
| 13,222
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("DONE")) { saveProps(); setVisible(false); } if (e.getActionCommand().equals("ADD")) { Configure.doEntry((JFrame)getParent(),null,props); ctm.addSession(); } if (e.getActionCommand().equals("REMOVE")) { removeEntry(); editButton.setEnabled(false); removeButton.setEnabled(false); } if (e.getActionCommand().equals("EDIT")) { int selectedRow = rowSM.getMinSelectionIndex(); Configure.doEntry((JFrame)getParent(),(String)ctm.getValueAt(selectedRow,0),props); ctm.chgSession(selectedRow); } if (e.getActionCommand().equals("CONNECT")) { doActionConnect(); } if (e.getActionCommand().equals("APPLY")) { saveProps(); } }
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("DONE")) { saveProps(); setVisible(false); } if (e.getActionCommand().equals("ADD")) { Configure.doEntry((JFrame)getParent(),null,props); ctm.addSession(); } if (e.getActionCommand().equals("REMOVE")) { removeEntry(); editButton.setEnabled(false); removeButton.setEnabled(false); } if (e.getActionCommand().equals("EDIT")) { int selectedRow = rowSM.getMinSelectionIndex(); Configure.doEntry((JFrame)getParent(),(String)ctm.getValueAt(selectedRow,0),props); ctm.chgSession(selectedRow); } if (e.getActionCommand().equals("CONNECT")) { doActionConnect(); } if (e.getActionCommand().equals("APPLY")) { saveProps(); } }
| 13,223
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("DONE")) { saveProps(); setVisible(false); } if (e.getActionCommand().equals("ADD")) { Configure.doEntry((JFrame)getParent(),null,props); ctm.addSession(); } if (e.getActionCommand().equals("REMOVE")) { removeEntry(); editButton.setEnabled(false); removeButton.setEnabled(false); } if (e.getActionCommand().equals("EDIT")) { int selectedRow = rowSM.getMinSelectionIndex(); Configure.doEntry((JFrame)getParent(),(String)ctm.getValueAt(selectedRow,0),props); ctm.chgSession(selectedRow); } if (e.getActionCommand().equals("CONNECT")) { doActionConnect(); } if (e.getActionCommand().equals("APPLY")) { saveProps(); } }
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("DONE")) { saveProps(); setVisible(false); } if (e.getActionCommand().equals("ADD")) { Configure.doEntry((JFrame)getParent(),null,props); ctm.addSession(); } if (e.getActionCommand().equals("REMOVE")) { removeEntry(); editButton.setEnabled(false); removeButton.setEnabled(false); } if (e.getActionCommand().equals("EDIT")) { int selectedRow = rowSM.getMinSelectionIndex(); Configure.doEntry((JFrame)getParent(),(String)ctm.getValueAt(selectedRow,0),props); ctm.chgSession(selectedRow); } if (e.getActionCommand().equals("CONNECT")) { doActionConnect(); } if (e.getActionCommand().equals("APPLY")) { saveProps(); } }
| 13,224
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("DONE")) { saveProps(); setVisible(false); } if (e.getActionCommand().equals("ADD")) { Configure.doEntry((JFrame)getParent(),null,props); ctm.addSession(); } if (e.getActionCommand().equals("REMOVE")) { removeEntry(); editButton.setEnabled(false); removeButton.setEnabled(false); } if (e.getActionCommand().equals("EDIT")) { int selectedRow = rowSM.getMinSelectionIndex(); Configure.doEntry((JFrame)getParent(),(String)ctm.getValueAt(selectedRow,0),props); ctm.chgSession(selectedRow); } if (e.getActionCommand().equals("CONNECT")) { doActionConnect(); } if (e.getActionCommand().equals("APPLY")) { saveProps(); } }
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("DONE")) { saveProps(); setVisible(false); } if (e.getActionCommand().equals("ADD")) { Configure.doEntry((JFrame)getParent(),null,props); ctm.addSession(); } if (e.getActionCommand().equals("REMOVE")) { removeEntry(); editButton.setEnabled(false); removeButton.setEnabled(false); } if (e.getActionCommand().equals("EDIT")) { int selectedRow = rowSM.getMinSelectionIndex(); Configure.doEntry((JFrame)getParent(),(String)ctm.getValueAt(selectedRow,0),props); ctm.chgSession(selectedRow); } if (e.getActionCommand().equals("CONNECT")) { doActionConnect(); } if (e.getActionCommand().equals("APPLY")) { saveProps(); } }
| 13,225
|
private void addLabelComponent(String text,Component comp,Container container) { JLabel label = new JLabel(text); label.setAlignmentX(Component.LEFT_ALIGNMENT); label.setHorizontalTextPosition(JLabel.LEFT); container.add(label); container.add(comp); }
|
private void addLabelComponent( String text, Component comp, Container container) { JLabel label = new JLabel(text); label.setAlignmentX(Component.LEFT_ALIGNMENT); label.setHorizontalTextPosition(JLabel.LEFT); container.add(label); container.add(comp); }
| 13,226
|
private void addLabelComponent(String text,Component comp,Container container) { JLabel label = new JLabel(text); label.setAlignmentX(Component.LEFT_ALIGNMENT); label.setHorizontalTextPosition(JLabel.LEFT); container.add(label); container.add(comp); }
|
private void addLabelComponent(String text,Component comp,Container container) { JLabel label = new JLabel(text); label.setAlignmentX(Component.LEFT_ALIGNMENT); label.setHorizontalTextPosition(JLabel.LEFT); container.add(label); container.add(comp); }
| 13,227
|
private void addLabelComponent(String text,Component comp,Container container) { JLabel label = new JLabel(text); label.setAlignmentX(Component.LEFT_ALIGNMENT); label.setHorizontalTextPosition(JLabel.LEFT); container.add(label); container.add(comp); }
|
private void addLabelComponent(String text,Component comp,Container container) { JLabel label = new JLabel(text); label.setAlignmentX(Component.LEFT_ALIGNMENT); label.setHorizontalTextPosition(JLabel.LEFT); container.add(label); container.add(comp); }
| 13,228
|
private JButton addOptButton(String text, String ac, Container container) { return addOptButton(text,ac,container,true); }
|
private JButton addOptButton(String text, String ac, Container container) { return addOptButton(text,ac,container,true); }
| 13,229
|
private void createButtonOptions() { connectButton = addOptButton(LangTool.getString("ss.optConnect"), "CONNECT",options,false); applyButton = addOptButton(LangTool.getString("ss.optApply"), "APPLY",options,true); addOptButton(LangTool.getString("ss.optCancel"),"DONE",options); }
|
private void createButtonOptions() { connectButton = addOptButton(LangTool.getString("ss.optConnect"), "CONNECT",options,false); applyButton = addOptButton(LangTool.getString("ss.optApply"), "APPLY",options,true); addOptButton(LangTool.getString("ss.optCancel"),"DONE",options); }
| 13,230
|
private void createButtonOptions() { connectButton = addOptButton(LangTool.getString("ss.optConnect"), "CONNECT",options,false); applyButton = addOptButton(LangTool.getString("ss.optApply"), "APPLY",options,true); addOptButton(LangTool.getString("ss.optCancel"),"DONE",options); }
|
private void createButtonOptions() { connectButton = addOptButton(LangTool.getString("ss.optConnect"), "CONNECT",options,false); applyButton = addOptButton(LangTool.getString("ss.optApply"), "APPLY",options,true); addOptButton(LangTool.getString("ss.optCancel"),"DONE",options); }
| 13,231
|
private void createButtonOptions() { connectButton = addOptButton(LangTool.getString("ss.optConnect"), "CONNECT",options,false); applyButton = addOptButton(LangTool.getString("ss.optApply"), "APPLY",options,true); addOptButton(LangTool.getString("ss.optCancel"),"DONE",options); }
|
private void createButtonOptions() { connectButton = addOptButton(LangTool.getString("ss.optConnect"), "CONNECT",options,false); applyButton = addOptButton(LangTool.getString("ss.optApply"), "APPLY",options,true); addOptButton(LangTool.getString("ss.optCancel"), "DONE", options); }
| 13,232
|
private void createButtonOptions() { connectButton = addOptButton(LangTool.getString("ss.optConnect"), "CONNECT",options,false); applyButton = addOptButton(LangTool.getString("ss.optApply"), "APPLY",options,true); addOptButton(LangTool.getString("ss.optCancel"),"DONE",options); }
|
private void createButtonOptions() { connectButton = addOptButton(LangTool.getString("ss.optConnect"), "CONNECT",options,false); applyButton = addOptButton(LangTool.getString("ss.optApply"), "APPLY",options,true); addOptButton(LangTool.getString("ss.optCancel"),"DONE",options); }
| 13,233
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
| 13,234
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
| 13,235
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane, BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
| 13,236
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
| 13,237
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
| 13,238
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
| 13,239
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
| 13,240
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
| 13,241
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
| 13,242
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
| 13,243
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
| 13,244
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
| 13,245
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
| 13,246
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
| 13,247
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
| 13,248
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
| 13,249
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
| 13,250
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
| 13,251
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
| 13,252
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
|
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the frame interface panel interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5)); TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); interfacePanel.setBorder(tb); ButtonGroup intGroup = new ButtonGroup(); // create the checkbox for hiding the tab bar when only one tab exists hideTabBar = new JCheckBox(LangTool.getString("conf.labelHideTabBar")); hideTabBar.setSelected(false); if (props.containsKey("emul.hideTabBar")) { if (props.getProperty("emul.hideTabBar").equals("yes")) hideTabBar.setSelected(true); } hideTabBar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); } }); intTABS = new JRadioButton(LangTool.getString("conf.labelTABS")); intTABS.setSelected(true); intTABS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); } }); intMDI = new JRadioButton(LangTool.getString("conf.labelMDI")); // add the interface options to the group control intGroup.add(intTABS); intGroup.add(intMDI); if (props.containsKey("emul.interface")) { if (props.getProperty("emul.interface").equalsIgnoreCase("MDI")) intMDI.setSelected(true); } interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel()); // create show me panel JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder(""); showMePanel.setBorder(smb); showMe = new JCheckBox(LangTool.getString("ss.labelShowMe")); if(props.containsKey("emul.showConnectDialog")) showMe.setSelected(true); showMe.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); } }); showMePanel.add(showMe); contentPane.add(interfacePanel); contentPane.add(showMePanel); }
| 13,253
|
public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); }
|
public void itemStateChanged(ItemEvent e) { hideTabBar_itemStateChanged(e); }
| 13,254
|
public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); }
|
public void itemStateChanged(ItemEvent e) { intTABS_itemStateChanged(e); }
| 13,255
|
public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); }
|
public void itemStateChanged(ItemEvent e) { showMe_itemStateChanged(e); }
| 13,256
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
|
private void createSessionsPanel() { // get an instance of our table model sessions = new JSortTable(ctm); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
| 13,257
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
| 13,258
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
| 13,259
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
| 13,260
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
| 13,261
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
| 13,262
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
| 13,263
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
| 13,264
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } if (e.getValueIsAdjusting()) return; //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } if (e.getValueIsAdjusting()) return; //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
| 13,265
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
| 13,266
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
| 13,267
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
| 13,268
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
|
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } }; KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect ); sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false); //Create the scroll pane and add the table to it. scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); // This will make the connect dialog react to two clicks instead of having // to click on the selection and then clicking twice sessions.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } } }); //Setup our selection model listener rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { //Ignore extra messages. if (e.getValueIsAdjusting()) return; ListSelectionModel lsm = (ListSelectionModel)e.getSource(); if (lsm.isSelectionEmpty()) { //no rows are selected editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else { int selectedRow = lsm.getMinSelectionIndex(); //selectedRow is selected editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } }); //Setup panels configOptions.setLayout(borderLayout); sessionPanel.setLayout(borderLayout); configOptions.add(sessionPanel, BorderLayout.CENTER); sessionOpts.add(scrollPane, BorderLayout.CENTER); sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder()); // add the option buttons addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel); removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
| 13,269
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.