bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public void show() { // We insert a JPanel between the layered pane and the contents so we // can fiddle with the setLocation() method without disturbing a // JPopupMenu (which overrides setLocation in an unusual manner). if (panel == null) { panel = new JPanel(); pan...
public void show() { // We insert a JPanel between the layered pane and the contents so we // can fiddle with the setLocation() method without disturbing a // JPopupMenu (which overrides setLocation in an unusual manner). if (panel == null) { panel = new JPanel(); pan...
10,395
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
10,397
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
10,398
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
10,399
public static final int getBreakLocation(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset) { int mark = Utilities.getTabbedTextOffset(s, metrics, x0, x, e, startOffset, false); BreakIterator breaker...
public static final int getBreakLocation(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset) { int mark = Utilities.getTabbedTextOffset(s, metrics, x0, x, e, startOffset, false); BreakIterator breaker...
10,400
static int getNextVisualPositionFrom(JTextComponent t, int offset, int direction) { NavigationFilter nf = t.getNavigationFilter(); try { return (nf != null) ? nf.getNextVisualPositionFrom(t, offset, Bias.F...
static int getNextVisualPositionFrom(JTextComponent t, int offset, int direction) { NavigationFilter nf = t.getNavigationFilter(); try { return (nf != new Position.Bias[1]) ? nf.getNextVisualPositionFrom(t, offset, ...
10,401
static int getNextVisualPositionFrom(JTextComponent t, int offset, int direction) { NavigationFilter nf = t.getNavigationFilter(); try { return (nf != null) ? nf.getNextVisualPositionFrom(t, offset, Bias.F...
static int getNextVisualPositionFrom(JTextComponent t, int offset, int direction) { NavigationFilter nf = t.getNavigationFilter(); try { return (nf != null) ? nf.getNextVisualPositionFrom(t, offset, Bias.F...
10,402
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
10,403
public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x coordinate. int pixe...
public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x coordinate. int pixe...
10,404
protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { g.setColor(unselectedColor); Segment segment = new Segment(); getDocument().getText(p0, p1 - p0, segment); return Utilities.drawTabbedText(segment, x, y, g, this, 0); }
protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { g.setColor(unselectedColor); Segment segment = new Segment(); getDocument().getText(p0, p1 - p0, segment); return Utilities.drawTabbedText(segment, x, y, g, this, segment.offset); }
10,405
public void setBoundsForFrame(JComponent f, int x, int y, int w, int h) { System.out.println(" we are adjusting "); if (f instanceof MyInternalFrame == false) { super.setBoundsForFrame(f, x, y, w, h); // only deal w/internal frames } else { MyInternalFrame fram...
public void setBoundsForFrame(JComponent f, int x, int y, int w, int h) { log.info(" we are adjusting "); if (f instanceof MyInternalFrame == false) { super.setBoundsForFrame(f, x, y, w, h); // only deal w/internal frames } else { MyInternalFrame frame = (MyInt...
10,406
public Gui5250MDIFrame(My5250 m) { super(m); enableEvents(AWTEvent.WINDOW_EVENT_MASK); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } }
public Gui5250MDIFrame(My5250 m) { super(m); enableEvents(AWTEvent.WINDOW_EVENT_MASK); try { jbInit(); } catch(Exception e) { log.warn("In constructor: "+e); } }
10,407
public void addSessionView(String tabText,Session session) { MyInternalFrame frame = new MyInternalFrame(); frame.setVisible(true); desktop.add(frame); myFrameList.add(frame); selectedIndex = desktop.getComponentCount(); frame.setContentPane(session); try { frame.setSelecte...
public void addSessionView(String tabText,Session session) { MyInternalFrame frame = new MyInternalFrame(); frame.setVisible(true); desktop.add(frame); myFrameList.add(frame); selectedIndex = desktop.getComponentCount(); frame.setContentPane(session); try { frame.setSelecte...
10,408
private MyInternalFrame getNextInternalFrame() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); if (miv == null) return null; int index = desktop.getIndexOf(miv); if (index == -1) return null; MyIntern...
log.debug(" current index " + x + " count " + frames.length + " has focus " + mif.isActive() + " title " + mif.getTitle() + " seq " + seq + " id " + mif.getInternalId()); private MyInternalFrame getNextInternalFrame() {log.debug(" current index " + x + " count " + frames.length + " has focus " + mif.isActive() + " titl...
10,409
private void nextSession() { MyInternalFrame mif = getNextInternalFrame(); if (mif != null) { try { if (mif.isIcon()) { mif.setIcon(false); } mif.setSelected(true); } catch (java.beans.PropertyVetoException e) { System.out.pr...
private void nextSession() { MyInternalFrame mif = getNextInternalFrame(); if (mif != null) { try { if (mif.isIcon()) { mif.setIcon(false); } mif.setSelected(true); } catch (java.beans.PropertyVetoException e) { log.warn(e.ge...
10,410
public void onSessionChanged(SessionChangeEvent changeEvent) { Session ses = (Session)changeEvent.getSource(); switch (changeEvent.getState()) { case STATE_CONNECTED: final String d = ses.getAllocDeviceName(); if (d != null) { System.out.println(changeEvent.getSt...
public void onSessionChanged(SessionChangeEvent changeEvent) { Session ses = (Session)changeEvent.getSource(); switch (changeEvent.getState()) { case STATE_CONNECTED: final String d = ses.getAllocDeviceName(); if (d != null) { log.info(changeEvent.getState() + " ...
10,411
public void onSessionChanged(SessionChangeEvent changeEvent) { Session ses = (Session)changeEvent.getSource(); switch (changeEvent.getState()) { case STATE_CONNECTED: final String d = ses.getAllocDeviceName(); if (d != null) { System.out.println(changeEvent.getSt...
log.debug(" index of session " + index + " num frames " + desktop.getAllFrames().length); log.debug(" index of session " + index + " num frames " + desktop.getAllFrames().length); log.debug(" index of session " + index + " num frames " + desktop.getAllFrames().length); publiclog.debug(" index of session " + index + " n...
10,412
private void prevSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); if (miv == null) return; int index = desktop.getIndexOf(miv); if (index == -1) return; MyInternalFrame mix = (MyInternalFrame...
log.debug(" current index " + x + " count " + frames.length + " has focus " + mif.isActive() + " title " + mif.getTitle() + " seq " + seq + " id " + mif.getInternalId()); private void prevSession() {log.debug(" current index " + x + " count " + frames.length + " has focus " + mif.isActive() + " title " + mif.getTitle()...
10,413
private void prevSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); if (miv == null) return; int index = desktop.getIndexOf(miv); if (index == -1) return; MyInternalFrame mix = (MyInternalFrame...
private void prevSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); if (miv == null) return; int index = desktop.getIndexOf(miv); if (index == -1) return; MyInternalFrame mix = (MyInternalFrame...
10,414
public void removeSessionView(Session targetSession) { int index = getIndexOfSession(targetSession); MyInternalFrame nextMIF = getNextInternalFrame(); System.out.println("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.removeSessionJumpList...
public void removeSessionView(Session targetSession) { int index = getIndexOfSession(targetSession); MyInternalFrame nextMIF = getNextInternalFrame(); log.info("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.removeSessionJumpListener(this)...
10,415
public void removeSessionView(Session targetSession) { int index = getIndexOfSession(targetSession); MyInternalFrame nextMIF = getNextInternalFrame(); System.out.println("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.removeSessionJumpList...
log.debug(" num of frames before removal " + myFrameList.size()); log.debug(" num of frames before removal " + myFrameList.size()); log.debug(" num of frames before removal " + myFrameList.size()); publiclog.debug(" num of frames before removal " + myFrameList.size()); voidlog.debug(" num of frames before removal " + m...
10,416
public void removeSessionView(Session targetSession) { int index = getIndexOfSession(targetSession); MyInternalFrame nextMIF = getNextInternalFrame(); System.out.println("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.removeSessionJumpList...
log.debug(" num of frames left " + myFrameList.size()); log.debug(" num of frames left " + myFrameList.size()); log.debug(" num of frames left " + myFrameList.size()); publiclog.debug(" num of frames left " + myFrameList.size()); voidlog.debug(" num of frames left " + myFrameList.size()); removeSessionView(Sessionlog.d...
10,417
public void removeSessionView(Session targetSession) { int index = getIndexOfSession(targetSession); MyInternalFrame nextMIF = getNextInternalFrame(); System.out.println("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.removeSessionJumpList...
public void removeSessionView(Session targetSession) { int index = getIndexOfSession(targetSession); MyInternalFrame nextMIF = getNextInternalFrame(); System.out.println("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.removeSessionJumpList...
10,418
public DebugState process(KeyboardEvent event) { DebugState newState = this; switch (event.getKeyChar()) { case 'n': if (threadIterator.hasNext()) { final Thread t = (Thread) threadIterator.next(); newState = new ThreadState(this, t, index++); ...
public DebugState process(KeyboardEvent event) { DebugState newState = this; switch (event.getKeyChar()) { case 'n': if (threadIterator.hasNext()) { final Thread t = (Thread) threadIterator.next(); newState = new ThreadState(this, t, index++); ...
10,419
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) ...
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) ...
10,420
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) ...
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) ...
10,421
protected void dialogInit() { // FIXME: Do a check on GraphicsEnvironment.isHeadless() setLocale(JComponent.getDefaultLocale()); getRootPane(); // Will do set/create. invalidate(); // Now that initStageDone is true, adds and layouts apply to contentPane, // not top-level. initStageDone = ...
protected void dialogInit() { // FIXME: Do a check on GraphicsEnvironment.isHeadless() setLocale(JComponent.getDefaultLocale()); getRootPane(); // Will do set/create. invalidate(); // Now that initStageDone is true, adds and layouts apply to contentPane, // not top-level. setRootPaneCheck...
10,422
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane. if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set top-level layout. Use" ...
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane. if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set top-level layout. Use" ...
10,423
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane. if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set top-level layout. Use" ...
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane. if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set top-level layout. Use" ...
10,424
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane. if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set top-level layout. Use" ...
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane. if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set top-level layout. Use" ...
10,425
public FileFilter() { }
public FileFilter() { }
10,427
public void startProduction (ImageConsumer ic) { if (!isConsumer(ic)) addConsumer (ic); Vector list = (Vector) consumers.clone (); try { // Create the input stream here rather than in the // ImageDecoder constructors so that exceptions cause // imageComplete to be called with an appropriate error /...
public void startProduction (ImageConsumer ic) { if (!isConsumer(ic)) addConsumer(ic); Vector list = (Vector) consumers.clone (); try { // Create the input stream here rather than in the // ImageDecoder constructors so that exceptions cause // imageComplete to be called with an appropriate error //...
10,429
public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); orb.setPort(PORT); orb.init(args, null); // Create the servant and register it with the ORB Nam...
public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); orb.setPort(PORT); orb.init(args, null); // Create the servant and register it with the ORB Nam...
10,435
public String getUnprocessedKeyStroked() { if(index >= length)// if (keyStrokes.length() == 0) return null; else {// return keyStrokes.toString(); String ks = keyStrokes.substring(index); keyStrokes.setLength(0); return ks; } }
publicStringgetUnprocessedKeyStroked(){if(index>=length)//if(keyStrokes.length()==0)returnnull;else{//returnkeyStrokes.toString();Stringks=keyStrokes.substring(index);keyStrokes.setLength(0);returnks;}}
10,437
public String getUnprocessedKeyStroked() { if(index >= length)// if (keyStrokes.length() == 0) return null; else {// return keyStrokes.toString(); String ks = keyStrokes.substring(index); keyStrokes.setLength(0); return ks; } }
public String getUnprocessedKeyStroked() { if(index >= length)// if (keyStrokes.length() == 0) return null; else {// return keyStrokes.toString(); String ks = keyStrokes.substring(index); keyStrokes.setLength(0); return ks; } }
10,438
public String nextKeyStroke() { String s = null; boolean gotOne = false; int start = index; if(length > index) { sb.setLength(0); char c = keyStrokes.charAt(index); switch(c) { case '[': sb.append(c); index++; // we need...
public String nextKeyStroke() { String s = null; boolean gotOne = false; int start = index; if(length > index) { sb.setLength(0); char c = keyStrokes.charAt(index); switch(c) { case '[': sb.append(c); index++; // we need...
10,439
public String nextKeyStroke() { String s = null; boolean gotOne = false; int start = index; if(length > index) { sb.setLength(0); char c = keyStrokes.charAt(index); switch(c) { case '[': sb.append(c); index++; // we need...
public String nextKeyStroke() { String s = null; boolean gotOne = false; int start = index; if(length > index) { sb.setLength(0); char c = keyStrokes.charAt(index); switch(c) { case '[': sb.append(c); index++; // we need...
10,440
public String nextKeyStroke() { String s = null; boolean gotOne = false; int start = index; if(length > index) { sb.setLength(0); char c = keyStrokes.charAt(index); switch(c) { case '[': sb.append(c); index++; // we need...
public String nextKeyStroke() { String s = null; boolean gotOne = false; int start = index; if(length > index) { sb.setLength(0); char c = keyStrokes.charAt(index); switch(c) { case '[': sb.append(c); index++; // we need...
10,441
public String nextKeyStroke() { String s = null; boolean gotOne = false; int start = index; if(length > index) { sb.setLength(0); char c = keyStrokes.charAt(index); switch(c) { case '[': sb.append(c); index++; // we need...
public String nextKeyStroke() { String s = null; boolean gotOne = false; int start = index; if(length > index) { sb.setLength(0); char c = keyStrokes.charAt(index); switch(c) { case '[': sb.append(c); index++; // we need...
10,442
public String nextKeyStroke() { String s = null; boolean gotOne = false; int start = index; if(length > index) { sb.setLength(0); char c = keyStrokes.charAt(index); switch(c) { case '[': sb.append(c); index++; // we need...
public String nextKeyStroke() { String s = null; boolean gotOne = false; int start = index; if(length > index) { sb.setLength(0); char c = keyStrokes.charAt(index); switch(c) { case '[': sb.append(c); index++; // we need...
10,443
public String nextKeyStroke() { String s = null; boolean gotOne = false; int start = index; if(length > index) { sb.setLength(0); char c = keyStrokes.charAt(index); switch(c) { case '[': sb.append(c); index++; // we need...
publicStringnextKeyStroke(){Strings=null;booleangotOne=false;intstart=index;if(length>index){sb.setLength(0);charc=keyStrokes.charAt(index);switch(c){case'[':sb.append(c);index++;//weneedtothrowanerrorhereif(index>=length){System.out.println("mnemonickeywasincomplete:1"+"atposition"+index);}else{c=keyStrokes.charAt(ind...
10,444
public String nextKeyStroke() { String s = null; boolean gotOne = false; int start = index; if(length > index) { sb.setLength(0); char c = keyStrokes.charAt(index); switch(c) { case '[': sb.append(c); index++; // we need...
public String nextKeyStroke() { String s = null; boolean gotOne = false; int start = index; if(length > index) { sb.setLength(0); char c = keyStrokes.charAt(index); switch(c) { case '[': sb.append(c); index++; // we need...
10,445
public void setKeyStrokes (String strokes) { if (strokes != null) {// keyStrokes.setLength(0); keyStrokes.append(strokes);// System.out.println("set "+ keyStrokes);// index = 0; length = keyStrokes.length(); } else { keyStrokes = new StringBuffer(); ...
public void setKeyStrokes (String strokes) { if (strokes != null) {// keyStrokes.setLength(0); keyStrokes.append(strokes);// System.out.println("set "+ keyStrokes);// index = 0; length = keyStrokes.length(); } else { keyStrokes = new StringBuffer(); ...
10,446
public void setKeyStrokes (String strokes) { if (strokes != null) {// keyStrokes.setLength(0); keyStrokes.append(strokes);// System.out.println("set "+ keyStrokes);// index = 0; length = keyStrokes.length(); } else { keyStrokes = new StringBuffer(); ...
public void setKeyStrokes (String strokes) { if (strokes != null) {// keyStrokes.setLength(0); keyStrokes.append(strokes);// System.out.println("set "+ keyStrokes);// index = 0; length = strokes.length(); } else { keyStrokes = new StringBuffer(); ...
10,447
public void setKeyStrokes (String strokes) { if (strokes != null) {// keyStrokes.setLength(0); keyStrokes.append(strokes);// System.out.println("set "+ keyStrokes);// index = 0; length = keyStrokes.length(); } else { keyStrokes = new StringBuffer(); ...
public void setKeyStrokes (String strokes) { if (strokes != null) {// keyStrokes.setLength(0); keyStrokes.append(strokes);// System.out.println("set "+ keyStrokes);// index = 0; length = keyStrokes.length(); } else { keyStrokes = new StringBuffer(); ...
10,448
public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) { System.out.println(" we got a null graphic object "); return; } //synchro...
synchronized (lock) { synchronized (lock) { synchronized (lock) { publicsynchronized (lock) { synchronizedsynchronized (lock) { voidsynchronized (lock) { drawImageBuffer(Graphics2Dsynchronized (lock) { gg2d,intsynchronized (lock) { x,synchronized (lock) { intsynchronized (lock) { y,synchronized (lock) { intsynchronized...
10,450
public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) { System.out.println(" we got a null graphic object "); return; } //synchro...
lock.notifyAll(); } public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) {lock.notifyAll(); } lock.notifyAll(); } lock.notifyAll(); } /**lock.notifyAll(); } lock.notifyAll(); } lock.notifyAll(); } lock.notifyAll(); } * @todo this is a hack and should be fixed at the root of th...
10,451
public static boolean isJavaMIMEType (String name) { return false; }
public static boolean isJavaMIMEType (String name) { return (name != null && name.startsWith(GNU_JAVA_MIME_PREFIX)); }
10,456
private void closeSession() { vt.isOnSignoffScreen(); Object[] message = new Object[1]; message[0] = LangTool.getString("cs.message"); String[] options = {LangTool.getString("cs.optThis"), LangTool.getString("cs.optAll"), LangTool.getString...
private void closeSession() { Object[] message = new Object[1]; message[0] = LangTool.getString("cs.message"); String[] options = {LangTool.getString("cs.optThis"), LangTool.getString("cs.optAll"), LangTool.getString("cs.optCancel")}; i...
10,457
private void closeSession() { vt.isOnSignoffScreen(); Object[] message = new Object[1]; message[0] = LangTool.getString("cs.message"); String[] options = {LangTool.getString("cs.optThis"), LangTool.getString("cs.optAll"), LangTool.getString...
private void closeSession() { vt.isOnSignoffScreen(); Object[] message = new Object[1]; message[0] = LangTool.getString("cs.message"); String[] options = {LangTool.getString("cs.optThis"), LangTool.getString("cs.optAll"), LangTool.getString...
10,458
private void doAttributes() { Frame parent = null; // if me is null then we must be called from an applet so we create // a new frame object. if (me == null) parent = new JFrame(); else parent = (Frame)me.getParentView((Session)this); SessionAttributes sa = new Session...
private void doAttributes() { Frame parent = null; // if me is null then we must be called from an applet so we create // a new frame object. if (me == null) parent = new JFrame(); else parent = (Frame)me.getParentView((Session)this); SessionAttributes sa = new Session...
10,459
private void doAttributes() { Frame parent = null; // if me is null then we must be called from an applet so we create // a new frame object. if (me == null) parent = new JFrame(); else parent = (Frame)me.getParentView((Session)this); SessionAttributes sa = new Session...
private void doAttributes() { Frame parent = null; // if me is null then we must be called from an applet so we create // a new frame object. if (me == null) parent = new JFrame(); else parent = (Frame)me.getParentView((Session)this); SessionAttributes sa = new Session...
10,460
private void doMeSpool() { try { org.tn5250j.spoolfile.SpoolExporter spooler = new org.tn5250j.spoolfile.SpoolExporter(vt, (Session)this); spooler.setVisible(true); } catch (NoClassDefFoundError ncd...
private void doMeSpool() { try { org.tn5250j.spoolfile.SpoolExporter spooler = new org.tn5250j.spoolfile.SpoolExporter(vt, (Session)this); spooler.setVisible(true); } catch (NoClassDefFoundError ncd...
10,461
public void onConfigChanged(SessionConfigEvent changeEvent) { }
public void onConfigChanged(SessionConfigEvent pce) { }
10,463
public static float[] RGBtoHSB(int red, int green, int blue, float array[]) { if (array == null) array = new float[3]; // Calculate brightness. int min; int max; if (red < green) { min = red; max = green; } else { min = green; max = red; } if ...
public static float[] RGBtoHSB(int red, int green, int blue, float array[]) { if (array == null) array = new float[3]; // Calculate brightness. int min; int max; if (red < green) { min = red; max = green; } else { min = green; max = red; } if ...
10,473
public static float[] RGBtoHSB(int red, int green, int blue, float array[]) { if (array == null) array = new float[3]; // Calculate brightness. int min; int max; if (red < green) { min = red; max = green; } else { min = green; max = red; } if ...
public static float[] RGBtoHSB(int red, int green, int blue, float array[]) { if (array == null) array = new float[3]; // Calculate brightness. int min; int max; if (red < green) { min = red; max = green; } else { min = green; max = red; } if ...
10,474
public JButton() { this(null, null); }
public JButton() { this(null, null); }
10,475
protected void configurePropertiesFromAction(Action a) { // Factory method which sets the AbstractButton's properties according to // values from the Action instance. super.configurePropertiesFromAction(a); }
protected void configurePropertiesFromAction(Action a) { // Factory method which sets the AbstractButton's properties according to // values from the Action instance. super.configurePropertiesFromAction(a); }
10,476
protected void configurePropertiesFromAction(Action a) { // Factory method which sets the AbstractButton's properties according to // values from the Action instance. super.configurePropertiesFromAction(a); }
protected void configurePropertiesFromAction(Action a) { // Factory method which sets the AbstractButton's properties according to // values from the Action instance. super.configurePropertiesFromAction(a); }
10,477
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJButton(); return accessibleContext; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJButton(); return accessibleContext; }
10,478
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJButton(); return accessibleContext; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJButton(); return accessibleContext; }
10,479
public Object[] getSelectedObjects() { return null; }
public Object[] getSelectedObjects() { return null; }
10,480
public String getUIClassID() { // Returns a string that specifies the name of the L&F class that renders // this component. return "ButtonUI"; }
public String getUIClassID() { // Returns a string that specifies the name of the L&F class that renders // this component. return "ButtonUI"; }
10,481
public String getUIClassID() { // Returns a string that specifies the name of the L&F class that renders // this component. return "ButtonUI"; }
public String getUIClassID() { // Returns a string that specifies the name of the L&F class that renders // this component. return "ButtonUI"; }
10,482
public boolean isDefaultButton() { // Returns whether or not this button is the default button on the // RootPane. return is_def; }
public boolean isDefaultButton() { // Returns whether or not this button is the default button on the // RootPane. return is_def; }
10,483
public boolean isDefaultButton() { // Returns whether or not this button is the default button on the // RootPane. return is_def; }
public boolean isDefaultButton() { // Returns whether or not this button is the default button on the // RootPane. return is_def; }
10,484
public boolean isDefaultCapable() { // Returns whether or not this button is capable of being the default // button on the RootPane. return def; }
public boolean isDefaultCapable() { // Returns whether or not this button is capable of being the default // button on the RootPane. return def; }
10,485
public boolean isDefaultCapable() { // Returns whether or not this button is capable of being the default // button on the RootPane. return def; }
public boolean isDefaultCapable() { // Returns whether or not this button is capable of being the default // button on the RootPane. return def; }
10,486
protected String paramString() { String superParam = super.paramString(); // 41 is the maximum number of chars which may be needed. StringBuffer sb = new StringBuffer(41); sb.append(",defaultButton=").append(is_def); sb.append(",defaultCapable=").append(def); return superParam + sb.toString();...
protected String paramString() { String superParam = super.paramString(); // 41 is the maximum number of chars which may be needed. StringBuffer sb = new StringBuffer(41); sb.append(",defaultButton=").append(is_def); sb.append(",defaultCapable=").append(def); return superParam + sb.toString();...
10,487
protected String paramString() { String superParam = super.paramString(); // 41 is the maximum number of chars which may be needed. StringBuffer sb = new StringBuffer(41); sb.append(",defaultButton=").append(is_def); sb.append(",defaultCapable=").append(def); return superParam + sb.toString();...
protected String paramString() { String superParam = super.paramString(); // 41 is the maximum number of chars which may be needed. StringBuffer sb = new StringBuffer(41); sb.append(",defaultButton=").append(is_def); sb.append(",defaultCapable=").append(def); return superParam + sb.toString();...
10,488
public void removeNotify() { }
public void removeNotify() { }
10,489
public void updateUI() { setUI((ButtonUI) UIManager.getUI(this)); }
public void updateUI() { setUI((ButtonUI) UIManager.getUI(this)); }
10,490
public void updateUI() { setUI((ButtonUI) UIManager.getUI(this)); }
public void updateUI() { setUI((ButtonUI) UIManager.getUI(this)); }
10,491
public void closeFrame(JInternalFrame frame) { Container c = frame.getParent(); frame.doDefaultCloseAction(); if (c != null) { if (frame.isIcon()) c.remove(frame.getDesktopIcon()); else c.remove(frame); c.repaint(); } }
public void closeFrame(JInternalFrame frame) { Container c = frame.getParent(); if (c != null) { if (frame.isIcon()) c.remove(frame.getDesktopIcon()); else c.remove(frame); c.repaint(); } }
10,492
public void endDraggingFrame(JComponent component) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { setBoundsForFrame((JInternalFrame) component, dragCache.x, dragCache.y, dragCache.width, dragCache.height); pane = null; dragCache = null; } component.repaint(...
public void endDraggingFrame(JComponent component) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { setBoundsForFrame((JInternalFrame) component, dragCache.x, dragCache.y, dragCache.width, dragCache.height); pane = null; dragCache = null; component.repaint();...
10,493
public void endResizingFrame(JComponent component) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { setBoundsForFrame((JInternalFrame) component, dragCache.x, dragCache.y, dragCache.width, dragCache.height); pane = null; dragCache = null; } component.repaint(...
public void endResizingFrame(JComponent component) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { setBoundsForFrame((JInternalFrame) component, dragCache.x, dragCache.y, dragCache.width, dragCache.height); pane = null; dragCache = null; component.repaint();...
10,495
public void setBoundsForFrame(JComponent component, int newX, int newY, int newWidth, int newHeight) { component.setBounds(newX, newY, newWidth, newHeight); component.revalidate(); // If not null, I'd rather repaint the parent if (component.getParent() != null) compone...
public void setBoundsForFrame(JComponent component, int newX, int newY, int newWidth, int newHeight) { component.setBounds(newX, newY, newWidth, newHeight); component.revalidate(); // If not null, I'd rather repaint the parent if (component.getParent() != null) compone...
10,497
public Rectangle getBounds(TreePath value0, Rectangle value1) { return null; // TODO } // getBounds()
public Rectangle getBounds(TreePath value0, Rectangle value1) { return null; // TODO } // getBounds()
10,498
public Rectangle getBounds(TreePath value0, Rectangle value1) { return null; // TODO } // getBounds()
public Rectangle getBounds(TreePath value0, Rectangle value1) { return null; // TODO } // getBounds()
10,499
public boolean getExpandedState(TreePath value0) { return false; // TODO } // getExpandedState()
public boolean getExpandedState(TreePath value0) { return false; // TODO } // getExpandedState()
10,500
public boolean getExpandedState(TreePath value0) { return false; // TODO } // getExpandedState()
public boolean getExpandedState(TreePath value0) { return false; // TODO } // getExpandedState()
10,501
public TreePath getPathClosestTo(int value0, int value1) { return null; // TODO } // getPathClosestTo()
public TreePath getPathClosestTo(int value0, int value1) { return null; // TODO } // getPathClosestTo()
10,502
public TreePath getPathClosestTo(int value0, int value1) { return null; // TODO } // getPathClosestTo()
public TreePath getPathClosestTo(int value0, int value1) { return null; // TODO } // getPathClosestTo()
10,503
public TreePath getPathForRow(int value0) { return null; // TODO } // getPathForRow()
public TreePath getPathForRow(int value0) { return null; // TODO } // getPathForRow()
10,504
public TreePath getPathForRow(int value0) { return null; // TODO } // getPathForRow()
public TreePath getPathForRow(int value0) { return null; // TODO } // getPathForRow()
10,505
public int getPreferredHeight() { return 0; // TODO } // getPreferredHeight()
public int getPreferredHeight() { return 0; // TODO } // getPreferredHeight()
10,506
public int getPreferredHeight() { return 0; // TODO } // getPreferredHeight()
public int getPreferredHeight() { return 0; // TODO } // getPreferredHeight()
10,507
public int getPreferredWidth(Rectangle value0) { return 0; // TODO } // getPreferredWidth()
public int getPreferredWidth(Rectangle value0) { return 0; // TODO } // getPreferredWidth()
10,508
public int getPreferredWidth(Rectangle value0) { return 0; // TODO } // getPreferredWidth()
public int getPreferredWidth(Rectangle value0) { return 0; // TODO } // getPreferredWidth()
10,509
public int getRowCount() { return 0; // TODO } // getRowCount()
public int getRowCount() { return 0; // TODO } // getRowCount()
10,510
public int getRowCount() { return 0; // TODO } // getRowCount()
public int getRowCount() { return 0; // TODO } // getRowCount()
10,511
public int getRowForPath(TreePath value0) { return 0; // TODO } // getRowForPath()
public int getRowForPath(TreePath value0) { return 0; // TODO } // getRowForPath()
10,512
public int getRowForPath(TreePath value0) { return 0; // TODO } // getRowForPath()
public int getRowForPath(TreePath value0) { return 0; // TODO } // getRowForPath()
10,513
public int getVisibleChildCount(TreePath value0) { return 0; // TODO } // getVisibleChildCount()
public int getVisibleChildCount(TreePath value0) { return 0; // TODO } // getVisibleChildCount()
10,514
public int getVisibleChildCount(TreePath value0) { return 0; // TODO } // getVisibleChildCount()
public int getVisibleChildCount(TreePath value0) { return 0; // TODO } // getVisibleChildCount()
10,515
public Enumeration getVisiblePathsFrom(TreePath value0) { return null; // TODO } // getVisiblePathsFrom()
public Enumeration getVisiblePathsFrom(TreePath value0) { return null; // TODO } // getVisiblePathsFrom()
10,516
public Enumeration getVisiblePathsFrom(TreePath value0) { return null; // TODO } // getVisiblePathsFrom()
public Enumeration getVisiblePathsFrom(TreePath value0) { return null; // TODO } // getVisiblePathsFrom()
10,517
public void invalidatePathBounds(TreePath value0) { // TODO } // invalidatePathBounds()
public void invalidatePathBounds(TreePath value0) { // TODO } // invalidatePathBounds()
10,518
public void invalidatePathBounds(TreePath value0) { // TODO } // invalidatePathBounds()
public void invalidatePathBounds(TreePath value0) { // TODO } // invalidatePathBounds()
10,519
public void invalidateSizes() { // TODO } // invalidateSizes()
public void invalidateSizes() { // TODO } // invalidateSizes()
10,520