bugged
stringlengths 6
599k
| fixed
stringlengths 6
40.8M
| __index_level_0__
int64 0
3.24M
|
|---|---|---|
public LongHolder(long initial_value) { value = initial_value; }
|
public LongHolder(long initial_value) { }
| 4,308
|
public StringHolder(String initial_value) { value = initial_value; }
|
public StringHolder() { value = initial_value; }
| 4,309
|
public StringHolder(String initial_value) { value = initial_value; }
|
public StringHolder(String initial_value) { }
| 4,310
|
public int hashCode() { long l = Double.doubleToLongBits(m00); l = l * 31 + Double.doubleToLongBits(m10); l = l * 31 + Double.doubleToLongBits(m01); l = l * 31 + Double.doubleToLongBits(m11); l = l * 31 + Double.doubleToLongBits(m02); l = l * 31 + Double.doubleToLongBits(m12); return (int) ((l >> 32) ^ l); }
|
public int hashCode() { long l = Double.doubleToLongBits(m00); l = l * 31 + Double.doubleToLongBits(m10); l = l * 31 + Double.doubleToLongBits(m01); l = l * 31 + Double.doubleToLongBits(m11); l = l * 31 + Double.doubleToLongBits(m02); l = l * 31 + Double.doubleToLongBits(m12); return (int) ((l >> 32) ^ l); }
| 4,311
|
public int hashCode() { long l = Double.doubleToLongBits(m00); l = l * 31 + Double.doubleToLongBits(m10); l = l * 31 + Double.doubleToLongBits(m01); l = l * 31 + Double.doubleToLongBits(m11); l = l * 31 + Double.doubleToLongBits(m02); l = l * 31 + Double.doubleToLongBits(m12); return (int) ((l >> 32) ^ l); }
|
public int hashCode() { long l = Double.doubleToLongBits(m00); l = l * 31 + Double.doubleToLongBits(m10); l = l * 31 + Double.doubleToLongBits(m01); l = l * 31 + Double.doubleToLongBits(m11); l = l * 31 + Double.doubleToLongBits(m02); l = l * 31 + Double.doubleToLongBits(m12); return (int) ((l >> 32) ^ l); }
| 4,312
|
private void checkLayout() { if (offsetsX == null || offsetsY == null || spansX == null || spansY == null) { checkRequirements(); checkTotalRequirements(); int len = target.getComponents().length; offsetsX = new int[len]; offsetsY = new int[len]; spansX = new int[len]; spansY = new int[len]; SizeRequirements.calculateAlignedPositions(target.getWidth(), xTotal, xChildren, offsetsX, spansX); SizeRequirements.calculateAlignedPositions(target.getHeight(), yTotal, yChildren, offsetsY, spansY); } }
|
private void checkLayout() { if (offsetsX == null || offsetsY == null || spansX == null || spansY == null) { checkRequirements(); checkTotalRequirements(); int len = target.getComponents().length; offsetsX = new int[len]; offsetsY = new int[len]; spansX = new int[len]; spansY = new int[len]; Insets in = target.getInsets(); int width = target.getWidth() - in.left - in.right; int height = target.getHeight() - in.top - in.bottom; SizeRequirements.calculateAlignedPositions(width, xTotal, xChildren, offsetsX, spansX); SizeRequirements.calculateAlignedPositions(target.getHeight(), yTotal, yChildren, offsetsY, spansY); } }
| 4,314
|
private void checkLayout() { if (offsetsX == null || offsetsY == null || spansX == null || spansY == null) { checkRequirements(); checkTotalRequirements(); int len = target.getComponents().length; offsetsX = new int[len]; offsetsY = new int[len]; spansX = new int[len]; spansY = new int[len]; SizeRequirements.calculateAlignedPositions(target.getWidth(), xTotal, xChildren, offsetsX, spansX); SizeRequirements.calculateAlignedPositions(target.getHeight(), yTotal, yChildren, offsetsY, spansY); } }
|
private void checkLayout() { if (offsetsX == null || offsetsY == null || spansX == null || spansY == null) { checkRequirements(); checkTotalRequirements(); int len = target.getComponents().length; offsetsX = new int[len]; offsetsY = new int[len]; spansX = new int[len]; spansY = new int[len]; SizeRequirements.calculateAlignedPositions(target.getWidth(), xTotal, xChildren, offsetsX, spansX); SizeRequirements.calculateAlignedPositions(height, yTotal, yChildren, offsetsY, spansY); } }
| 4,315
|
public IndexColorModel(int bits, int size, byte[] reds, byte[] greens, byte[] blues, int trans) { this (bits, size, reds, greens, blues, (byte[]) null); this.trans = trans; }
|
public IndexColorModel(int bits, int size, byte[] reds, byte[] greens, byte[] blues) { this (bits, size, reds, greens, blues, (byte[]) null); this.trans = trans; }
| 4,316
|
public IndexColorModel(int bits, int size, byte[] reds, byte[] greens, byte[] blues, int trans) { this (bits, size, reds, greens, blues, (byte[]) null); this.trans = trans; }
|
public IndexColorModel(int bits, int size, byte[] reds, byte[] greens, byte[] blues, int trans) { this (bits, size, reds, greens, blues, (byte[]) null); this.trans = trans; }
| 4,317
|
public static InvalidName extract(Any a) { try { return ((InvalidNameHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION(); } }
|
public static InvalidName extract(Any a) { try { return ((InvalidNameHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION(); bad.initCause(ex); bad.minor = Minor.Any; throw bad; } }
| 4,318
|
private void parseFile() throws IOException, BadLocationException { Token t1 = scanner.readToken(); if (t1.type != Token.LCURLY) throw new RTFParseException("expected left curly braces"); parseHeader(); parseDocument(); Token t2 = scanner.readToken(); if (t2.type != Token.RCURLY) throw new RTFParseException("expected right curly braces"); }
|
private void parseFile() throws IOException, BadLocationException { Token t1 = scanner.readToken(); if (t1.type != Token.LCURLY) throw new RTFParseException("expected left curly braces"); parseHeader(); parseDocument(); Token t2 = scanner.readToken(); if (t2.type != Token.RCURLY) throw new RTFParseException("expected right curly braces"); }
| 4,319
|
public MetalToggleButtonUI() { super(); focusColor = getFocusColor(); selectColor = getSelectColor(); disabledTextColor = getDisabledTextColor(); }
|
public MetalToggleButtonUI() { super(); focusColor = getFocusColor(); selectColor = getSelectColor(); disabledTextColor = getDisabledTextColor(); }
| 4,320
|
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalToggleButtonUI(); return instance; }
|
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalToggleButtonUI(); return instance; }
| 4,321
|
protected Color getDisabledTextColor() { UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".disabledText"); }
|
protected Color getDisabledTextColor() { UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".disabledText"); }
| 4,322
|
protected Color getFocusColor() { UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".focus"); }
|
protected Color getFocusColor() { UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".focus"); }
| 4,323
|
protected Color getSelectColor() { UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".select"); }
|
protected Color getSelectColor() { UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".select"); }
| 4,324
|
private void addValue(String name, String value) { Header key = new Header(name); String old = (String) super.get(key); if (old == null) { super.put(key, value); } else { super.put(key, old + ", " + value); } }
|
public void addValue(String name, String value) { Header key = new Header(name); String old = (String) super.get(key); if (old == null) { super.put(key, value); } else { super.put(key, old + ", " + value); } }
| 4,326
|
private void addValue(String name, String value) { Header key = new Header(name); String old = (String) super.get(key); if (old == null) { super.put(key, value); } else { super.put(key, old + ", " + value); } }
|
private void addValue(String name, String value) { Header key = new Header(name); String old = (String) super.get(key); if (old == null) { super.put(key, value); } else { super.put(key, old + ", " + value); } }
| 4,327
|
public String getValue(String header) { return (String) super.get(new Header(header)); }
|
public String getValue(String header) { for (int i = headers.size() - 1; i >= 0; i--) { HeaderElement e = (HeaderElement)headers.get(i); if (e.name.equalsIgnoreCase(header)) { return e.value; } } return null; }
| 4,330
|
public Object put(Object key, Object value) { return super.put(new Header((String) key), value); }
|
public void put(String name, String value) { return super.put(new Header((String) key), value); }
| 4,331
|
public Object put(Object key, Object value) { return super.put(new Header((String) key), value); }
|
public Object put(Object key, Object value) { for (int i = headers.size() - 1; i >= 0; i--) { HeaderElement e = (HeaderElement)headers.get(i); if (e.name.equalsIgnoreCase(name)) { e.value = value; return; } }
| 4,332
|
public void putAll(Map t) { for (Iterator i = t.keySet().iterator(); i.hasNext(); ) { String key = (String) i.next(); String value = (String) t.get(key); put(key, value); } }
|
public void putAll(Headers o) { for (Iterator i = t.keySet().iterator(); i.hasNext(); ) { String key = (String) i.next(); String value = (String) t.get(key); put(key, value); } }
| 4,334
|
public void putAll(Map t) { for (Iterator i = t.keySet().iterator(); i.hasNext(); ) { String key = (String) i.next(); String value = (String) t.get(key); put(key, value); } }
|
public void putAll(Map t) { for (Iterator it = o.iterator(); it.hasNext(); ) { String key = (String) i.next(); String value = (String) t.get(key); put(key, value); } }
| 4,335
|
public void putAll(Map t) { for (Iterator i = t.keySet().iterator(); i.hasNext(); ) { String key = (String) i.next(); String value = (String) t.get(key); put(key, value); } }
|
public void putAll(Map t) { for (Iterator i = t.keySet().iterator(); i.hasNext(); ) { String key = (String) i.next(); String value = (String) t.get(key); put(key, value); } }
| 4,336
|
public Object remove(Object key) { return super.remove(new Header((String) key)); }
|
public void remove(String name) { return super.remove(new Header((String) key)); }
| 4,337
|
public Object remove(Object key) { return super.remove(new Header((String) key)); }
|
public Object remove(Object key) { for (Iterator it = headers.iterator(); it.hasNext(); ) { HeaderElement e = (HeaderElement)it.next(); if (e.name.equalsIgnoreCase(name)) it.remove(); } }
| 4,338
|
private boolean canAddAxisObjToArray(AxisInterface axisToAdd) { if (axisToAdd.getAxisId() == null) { Log.error("Can't add Axis Object without axisId attribute defined"); return false; } return true; }
|
private boolean canAddAxisObjToArray(AxisInterface axisToAdd) { if (axisToAdd.getAxisId() == null) { Log.warnln("Warning: Can't add Axis Object without axisId attribute defined"); return false; } return true; }
| 4,340
|
public CacheEvent(Object source, int type) { super(source); this.eventType = type; }
|
public CacheEvent(Object source, int type) { super(source); this.eventType = type; }
| 4,341
|
public CacheEvent(Object source, int type) { super(source); this.eventType = type; }
|
public CacheEvent(Object source, int type) { super(source); this.eventType = type; }
| 4,342
|
protected LayoutManager createLayoutManager() { return new TabbedPaneLayout(); }
|
protected LayoutManager createLayoutManager() { return (tabPane.getTabLayoutPolicy() == JTabbedPane.WRAP_TAB_LAYOUT) ? new MetalTabbedPaneUI.TabbedPaneLayout() : super.createLayoutManager(); }
| 4,343
|
protected void paintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); // Paint gap if necessary. if (shouldFillGap(currentRun, tabIndex, x, y)) { g.translate(x, y); g.setColor(getColorForGap(currentRun, x, y)); g.fillRect(1, bottom - 4, 3, 5); g.fillRect(4, bottom - 1, 2, 2); g.translate(-x, -y); } g.translate(x, y); // Paint border. boolean isOcean = MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme; Color oceanSelectedBorder = UIManager.getColor("TabbedPane.borderHightlightColor"); if (isOcean && isSelected) { g.setColor(oceanSelectedBorder); } else { g.setColor(darkShadow); } // Slant. g.drawLine(1, bottom - 5, 6, bottom); // Bottom. g.drawLine(6, bottom, right, bottom); // Right. int lastIndex = lastTabInRun(tabCount, currentRun); if (tabIndex == lastIndex) { g.drawLine(right, 0, right, bottom); } // Left. if (isOcean && isSelected) { g.drawLine(0, 0, 0, bottom - 5); if ((currentRun == 0 && tabIndex != 0) || (currentRun > 0 && tabIndex != tabRuns[currentRun - 1])) { g.setColor(darkShadow); g.drawLine(0, bottom - 5, 0, bottom); } } else { if (isOcean && tabIndex == tabPane.getSelectedIndex() + 1) { g.setColor(oceanSelectedBorder); } if (tabIndex != tabRuns[runCount - 1]) { g.drawLine(0, 0, 0, bottom); } else { g.drawLine(0, 0, 0, bottom - 6); } } // Paint highlight. g.setColor(isSelected ? selectHighlight : highlight); // Slant. g.drawLine(1, bottom - 6, 6, bottom - 1); // Left. g.drawLine(1, 0, 1, bottom - 6); int firstIndex = tabRuns[currentRun]; if (tabIndex == firstIndex && tabIndex != tabRuns[runCount - 1]) { if (tabPane.getSelectedIndex() == tabRuns[currentRun + 1]) { g.setColor(selectHighlight); } else { g.setColor(highlight); } g.drawLine(1, bottom - 4, 1, bottom); } g.translate(-x, -y); }
|
protected void paintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); // Paint gap if necessary. if (shouldFillGap(currentRun, tabIndex, x, y)) { g.translate(x, y); g.setColor(getColorForGap(currentRun, x, y)); g.fillRect(1, bottom - 4, 3, 5); g.fillRect(4, bottom - 1, 2, 2); g.translate(-x, -y); } g.translate(x, y); // Paint border. boolean isOcean = MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme; Color oceanSelectedBorder = UIManager.getColor("TabbedPane.borderHightlightColor"); if (isOcean && isSelected) { g.setColor(oceanSelectedBorder); } else { g.setColor(darkShadow); } // Slant. g.drawLine(1, bottom - 5, 6, bottom); // Bottom. g.drawLine(6, bottom, right, bottom); // Right. int lastIndex = lastTabInRun(tabCount, currentRun); if (tabIndex == lastIndex) { g.drawLine(right, 0, right, bottom); } // Left. if (isOcean && isSelected) { g.drawLine(0, 0, 0, bottom - 5); if ((currentRun == 0 && tabIndex != 0) || (currentRun > 0 && tabIndex != tabRuns[currentRun - 1])) { g.setColor(darkShadow); g.drawLine(0, bottom - 5, 0, bottom); } } else { if (isOcean && tabIndex == tabPane.getSelectedIndex() + 1) { g.setColor(oceanSelectedBorder); } if (tabIndex != tabRuns[runCount - 1]) { g.drawLine(0, 0, 0, bottom); } else { g.drawLine(0, 0, 0, bottom - 6); } } // Paint highlight. g.setColor(isSelected ? selectHighlight : highlight); // Slant. g.drawLine(1, bottom - 6, 6, bottom - 1); // Left. g.drawLine(1, 0, 1, bottom - 6); int firstIndex = tabRuns[currentRun]; if (tabIndex == firstIndex && tabIndex != tabRuns[runCount - 1]) { if (tabPane.getSelectedIndex() == tabRuns[currentRun + 1]) { g.setColor(selectHighlight); } else { g.setColor(highlight); } g.drawLine(1, bottom - 4, 1, bottom); } g.translate(-x, -y); }
| 4,344
|
protected void paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { boolean isOcean = MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme; Color oceanSelectedBorder = UIManager.getColor("TabbedPane.borderHightlightColor"); Rectangle rect = selectedIndex < 0 ? null : getTabBounds(selectedIndex, calcRect); if (isOcean) { g.setColor(oceanSelectedBorder); } else { g.setColor(selectHighlight); } // If tabs are not placed on LEFT, or if the selected tab is not in the // run directly left to the content or the selected tab is not visible, // then we draw an unbroken line. if (tabPlacement != LEFT || selectedIndex < 0 || rect.x + rect.width + 1 < x || rect.y < y || rect.y > y + h) { g.drawLine(x, y + 1, x, y + h - 2); if (isOcean && tabPlacement == LEFT) { g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x, y + 1, x, y + h - 2); } } else { g.drawLine(x, y, x, rect.y + 1); if (rect.y + rect.height < y + h - 2) { g.drawLine(x, rect.y + rect.height + 1, x, y + h + 2); } if (isOcean) { g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 1, y + 1, x + 1, rect.y + 1); if (rect.y + rect.height < y + h - 2) { g.drawLine(x + y, rect.y + rect.height + 1, x + 1, y + h + 2); } } } }
|
protected void paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { boolean isOcean = MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme; Color oceanSelectedBorder = UIManager.getColor("TabbedPane.borderHightlightColor"); Rectangle rect = selectedIndex < 0 ? null : getTabBounds(selectedIndex, calcRect); if (isOcean) { g.setColor(oceanSelectedBorder); } else { g.setColor(selectHighlight); } // If tabs are not placed on LEFT, or if the selected tab is not in the // run directly left to the content or the selected tab is not visible, // then we draw an unbroken line. if (tabPlacement != LEFT || selectedIndex < 0 || rect.x + rect.width + 1 < x || rect.y < y || rect.y > y + h) { g.drawLine(x, y + 1, x, y + h - 2); if (isOcean && tabPlacement == LEFT) { g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x, y + 1, x, y + h - 2); } } else { g.drawLine(x, y, x, rect.y + 1); if (rect.y + rect.height < y + h - 2) { g.drawLine(x, rect.y + rect.height + 1, x, y + h + 2); } if (isOcean) { g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 1, y + 1, x + 1, rect.y + 1); if (rect.y + rect.height < y + h - 2) { g.drawLine(x + 1, rect.y + rect.height + 1, x + 1, y + h + 2); } } } }
| 4,345
|
protected void paintLeftTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { g.translate(x, y); int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int firstIndex = tabRuns[currentRun]; // Paint the part of the above tab. if (tabIndex != firstIndex && tabIndex > 0 && tabsOpaque) { Color c; if (tabPane.getSelectedIndex() == tabIndex - 1) c = selectColor; else c = getUnselectedBackground(tabIndex - 1); g.setColor(c); g.fillRect(2, 0, 4, 3); g.drawLine(2, 3, 2, 3); } // Paint the highlight. boolean isOcean = MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme; if (isOcean) { g.setColor(isSelected ? selectHighlight : MetalLookAndFeel.getWhite()); } else { g.setColor(isSelected ? selectHighlight : highlight); } // Slant. g.drawLine(1, 6, 6, 1); // Left. g.drawLine(1, 6, 1, bottom); // Top. g.drawLine(6, 1, right, 1); if (tabIndex != firstIndex) { if (isOcean) { g.setColor(MetalLookAndFeel.getWhite()); } g.drawLine(1, 0, 1, 4); } // Paint border. Color oceanSelectedBorder = UIManager.getColor("TabbedPane.borderHightlightColor"); if (isOcean && isSelected) { g.setColor(oceanSelectedBorder); } else { g.setColor(darkShadow); } // Slant. g.drawLine(1, 5, 6, 0); // Top. g.drawLine(6, 0, right, 0); // Bottom. int lastIndex = lastTabInRun(tabCount, currentRun); if (tabIndex == lastIndex) { g.drawLine(0, bottom, right, bottom); } // Left. if (isOcean) { if (tabPane.getSelectedIndex() == tabIndex - 1) { g.drawLine(0, 5, 0, bottom); g.setColor(oceanSelectedBorder); g.drawLine(0, 0, 0, 5); } else if (isSelected) { g.drawLine(0, 5, 0, bottom); if (tabIndex != 0) { g.setColor(darkShadow); g.drawLine(0, 0, 0, 5); } } else if (tabIndex != firstIndex) { g.drawLine(0, 0, 0, bottom); } else { g.drawLine(0, 6, 0, bottom); } } else { if (tabIndex != firstIndex) { g.drawLine(0, 0, 0, bottom); } else { g.drawLine(0, 6, 0, bottom); } } g.translate(-x, -y); }
|
protectedvoidpaintLeftTabBorder(inttabIndex,Graphicsg,intx,inty,intw,inth,intbtm,intrght,booleanisSelected){g.translate(x,y);intbottom=h-1;intright=w-1;inttabCount=tabPane.getTabCount();intcurrentRun=getRunForTab(tabCount,tabIndex);intfirstIndex=tabRuns[currentRun];//Paintthepartoftheabovetab.if(tabIndex!=firstIndex&&tabIndex>0&&tabsOpaque){Colorc;if(tabPane.getSelectedIndex()==tabIndex-1)c=selectColor;elsec=getUnselectedBackground(tabIndex-1);g.setColor(c);g.fillRect(2,0,4,3);g.drawLine(2,3,2,3);}//Paintthehighlight.booleanisOcean=MetalLookAndFeel.getCurrentTheme()instanceofOceanTheme;if(isOcean){g.setColor(isSelected?selectHighlight:MetalLookAndFeel.getWhite());}else{g.setColor(isSelected?selectHighlight:highlight);}//Slant.g.drawLine(1,6,6,1);//Left.g.drawLine(1,6,1,bottom);//Top.g.drawLine(6,1,right,1);if(tabIndex!=firstIndex){if(isOcean){g.setColor(MetalLookAndFeel.getWhite());}g.drawLine(1,0,1,4);}//Paintborder.ColoroceanSelectedBorder=UIManager.getColor("TabbedPane.borderHightlightColor");if(isOcean&&isSelected){g.setColor(oceanSelectedBorder);}else{g.setColor(darkShadow);}//Slant.g.drawLine(1,5,6,0);//Top.g.drawLine(6,0,right,0);//Bottom.intlastIndex=lastTabInRun(tabCount,currentRun);if(tabIndex==lastIndex){g.drawLine(0,bottom,right,bottom);}//Left.if(isOcean){if(tabPane.getSelectedIndex()==tabIndex-1){g.drawLine(0,5,0,bottom);g.setColor(oceanSelectedBorder);g.drawLine(0,0,0,5);}elseif(isSelected){g.drawLine(0,5,0,bottom);if(tabIndex!=0){g.setColor(darkShadow);g.drawLine(0,0,0,5);}}elseif(tabIndex!=firstIndex){g.drawLine(0,0,0,bottom);}else{g.drawLine(0,6,0,bottom);}}else{if(tabIndex!=firstIndex){g.drawLine(0,0,0,bottom);}else{g.drawLine(0,6,0,bottom);}}g.translate(-x,-y);}
| 4,346
|
protected void paintLeftTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { g.translate(x, y); int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int firstIndex = tabRuns[currentRun]; // Paint the part of the above tab. if (tabIndex != firstIndex && tabIndex > 0 && tabsOpaque) { Color c; if (tabPane.getSelectedIndex() == tabIndex - 1) c = selectColor; else c = getUnselectedBackground(tabIndex - 1); g.setColor(c); g.fillRect(2, 0, 4, 3); g.drawLine(2, 3, 2, 3); } // Paint the highlight. boolean isOcean = MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme; if (isOcean) { g.setColor(isSelected ? selectHighlight : MetalLookAndFeel.getWhite()); } else { g.setColor(isSelected ? selectHighlight : highlight); } // Slant. g.drawLine(1, 6, 6, 1); // Left. g.drawLine(1, 6, 1, bottom); // Top. g.drawLine(6, 1, right, 1); if (tabIndex != firstIndex) { if (isOcean) { g.setColor(MetalLookAndFeel.getWhite()); } g.drawLine(1, 0, 1, 4); } // Paint border. Color oceanSelectedBorder = UIManager.getColor("TabbedPane.borderHightlightColor"); if (isOcean && isSelected) { g.setColor(oceanSelectedBorder); } else { g.setColor(darkShadow); } // Slant. g.drawLine(1, 5, 6, 0); // Top. g.drawLine(6, 0, right, 0); // Bottom. int lastIndex = lastTabInRun(tabCount, currentRun); if (tabIndex == lastIndex) { g.drawLine(0, bottom, right, bottom); } // Left. if (isOcean) { if (tabPane.getSelectedIndex() == tabIndex - 1) { g.drawLine(0, 5, 0, bottom); g.setColor(oceanSelectedBorder); g.drawLine(0, 0, 0, 5); } else if (isSelected) { g.drawLine(0, 5, 0, bottom); if (tabIndex != 0) { g.setColor(darkShadow); g.drawLine(0, 0, 0, 5); } } else if (tabIndex != firstIndex) { g.drawLine(0, 0, 0, bottom); } else { g.drawLine(0, 6, 0, bottom); } } else { if (tabIndex != firstIndex) { g.drawLine(0, 0, 0, bottom); } else { g.drawLine(0, 6, 0, bottom); } } g.translate(-x, -y); }
|
protected void paintLeftTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { g.translate(x, y); int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int firstIndex = tabRuns[currentRun]; // Paint the part of the above tab. if (tabIndex != firstIndex && tabIndex > 0 && tabsOpaque) { Color c; if (tabPane.getSelectedIndex() == tabIndex - 1) c = selectColor; else c = getUnselectedBackground(tabIndex - 1); g.setColor(c); g.fillRect(2, 0, 4, 3); g.drawLine(2, 3, 2, 3); } // Paint the highlight. boolean isOcean = MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme; if (isOcean) { g.setColor(isSelected ? selectHighlight : MetalLookAndFeel.getWhite()); } else { g.setColor(isSelected ? selectHighlight : highlight); } // Slant. g.drawLine(1, 6, 6, 1); // Left. g.drawLine(1, 6, 1, bottom); // Top. g.drawLine(6, 1, right, 1); if (tabIndex != firstIndex) { if (isOcean) { g.setColor(MetalLookAndFeel.getWhite()); } g.drawLine(1, 0, 1, 4); } // Paint border. Color oceanSelectedBorder = UIManager.getColor("TabbedPane.borderHightlightColor"); if (isOcean && isSelected) { g.setColor(oceanSelectedBorder); } else { g.setColor(darkShadow); } // Slant. g.drawLine(1, 5, 6, 0); // Top. g.drawLine(6, 0, right, 0); // Bottom. int lastIndex = lastTabInRun(tabCount, currentRun); if (tabIndex == lastIndex) { g.drawLine(0, bottom, right, bottom); } // Left. if (isOcean) { if (tabPane.getSelectedIndex() == tabIndex - 1) { g.drawLine(0, 6, 0, bottom); if (tabIndex != firstIndex) { g.setColor(oceanSelectedBorder); g.drawLine(0, 0, 0, 5); } else if (isSelected) { g.drawLine(0, 6, 0, bottom); if (tabIndex != firstIndex) { if (tabIndex != 0) { g.setColor(darkShadow); g.drawLine(0, 0, 0, 5); } } else if (tabIndex != firstIndex) { g.drawLine(0, 0, 0, bottom); } else { g.drawLine(0, 6, 0, bottom); } } else { if (tabIndex != firstIndex) { g.drawLine(0, 0, 0, bottom); } else { g.drawLine(0, 6, 0, bottom); } } g.translate(-x, -y); }
| 4,347
|
protected void paintLeftTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { g.translate(x, y); int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int firstIndex = tabRuns[currentRun]; // Paint the part of the above tab. if (tabIndex != firstIndex && tabIndex > 0 && tabsOpaque) { Color c; if (tabPane.getSelectedIndex() == tabIndex - 1) c = selectColor; else c = getUnselectedBackground(tabIndex - 1); g.setColor(c); g.fillRect(2, 0, 4, 3); g.drawLine(2, 3, 2, 3); } // Paint the highlight. boolean isOcean = MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme; if (isOcean) { g.setColor(isSelected ? selectHighlight : MetalLookAndFeel.getWhite()); } else { g.setColor(isSelected ? selectHighlight : highlight); } // Slant. g.drawLine(1, 6, 6, 1); // Left. g.drawLine(1, 6, 1, bottom); // Top. g.drawLine(6, 1, right, 1); if (tabIndex != firstIndex) { if (isOcean) { g.setColor(MetalLookAndFeel.getWhite()); } g.drawLine(1, 0, 1, 4); } // Paint border. Color oceanSelectedBorder = UIManager.getColor("TabbedPane.borderHightlightColor"); if (isOcean && isSelected) { g.setColor(oceanSelectedBorder); } else { g.setColor(darkShadow); } // Slant. g.drawLine(1, 5, 6, 0); // Top. g.drawLine(6, 0, right, 0); // Bottom. int lastIndex = lastTabInRun(tabCount, currentRun); if (tabIndex == lastIndex) { g.drawLine(0, bottom, right, bottom); } // Left. if (isOcean) { if (tabPane.getSelectedIndex() == tabIndex - 1) { g.drawLine(0, 5, 0, bottom); g.setColor(oceanSelectedBorder); g.drawLine(0, 0, 0, 5); } else if (isSelected) { g.drawLine(0, 5, 0, bottom); if (tabIndex != 0) { g.setColor(darkShadow); g.drawLine(0, 0, 0, 5); } } else if (tabIndex != firstIndex) { g.drawLine(0, 0, 0, bottom); } else { g.drawLine(0, 6, 0, bottom); } } else { if (tabIndex != firstIndex) { g.drawLine(0, 0, 0, bottom); } else { g.drawLine(0, 6, 0, bottom); } } g.translate(-x, -y); }
|
protected void paintLeftTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { g.translate(x, y); int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int firstIndex = tabRuns[currentRun]; // Paint the part of the above tab. if (tabIndex != firstIndex && tabIndex > 0 && tabsOpaque) { Color c; if (tabPane.getSelectedIndex() == tabIndex - 1) c = selectColor; else c = getUnselectedBackground(tabIndex - 1); g.setColor(c); g.fillRect(2, 0, 4, 3); g.drawLine(2, 3, 2, 3); } // Paint the highlight. boolean isOcean = MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme; if (isOcean) { g.setColor(isSelected ? selectHighlight : MetalLookAndFeel.getWhite()); } else { g.setColor(isSelected ? selectHighlight : highlight); } // Slant. g.drawLine(1, 6, 6, 1); // Left. g.drawLine(1, 6, 1, bottom); // Top. g.drawLine(6, 1, right, 1); if (tabIndex != firstIndex) { if (isOcean) { g.setColor(MetalLookAndFeel.getWhite()); } g.drawLine(1, 0, 1, 4); } // Paint border. Color oceanSelectedBorder = UIManager.getColor("TabbedPane.borderHightlightColor"); if (isOcean && isSelected) { g.setColor(oceanSelectedBorder); } else { g.setColor(darkShadow); } // Slant. g.drawLine(1, 5, 6, 0); // Top. g.drawLine(6, 0, right, 0); // Bottom. int lastIndex = lastTabInRun(tabCount, currentRun); if (tabIndex == lastIndex) { g.drawLine(0, bottom, right, bottom); } // Left. if (isOcean) { if (tabPane.getSelectedIndex() == tabIndex - 1) { g.drawLine(0, 5, 0, bottom); g.setColor(oceanSelectedBorder); g.drawLine(0, 0, 0, 5); } else if (isSelected) { g.drawLine(0, 5, 0, bottom); if (tabIndex != firstIndex) { g.setColor(darkShadow); g.drawLine(0, 0, 0, 5); } } else if (tabIndex != firstIndex) { g.drawLine(0, 0, 0, bottom); } else { g.drawLine(0, 6, 0, bottom); } } else { if (tabIndex != firstIndex) { g.drawLine(0, 0, 0, bottom); } else { g.drawLine(0, 6, 0, bottom); } } g.translate(-x, -y); }
| 4,348
|
protected void paintRightTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { g.translate(x, y); int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int firstIndex = tabRuns[currentRun]; // Paint part of the above tab. if (tabIndex != firstIndex && tabIndex > 0 && tabsOpaque) { Color c; if (tabPane.getSelectedIndex() == tabIndex - 1) c = UIManager.getColor("TabbedPane.tabAreaBackground"); else c = getUnselectedBackground(tabIndex - 1); g.fillRect(right - 5, 0, 5, 3); g.fillRect(right - 2, 3, 2, 2); } // Paint highlight. g.setColor(isSelected ? selectHighlight : highlight); // Slant. g.drawLine(right - 6, 1, right - 1, 6); // Top. g.drawLine(0, 1, right - 6, 1); // Left. if (! isSelected) { g.drawLine(0, 1, 0, bottom); } // Paint border. boolean isOcean = MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme; Color oceanSelectedBorder = UIManager.getColor("TabbedPane.borderHightlightColor"); if (isOcean && isSelected) { g.setColor(oceanSelectedBorder); } else { g.setColor(darkShadow); } // Bottom. int lastIndex = lastTabInRun(tabCount, currentRun); if (tabIndex == lastIndex) { g.drawLine(0, bottom, right, bottom); } // Slant. if (isOcean && tabPane.getSelectedIndex() == tabIndex - 1) { g.setColor(oceanSelectedBorder); } g.drawLine(right - 6, 0, right, 6); // Top. g.drawLine(0, 0, right - 6, 0); // Right. if (isOcean && isSelected) { g.drawLine(right, 6, right, bottom); if (tabIndex != firstIndex) { g.setColor(darkShadow); g.drawLine(right, 0, right, 5); } } else if (isOcean && tabPane.getSelectedIndex() == tabIndex - 1) { g.setColor(oceanSelectedBorder); g.drawLine(right, 0, right, 6); g.setColor(darkShadow); g.drawLine(right, 6, right, bottom); } else if (tabIndex != firstIndex) { g.drawLine(right, 0, right, bottom); } else { g.drawLine(right, 6, right, bottom); } g.translate(-x, -y); }
|
protected void paintRightTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { g.translate(x, y); int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int firstIndex = tabRuns[currentRun]; // Paint part of the above tab. if (tabIndex != firstIndex && tabIndex > 0 && tabsOpaque) { Color c; if (tabPane.getSelectedIndex() == tabIndex - 1) c = selectColor; else c = getUnselectedBackground(tabIndex - 1); g.fillRect(right - 5, 0, 5, 3); g.fillRect(right - 2, 3, 2, 2); } // Paint highlight. g.setColor(isSelected ? selectHighlight : highlight); // Slant. g.drawLine(right - 6, 1, right - 1, 6); // Top. g.drawLine(0, 1, right - 6, 1); // Left. if (! isSelected) { g.drawLine(0, 1, 0, bottom); } // Paint border. boolean isOcean = MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme; Color oceanSelectedBorder = UIManager.getColor("TabbedPane.borderHightlightColor"); if (isOcean && isSelected) { g.setColor(oceanSelectedBorder); } else { g.setColor(darkShadow); } // Bottom. int lastIndex = lastTabInRun(tabCount, currentRun); if (tabIndex == lastIndex) { g.drawLine(0, bottom, right, bottom); } // Slant. if (isOcean && tabPane.getSelectedIndex() == tabIndex - 1) { g.setColor(oceanSelectedBorder); } g.drawLine(right - 6, 0, right, 6); // Top. g.drawLine(0, 0, right - 6, 0); // Right. if (isOcean && isSelected) { g.drawLine(right, 6, right, bottom); if (tabIndex != firstIndex) { g.setColor(darkShadow); g.drawLine(right, 0, right, 5); } } else if (isOcean && tabPane.getSelectedIndex() == tabIndex - 1) { g.setColor(oceanSelectedBorder); g.drawLine(right, 0, right, 6); g.setColor(darkShadow); g.drawLine(right, 6, right, bottom); } else if (tabIndex != firstIndex) { g.drawLine(right, 0, right, bottom); } else { g.drawLine(right, 6, right, bottom); } g.translate(-x, -y); }
| 4,349
|
protected void paintRightTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { g.translate(x, y); int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int firstIndex = tabRuns[currentRun]; // Paint part of the above tab. if (tabIndex != firstIndex && tabIndex > 0 && tabsOpaque) { Color c; if (tabPane.getSelectedIndex() == tabIndex - 1) c = UIManager.getColor("TabbedPane.tabAreaBackground"); else c = getUnselectedBackground(tabIndex - 1); g.fillRect(right - 5, 0, 5, 3); g.fillRect(right - 2, 3, 2, 2); } // Paint highlight. g.setColor(isSelected ? selectHighlight : highlight); // Slant. g.drawLine(right - 6, 1, right - 1, 6); // Top. g.drawLine(0, 1, right - 6, 1); // Left. if (! isSelected) { g.drawLine(0, 1, 0, bottom); } // Paint border. boolean isOcean = MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme; Color oceanSelectedBorder = UIManager.getColor("TabbedPane.borderHightlightColor"); if (isOcean && isSelected) { g.setColor(oceanSelectedBorder); } else { g.setColor(darkShadow); } // Bottom. int lastIndex = lastTabInRun(tabCount, currentRun); if (tabIndex == lastIndex) { g.drawLine(0, bottom, right, bottom); } // Slant. if (isOcean && tabPane.getSelectedIndex() == tabIndex - 1) { g.setColor(oceanSelectedBorder); } g.drawLine(right - 6, 0, right, 6); // Top. g.drawLine(0, 0, right - 6, 0); // Right. if (isOcean && isSelected) { g.drawLine(right, 6, right, bottom); if (tabIndex != firstIndex) { g.setColor(darkShadow); g.drawLine(right, 0, right, 5); } } else if (isOcean && tabPane.getSelectedIndex() == tabIndex - 1) { g.setColor(oceanSelectedBorder); g.drawLine(right, 0, right, 6); g.setColor(darkShadow); g.drawLine(right, 6, right, bottom); } else if (tabIndex != firstIndex) { g.drawLine(right, 0, right, bottom); } else { g.drawLine(right, 6, right, bottom); } g.translate(-x, -y); }
|
protected void paintRightTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { g.translate(x, y); int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int firstIndex = tabRuns[currentRun]; // Paint part of the above tab. if (tabIndex != firstIndex && tabIndex > 0 && tabsOpaque) { Color c; if (tabPane.getSelectedIndex() == tabIndex - 1) c = UIManager.getColor("TabbedPane.tabAreaBackground"); else c = getUnselectedBackground(tabIndex - 1); g.fillRect(right - 5, 0, 5, 3); g.fillRect(right - 2, 3, 2, 2); } // Paint highlight. g.setColor(isSelected ? selectHighlight : highlight); // Slant. g.drawLine(right - 6, 1, right - 1, 6); // Top. g.drawLine(0, 1, right - 6, 1); // Left. if (! isSelected) { g.drawLine(0, 1, 0, bottom); } // Paint border. boolean isOcean = MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme; Color oceanSelectedBorder = UIManager.getColor("TabbedPane.borderHightlightColor"); if (isOcean && isSelected) { g.setColor(oceanSelectedBorder); } else { g.setColor(darkShadow); } // Bottom. int lastIndex = lastTabInRun(tabCount, currentRun); if (tabIndex == lastIndex) { g.drawLine(0, bottom, right, bottom); } // Slant. if (isOcean && tabPane.getSelectedIndex() == tabIndex - 1) { g.setColor(oceanSelectedBorder); } g.drawLine(right - 6, 0, right, 6); // Top. g.drawLine(0, 0, right - 6, 0); // Right. if (isOcean && isSelected) { g.drawLine(right, 7, right, bottom); if (tabIndex != firstIndex) { g.setColor(darkShadow); g.drawLine(right, 0, right, 5); } } else if (isOcean && tabPane.getSelectedIndex() == tabIndex - 1) { g.setColor(oceanSelectedBorder); g.drawLine(right, 0, right, 6); g.setColor(darkShadow); g.drawLine(right, 7, right, bottom); } else if (tabIndex != firstIndex) { g.drawLine(right, 0, right, bottom); } else { g.drawLine(right, 7, right, bottom); } g.translate(-x, -y); }
| 4,350
|
public FFDTableModel() { super(); }
|
public FFDTableModel() { super(); }
| 4,351
|
public FFDTableModel() { super(); }
|
public FFDTableModel() { super(); }
| 4,352
|
public Class getColumnClass(int col) { return getValueAt(0,col).getClass(); }
|
public Class getColumnClass(int col) { return getValueAt(0, col).getClass(); }
| 4,353
|
public Class getColumnClass(int col) { return getValueAt(0,col).getClass(); }
|
public Class getColumnClass(int col) { return getValueAt(0,col).getClass(); }
| 4,354
|
public int getColumnCount() { return cols.length; }
|
public int getColumnCount() { return cols.length; }
| 4,355
|
public String getColumnName(int col) { return cols[col]; }
|
public String getColumnName(int col) { return cols[col]; }
| 4,356
|
public int getRowCount() { return ftpProtocol.getNumberOfFields(); }
|
public int getRowCount() { return ftpProtocol.getNumberOfFields(); }
| 4,357
|
public Object getValueAt(int row, int col) { if (col == 0) { return new Boolean(ftpProtocol.isFieldSelected(row)); } if (col == 1) return ftpProtocol.getFieldName(row); return null; }
|
public Object getValueAt(int row, int col) { if (col == 0) { return new Boolean(ftpProtocol.isFieldSelected(row)); } if (col == 1) return ftpProtocol.getFieldName(row); return null; }
| 4,358
|
public Object getValueAt(int row, int col) { if (col == 0) { return new Boolean(ftpProtocol.isFieldSelected(row)); } if (col == 1) return ftpProtocol.getFieldName(row); return null; }
|
public Object getValueAt(int row, int col) { if (col == 0) { return new Boolean(ftpProtocol.isFieldSelected(row)); } if (col == 1) return ftpProtocol.getFieldName(row); return null; }
| 4,359
|
public Object getValueAt(int row, int col) { if (col == 0) { return new Boolean(ftpProtocol.isFieldSelected(row)); } if (col == 1) return ftpProtocol.getFieldName(row); return null; }
|
public Object getValueAt(int row, int col) { if (col == 0) { return new Boolean(ftpProtocol.isFieldSelected(row)); } if (col == 1) return ftpProtocol.getFieldName(row); return null; }
| 4,360
|
public Object getValueAt(int row, int col) { if (col == 0) { return new Boolean(ftpProtocol.isFieldSelected(row)); } if (col == 1) return ftpProtocol.getFieldName(row); return null; }
|
public Object getValueAt(int row, int col) { if (col == 0) { return new Boolean(ftpProtocol.isFieldSelected(row)); } if (col == 1) return ftpProtocol.getFieldName(row); return null; }
| 4,361
|
public Object getValueAt(int row, int col) { if (col == 0) { return new Boolean(ftpProtocol.isFieldSelected(row)); } if (col == 1) return ftpProtocol.getFieldName(row); return null; }
|
public Object getValueAt(int row, int col) { if (col == 0) { return new Boolean(ftpProtocol.isFieldSelected(row)); } if (col == 1) return ftpProtocol.getFieldName(row); return null; }
| 4,362
|
public boolean isCellEditable(int row,int col) { if (col == 0) return true; else return false; }
|
public boolean isCellEditable(int row,int col) { if (col == 0) return true; else return false; }
| 4,363
|
public boolean isCellEditable(int row,int col) { if (col == 0) return true; else return false; }
|
public boolean isCellEditable(int row,int col) { if (col == 0) return true; else return false; }
| 4,364
|
public void setValueAt(Object value, int row, int col) { fireTableCellUpdated(row,col); ftpProtocol.setFieldSelected(row,((Boolean)value).booleanValue()); }
|
public void setValueAt(Object value, int row, int col) { fireTableCellUpdated(row,col); ftpProtocol.setFieldSelected(row,((Boolean)value).booleanValue()); }
| 4,365
|
public void setValueAt(Object value, int row, int col) { fireTableCellUpdated(row,col); ftpProtocol.setFieldSelected(row,((Boolean)value).booleanValue()); }
|
public void setValueAt(Object value, int row, int col) { fireTableCellUpdated(row,col); ftpProtocol.setFieldSelected(row,((Boolean)value).booleanValue()); }
| 4,366
|
ProgressOptionPane(Object messageList) { super(messageList, JOptionPane.INFORMATION_MESSAGE, JOptionPane.DEFAULT_OPTION, null, new Object[] {UIManager.getString("OptionPane.cancelButtonText")}, null); setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); }
|
ProgressOptionPane(Object messageList) { super(messageList, JOptionPane.INFORMATION_MESSAGE, JOptionPane.DEFAULT_OPTION, null, new Object[] {UIManager.getString("OptionPane.cancelButtonText")}, null); setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); }
| 4,367
|
ProgressOptionPane(Object messageList) { super(messageList, JOptionPane.INFORMATION_MESSAGE, JOptionPane.DEFAULT_OPTION, null, new Object[] {UIManager.getString("OptionPane.cancelButtonText")}, null); setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); }
|
ProgressOptionPane(Object messageList) { super(messageList, JOptionPane.INFORMATION_MESSAGE, JOptionPane.DEFAULT_OPTION, null, new Object[] {UIManager.getString("OptionPane.cancelButtonText")}, null); setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); }
| 4,368
|
public JDialog createDialog(Component parentComponent, String title) { Frame frame = JOptionPane.getFrameForComponent(parentComponent); final JDialog dialog = new JDialog(frame, title, false); Container contentPane = dialog.getContentPane(); contentPane.setLayout(new BorderLayout()); contentPane.add(this, BorderLayout.CENTER); dialog.pack(); dialog.setLocationRelativeTo(parentComponent); dialog.addWindowListener(new WindowAdapter() { boolean gotFocus = false; public void windowClosing(WindowEvent we) { setValue(null); } public void windowActivated(WindowEvent we) { // Once window gets focus, set initial focus if (!gotFocus) { selectInitialValue(); gotFocus = true; } } }); addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if(dialog.isVisible() && event.getSource() == ProgressOptionPane.this && (event.getPropertyName().equals(VALUE_PROPERTY) || event.getPropertyName().equals(INPUT_VALUE_PROPERTY))){ ftpProtocol.setAborted(); dialog.setVisible(false); dialog.dispose(); } } }); return dialog; }
|
public JDialog createDialog(Component parentComponent, String title) { Frame frame = JOptionPane.getFrameForComponent(parentComponent); final JDialog dialog = new JDialog(frame, title, false); Container contentPane = dialog.getContentPane(); contentPane.setLayout(new BorderLayout()); contentPane.add(this, BorderLayout.CENTER); dialog.pack(); dialog.setLocationRelativeTo(parentComponent); dialog.addWindowListener(new WindowAdapter() { boolean gotFocus = false; public void windowClosing(WindowEvent we) { setValue(null); } public void windowActivated(WindowEvent we) { // Once window gets focus, set initial focus if (!gotFocus) { selectInitialValue(); gotFocus = true; } } }); addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if(dialog.isVisible() && event.getSource() == ProgressOptionPane.this && (event.getPropertyName().equals(VALUE_PROPERTY) || event.getPropertyName().equals(INPUT_VALUE_PROPERTY))){ ftpProtocol.setAborted(); dialog.setVisible(false); dialog.dispose(); } } }); return dialog; }
| 4,369
|
public JDialog createDialog(Component parentComponent, String title) { Frame frame = JOptionPane.getFrameForComponent(parentComponent); final JDialog dialog = new JDialog(frame, title, false); Container contentPane = dialog.getContentPane(); contentPane.setLayout(new BorderLayout()); contentPane.add(this, BorderLayout.CENTER); dialog.pack(); dialog.setLocationRelativeTo(parentComponent); dialog.addWindowListener(new WindowAdapter() { boolean gotFocus = false; public void windowClosing(WindowEvent we) { setValue(null); } public void windowActivated(WindowEvent we) { // Once window gets focus, set initial focus if (!gotFocus) { selectInitialValue(); gotFocus = true; } } }); addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if(dialog.isVisible() && event.getSource() == ProgressOptionPane.this && (event.getPropertyName().equals(VALUE_PROPERTY) || event.getPropertyName().equals(INPUT_VALUE_PROPERTY))){ ftpProtocol.setAborted(); dialog.setVisible(false); dialog.dispose(); } } }); return dialog; }
|
public JDialog createDialog(Component parentComponent, String title) { Frame frame = JOptionPane.getFrameForComponent(parentComponent); final JDialog dialog = new JDialog(frame, title, false); Container contentPane = dialog.getContentPane(); contentPane.setLayout(new BorderLayout()); contentPane.add(this, BorderLayout.CENTER); dialog.pack(); dialog.setLocationRelativeTo(parentComponent); dialog.addWindowListener(new WindowAdapter() { boolean gotFocus = false; public void windowClosing(WindowEvent we) { setValue(null); } public void windowActivated(WindowEvent we) { // Once window gets focus, set initial focus if (!gotFocus) { selectInitialValue(); gotFocus = true; } } }); addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if(dialog.isVisible() && event.getSource() == ProgressOptionPane.this && (event.getPropertyName().equals(VALUE_PROPERTY) || event.getPropertyName().equals(INPUT_VALUE_PROPERTY))){ ftpProtocol.setAborted(); dialog.setVisible(false); dialog.dispose(); } } }); return dialog; }
| 4,370
|
public JDialog createDialog(Component parentComponent, String title) { Frame frame = JOptionPane.getFrameForComponent(parentComponent); final JDialog dialog = new JDialog(frame, title, false); Container contentPane = dialog.getContentPane(); contentPane.setLayout(new BorderLayout()); contentPane.add(this, BorderLayout.CENTER); dialog.pack(); dialog.setLocationRelativeTo(parentComponent); dialog.addWindowListener(new WindowAdapter() { boolean gotFocus = false; public void windowClosing(WindowEvent we) { setValue(null); } public void windowActivated(WindowEvent we) { // Once window gets focus, set initial focus if (!gotFocus) { selectInitialValue(); gotFocus = true; } } }); addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if(dialog.isVisible() && event.getSource() == ProgressOptionPane.this && (event.getPropertyName().equals(VALUE_PROPERTY) || event.getPropertyName().equals(INPUT_VALUE_PROPERTY))){ ftpProtocol.setAborted(); dialog.setVisible(false); dialog.dispose(); } } }); return dialog; }
|
public JDialog createDialog(Component parentComponent, String title) { Frame frame = JOptionPane.getFrameForComponent(parentComponent); final JDialog dialog = new JDialog(frame, title, false); Container contentPane = dialog.getContentPane(); contentPane.setLayout(new BorderLayout()); contentPane.add(this, BorderLayout.CENTER); dialog.pack(); dialog.setLocationRelativeTo(parentComponent); dialog.addWindowListener(new WindowAdapter() { boolean gotFocus = false; public void windowClosing(WindowEvent we) { setValue(null); } public void windowActivated(WindowEvent we) { // Once window gets focus, set initial focus if (!gotFocus) { selectInitialValue(); gotFocus = true; } } }); addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if(dialog.isVisible() && event.getSource() == ProgressOptionPane.this && (event.getPropertyName().equals(VALUE_PROPERTY) || event.getPropertyName().equals(INPUT_VALUE_PROPERTY))){ ftpProtocol.setAborted(); dialog.setVisible(false); dialog.dispose(); } } }); return dialog; }
| 4,371
|
public JDialog createDialog(Component parentComponent, String title) { Frame frame = JOptionPane.getFrameForComponent(parentComponent); final JDialog dialog = new JDialog(frame, title, false); Container contentPane = dialog.getContentPane(); contentPane.setLayout(new BorderLayout()); contentPane.add(this, BorderLayout.CENTER); dialog.pack(); dialog.setLocationRelativeTo(parentComponent); dialog.addWindowListener(new WindowAdapter() { boolean gotFocus = false; public void windowClosing(WindowEvent we) { setValue(null); } public void windowActivated(WindowEvent we) { // Once window gets focus, set initial focus if (!gotFocus) { selectInitialValue(); gotFocus = true; } } }); addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if(dialog.isVisible() && event.getSource() == ProgressOptionPane.this && (event.getPropertyName().equals(VALUE_PROPERTY) || event.getPropertyName().equals(INPUT_VALUE_PROPERTY))){ ftpProtocol.setAborted(); dialog.setVisible(false); dialog.dispose(); } } }); return dialog; }
|
public JDialog createDialog(Component parentComponent, String title) { Frame frame = JOptionPane.getFrameForComponent(parentComponent); final JDialog dialog = new JDialog(frame, title, false); Container contentPane = dialog.getContentPane(); contentPane.setLayout(new BorderLayout()); contentPane.add(this, BorderLayout.CENTER); dialog.pack(); dialog.setLocationRelativeTo(parentComponent); dialog.addWindowListener(new WindowAdapter() { boolean gotFocus = false; public void windowClosing(WindowEvent we) { setValue(null); } public void windowActivated(WindowEvent we) { // Once window gets focus, set initial focus if (!gotFocus) { selectInitialValue(); gotFocus = true; } } }); addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if(dialog.isVisible() && event.getSource() == ProgressOptionPane.this && (event.getPropertyName().equals(VALUE_PROPERTY) || event.getPropertyName().equals(INPUT_VALUE_PROPERTY))){ ftpProtocol.setAborted(); dialog.setVisible(false); dialog.dispose(); } } }); return dialog; }
| 4,372
|
public JDialog createDialog(Component parentComponent, String title) { Frame frame = JOptionPane.getFrameForComponent(parentComponent); final JDialog dialog = new JDialog(frame, title, false); Container contentPane = dialog.getContentPane(); contentPane.setLayout(new BorderLayout()); contentPane.add(this, BorderLayout.CENTER); dialog.pack(); dialog.setLocationRelativeTo(parentComponent); dialog.addWindowListener(new WindowAdapter() { boolean gotFocus = false; public void windowClosing(WindowEvent we) { setValue(null); } public void windowActivated(WindowEvent we) { // Once window gets focus, set initial focus if (!gotFocus) { selectInitialValue(); gotFocus = true; } } }); addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if(dialog.isVisible() && event.getSource() == ProgressOptionPane.this && (event.getPropertyName().equals(VALUE_PROPERTY) || event.getPropertyName().equals(INPUT_VALUE_PROPERTY))){ ftpProtocol.setAborted(); dialog.setVisible(false); dialog.dispose(); } } }); return dialog; }
|
public JDialog createDialog(Component parentComponent, String title) { Frame frame = JOptionPane.getFrameForComponent(parentComponent); final JDialog dialog = new JDialog(frame, title, false); Container contentPane = dialog.getContentPane(); contentPane.setLayout(new BorderLayout()); contentPane.add(this, BorderLayout.CENTER); dialog.pack(); dialog.setLocationRelativeTo(parentComponent); dialog.addWindowListener(new WindowAdapter() { boolean gotFocus = false; public void windowClosing(WindowEvent we) { setValue(null); } public void windowActivated(WindowEvent we) { // Once window gets focus, set initial focus if (!gotFocus) { selectInitialValue(); gotFocus = true; } } }); addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if(dialog.isVisible() && event.getSource() == ProgressOptionPane.this && (event.getPropertyName().equals(VALUE_PROPERTY) || event.getPropertyName().equals(INPUT_VALUE_PROPERTY))){ ftpProtocol.setAborted(); dialog.setVisible(false); dialog.dispose(); } } }); return dialog; }
| 4,373
|
public void windowActivated(WindowEvent we) { // Once window gets focus, set initial focus if (!gotFocus) { selectInitialValue(); gotFocus = true; } }
|
public void windowActivated(WindowEvent we) { // Once window gets focus, set initial focus if (!gotFocus) { selectInitialValue(); gotFocus = true; } }
| 4,374
|
public void windowClosing(WindowEvent we) { setValue(null); }
|
public void windowClosing(WindowEvent we) { setValue(null); }
| 4,375
|
public void propertyChange(PropertyChangeEvent event) { if(dialog.isVisible() && event.getSource() == ProgressOptionPane.this && (event.getPropertyName().equals(VALUE_PROPERTY) || event.getPropertyName().equals(INPUT_VALUE_PROPERTY))){ ftpProtocol.setAborted(); dialog.setVisible(false); dialog.dispose(); } }
|
public void propertyChange(PropertyChangeEvent event) { if(dialog.isVisible() && event.getSource() == ProgressOptionPane.this && (event.getPropertyName().equals(VALUE_PROPERTY) || event.getPropertyName().equals(INPUT_VALUE_PROPERTY))){ ftpProtocol.setAborted(); dialog.setVisible(false); dialog.dispose(); } }
| 4,376
|
public int getMaxCharactersPerLineCount() { return 60; }
|
public int getMaxCharactersPerLineCount() { return 60; }
| 4,377
|
public boolean isCanceled() { if (this == null) return false; Object v = this.getValue(); return (v != null); }
|
public boolean isCanceled() { if (this == null) return false; Object v = this.getValue(); return (v != null); }
| 4,378
|
public void reset() { Object[] option = this.getOptions(); option[0] = UIManager.getString("OptionPane.cancelButtonText"); this.setOptions(option); monitor.setValue(null); }
|
public void reset() { Object[] option = this.getOptions(); option[0] = UIManager.getString("OptionPane.cancelButtonText"); this.setOptions(option); monitor.setValue(null); }
| 4,379
|
public void reset() { Object[] option = this.getOptions(); option[0] = UIManager.getString("OptionPane.cancelButtonText"); this.setOptions(option); monitor.setValue(null); }
|
public void reset() { Object[] option = this.getOptions(); option[0] = UIManager.getString("OptionPane.cancelButtonText"); this.setOptions(option); monitor.setValue(null); }
| 4,380
|
public void setDone() { Object[] option = this.getOptions(); option[0] = LangTool.getString("xtfr.tableDone"); this.setOptions(option); setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); }
|
public void setDone() { Object[] option = this.getOptions(); option[0] = LangTool.getString("xtfr.tableDone"); this.setOptions(option); setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); }
| 4,381
|
public XTFRFile (Frame parent,tnvt pvt, Session session) { //super(parent); super(); setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); this.session = session; vt = pvt; ftpProtocol = new FTP5250Prot(vt); ftpProtocol.addFTPStatusListener(this); axtfr = new AS400Xtfr(vt); axtfr.addFTPStatusListener(this); createProgressMonitor(); initFileFilters(); initXTFRInfo(); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { if (ftpProtocol.isConnected()) ftpProtocol.disconnect(); } }); messageProgress = LangTool.getString("xtfr.messageProgress"); setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); }
|
public XTFRFile(Frame parent, tnvt pvt, Session session) { //super(parent); super(); setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); this.session = session; vt = pvt; ftpProtocol = new FTP5250Prot(vt); ftpProtocol.addFTPStatusListener(this); axtfr = new AS400Xtfr(vt); axtfr.addFTPStatusListener(this); createProgressMonitor(); initFileFilters(); initXTFRInfo(); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { if (ftpProtocol.isConnected()) ftpProtocol.disconnect(); } }); messageProgress = LangTool.getString("xtfr.messageProgress"); setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); }
| 4,382
|
public XTFRFile (Frame parent,tnvt pvt, Session session) { //super(parent); super(); setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); this.session = session; vt = pvt; ftpProtocol = new FTP5250Prot(vt); ftpProtocol.addFTPStatusListener(this); axtfr = new AS400Xtfr(vt); axtfr.addFTPStatusListener(this); createProgressMonitor(); initFileFilters(); initXTFRInfo(); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { if (ftpProtocol.isConnected()) ftpProtocol.disconnect(); } }); messageProgress = LangTool.getString("xtfr.messageProgress"); setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); }
|
public XTFRFile (Frame parent,tnvt pvt, Session session) { //super(parent); super(); setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); this.session = session; vt = pvt; ftpProtocol = new FTP5250Prot(vt); ftpProtocol.addFTPStatusListener(this); axtfr = new AS400Xtfr(vt); axtfr.addFTPStatusListener(this); createProgressMonitor(); initFileFilters(); initXTFRInfo(); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { if (ftpProtocol.isConnected()) ftpProtocol.disconnect(); } }); messageProgress = LangTool.getString("xtfr.messageProgress"); setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); }
| 4,383
|
public XTFRFile (Frame parent,tnvt pvt, Session session) { //super(parent); super(); setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); this.session = session; vt = pvt; ftpProtocol = new FTP5250Prot(vt); ftpProtocol.addFTPStatusListener(this); axtfr = new AS400Xtfr(vt); axtfr.addFTPStatusListener(this); createProgressMonitor(); initFileFilters(); initXTFRInfo(); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { if (ftpProtocol.isConnected()) ftpProtocol.disconnect(); } }); messageProgress = LangTool.getString("xtfr.messageProgress"); setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); }
|
public XTFRFile (Frame parent,tnvt pvt, Session session) { //super(parent); super(); setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); this.session = session; vt = pvt; ftpProtocol = new FTP5250Prot(vt); ftpProtocol.addFTPStatusListener(this); axtfr = new AS400Xtfr(vt); axtfr.addFTPStatusListener(this); createProgressMonitor(); initFileFilters(); initXTFRInfo(); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { if (ftpProtocol.isConnected()) ftpProtocol.disconnect(); } }); messageProgress = LangTool.getString("xtfr.messageProgress"); setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); }
| 4,384
|
public XTFRFile (Frame parent,tnvt pvt, Session session) { //super(parent); super(); setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); this.session = session; vt = pvt; ftpProtocol = new FTP5250Prot(vt); ftpProtocol.addFTPStatusListener(this); axtfr = new AS400Xtfr(vt); axtfr.addFTPStatusListener(this); createProgressMonitor(); initFileFilters(); initXTFRInfo(); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { if (ftpProtocol.isConnected()) ftpProtocol.disconnect(); } }); messageProgress = LangTool.getString("xtfr.messageProgress"); setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); }
|
public XTFRFile (Frame parent,tnvt pvt, Session session) { //super(parent); super(); setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); this.session = session; vt = pvt; ftpProtocol = new FTP5250Prot(vt); ftpProtocol.addFTPStatusListener(this); axtfr = new AS400Xtfr(vt); axtfr.addFTPStatusListener(this); createProgressMonitor(); initFileFilters(); initXTFRInfo(); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { if (ftpProtocol.isConnected()) ftpProtocol.disconnect(); } }); messageProgress = LangTool.getString("xtfr.messageProgress"); setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); }
| 4,385
|
public XTFRFile (Frame parent,tnvt pvt, Session session) { //super(parent); super(); setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); this.session = session; vt = pvt; ftpProtocol = new FTP5250Prot(vt); ftpProtocol.addFTPStatusListener(this); axtfr = new AS400Xtfr(vt); axtfr.addFTPStatusListener(this); createProgressMonitor(); initFileFilters(); initXTFRInfo(); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { if (ftpProtocol.isConnected()) ftpProtocol.disconnect(); } }); messageProgress = LangTool.getString("xtfr.messageProgress"); setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); }
|
public XTFRFile (Frame parent,tnvt pvt, Session session) { //super(parent); super(); setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); this.session = session; vt = pvt; ftpProtocol = new FTP5250Prot(vt); ftpProtocol.addFTPStatusListener(this); axtfr = new AS400Xtfr(vt); axtfr.addFTPStatusListener(this); createProgressMonitor(); initFileFilters(); initXTFRInfo(); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { if (ftpProtocol.isConnected()) ftpProtocol.disconnect(); } }); messageProgress = LangTool.getString("xtfr.messageProgress"); setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); }
| 4,386
|
public XTFRFile (Frame parent,tnvt pvt, Session session) { //super(parent); super(); setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); this.session = session; vt = pvt; ftpProtocol = new FTP5250Prot(vt); ftpProtocol.addFTPStatusListener(this); axtfr = new AS400Xtfr(vt); axtfr.addFTPStatusListener(this); createProgressMonitor(); initFileFilters(); initXTFRInfo(); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { if (ftpProtocol.isConnected()) ftpProtocol.disconnect(); } }); messageProgress = LangTool.getString("xtfr.messageProgress"); setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); }
|
public XTFRFile (Frame parent,tnvt pvt, Session session) { //super(parent); super(); setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); this.session = session; vt = pvt; ftpProtocol = new FTP5250Prot(vt); ftpProtocol.addFTPStatusListener(this); axtfr = new AS400Xtfr(vt); axtfr.addFTPStatusListener(this); createProgressMonitor(); initFileFilters(); initXTFRInfo(); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { if (ftpProtocol.isConnected()) ftpProtocol.disconnect(); } }); messageProgress = LangTool.getString("xtfr.messageProgress"); setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); }
| 4,387
|
public void windowClosing(WindowEvent we) { if (ftpProtocol.isConnected()) ftpProtocol.disconnect(); }
|
public void windowClosing(WindowEvent we) { if (ftpProtocol.isConnected()) ftpProtocol.disconnect(); }
| 4,388
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
| 4,389
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
| 4,390
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
| 4,391
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
| 4,392
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
| 4,393
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
| 4,394
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
| 4,395
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
| 4,396
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
| 4,397
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } getPCFile(); getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
| 4,398
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { } } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
| 4,399
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); if (e.getActionCommand().equals("CUSTOMIZE")) { else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); if (e.getActionCommand().equals("CUSTOMIZE")) { if (e.getActionCommand().equals("CUSTOMIZE")) { else { disconnect(); if (e.getActionCommand().equals("CUSTOMIZE")) { if (e.getActionCommand().equals("CUSTOMIZE")) { if (e.getActionCommand().equals("CUSTOMIZE")) { if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); if (e.getActionCommand().equals("CUSTOMIZE")) { if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); if (e.getActionCommand().equals("CUSTOMIZE")) { }
| 4,400
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } filter.getOutputFilterInstance().setCustomProperties(); filter.getOutputFilterInstance().setCustomProperties(); } }
| 4,401
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { } } }
| 4,402
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("XTFR") || e.getActionCommand().equals("EMAIL")) { saveXTFRFields(); if (e.getActionCommand().equals("EMAIL")) emailIt = true; else emailIt = false; initializeMonitor(); dialog.show(); if (useQuery.isSelected()) { axtfr.login(user.getText(),new String(password.getPassword())); // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. axtfr.setDecimalChar(getDecimalChar()); axtfr.connect(systemName.getText()); } else { if (ftpProtocol.connect(systemName.getText(),21)) { if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { // this will execute in it's own thread and will send a // fileInfoReceived(FTPStatusEvent statusevent) event when // finished without an error. ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else { disconnect(); } } } if (e.getActionCommand().equals("BROWSEPC")) { getPCFile(); } if (e.getActionCommand().equals("CUSTOMIZE")) { filter.getOutputFilterInstance().setCustomProperties(); } }
| 4,403
|
public void commandStatusReceived(FTPStatusEvent statusevent) { final String message = statusevent.getMessage() + '\n'; Runnable cdp = new Runnable () { public void run() { taskOutput.setText( taskOutput.getText() + message); } }; SwingUtilities.invokeLater(cdp); }
|
public void commandStatusReceived(FTPStatusEvent statusevent) { final String message = statusevent.getMessage() + '\n'; Runnable cdp = new Runnable () { public void run() { taskOutput.setText( taskOutput.getText() + message); } }; SwingUtilities.invokeLater(cdp); }
| 4,404
|
public void commandStatusReceived(FTPStatusEvent statusevent) { final String message = statusevent.getMessage() + '\n'; Runnable cdp = new Runnable () { public void run() { taskOutput.setText( taskOutput.getText() + message); } }; SwingUtilities.invokeLater(cdp); }
|
public void commandStatusReceived(FTPStatusEvent statusevent) { final String message = statusevent.getMessage() + '\n'; Runnable cdp = new Runnable () { public void run() { taskOutput.setText( taskOutput.getText() + message); } }; SwingUtilities.invokeLater(cdp); }
| 4,405
|
public void run() { taskOutput.setText( taskOutput.getText() + message); }
|
public void run() { taskOutput.setText( taskOutput.getText() + message); }
| 4,406
|
private void createProgressMonitor() { progressBar = new JProgressBar(0, 0); progressBar.setValue(0); taskOutput = new JTextArea(5, 20); taskOutput.setMargin(new Insets(5,5,5,5)); taskOutput.setEditable(false); JPanel panel = new JPanel(); note = new JLabel(); note.setForeground(Color.blue); label = new JLabel(); label.setForeground(Color.blue); panel.setLayout(new BorderLayout()); panel.add(label,BorderLayout.NORTH); panel.add(note,BorderLayout.CENTER); panel.add(progressBar,BorderLayout.SOUTH); JPanel contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); contentPane.add(panel, BorderLayout.NORTH); contentPane.add(new JScrollPane(taskOutput), BorderLayout.CENTER); monitor = new ProgressOptionPane(contentPane); taskOutput.setRows(6); dialog = monitor.createDialog(this,LangTool.getString("xtfr.progressTitle")); }
|
private void createProgressMonitor() { progressBar = new JProgressBar(0, 0); progressBar.setValue(0); taskOutput = new JTextArea(5, 20); taskOutput.setMargin(new Insets(5,5,5,5)); taskOutput.setEditable(false); JPanel panel = new JPanel(); note = new JLabel(); note.setForeground(Color.blue); label = new JLabel(); label.setForeground(Color.blue); panel.setLayout(new BorderLayout()); panel.add(label,BorderLayout.NORTH); panel.add(note,BorderLayout.CENTER); panel.add(progressBar,BorderLayout.SOUTH); JPanel contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); contentPane.add(panel, BorderLayout.NORTH); contentPane.add(new JScrollPane(taskOutput), BorderLayout.CENTER); monitor = new ProgressOptionPane(contentPane); taskOutput.setRows(6); dialog = monitor.createDialog(this,LangTool.getString("xtfr.progressTitle")); }
| 4,407
|
private void createProgressMonitor() { progressBar = new JProgressBar(0, 0); progressBar.setValue(0); taskOutput = new JTextArea(5, 20); taskOutput.setMargin(new Insets(5,5,5,5)); taskOutput.setEditable(false); JPanel panel = new JPanel(); note = new JLabel(); note.setForeground(Color.blue); label = new JLabel(); label.setForeground(Color.blue); panel.setLayout(new BorderLayout()); panel.add(label,BorderLayout.NORTH); panel.add(note,BorderLayout.CENTER); panel.add(progressBar,BorderLayout.SOUTH); JPanel contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); contentPane.add(panel, BorderLayout.NORTH); contentPane.add(new JScrollPane(taskOutput), BorderLayout.CENTER); monitor = new ProgressOptionPane(contentPane); taskOutput.setRows(6); dialog = monitor.createDialog(this,LangTool.getString("xtfr.progressTitle")); }
|
private void createProgressMonitor() { progressBar = new JProgressBar(0, 0); progressBar.setValue(0); taskOutput = new JTextArea(5, 20); taskOutput.setMargin(new Insets(5,5,5,5)); taskOutput.setEditable(false); JPanel panel = new JPanel(); note = new JLabel(); note.setForeground(Color.blue); label = new JLabel(); label.setForeground(Color.blue); panel.setLayout(new BorderLayout()); panel.add(label,BorderLayout.NORTH); panel.add(note,BorderLayout.CENTER); panel.add(progressBar,BorderLayout.SOUTH); JPanel contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); contentPane.add(panel, BorderLayout.NORTH); contentPane.add(new JScrollPane(taskOutput), BorderLayout.CENTER); monitor = new ProgressOptionPane(contentPane); taskOutput.setRows(6); dialog = monitor.createDialog(this,LangTool.getString("xtfr.progressTitle")); }
| 4,408
|
private void createProgressMonitor() { progressBar = new JProgressBar(0, 0); progressBar.setValue(0); taskOutput = new JTextArea(5, 20); taskOutput.setMargin(new Insets(5,5,5,5)); taskOutput.setEditable(false); JPanel panel = new JPanel(); note = new JLabel(); note.setForeground(Color.blue); label = new JLabel(); label.setForeground(Color.blue); panel.setLayout(new BorderLayout()); panel.add(label,BorderLayout.NORTH); panel.add(note,BorderLayout.CENTER); panel.add(progressBar,BorderLayout.SOUTH); JPanel contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); contentPane.add(panel, BorderLayout.NORTH); contentPane.add(new JScrollPane(taskOutput), BorderLayout.CENTER); monitor = new ProgressOptionPane(contentPane); taskOutput.setRows(6); dialog = monitor.createDialog(this,LangTool.getString("xtfr.progressTitle")); }
|
private void createProgressMonitor() { progressBar = new JProgressBar(0, 0); progressBar.setValue(0); taskOutput = new JTextArea(5, 20); taskOutput.setMargin(new Insets(5,5,5,5)); taskOutput.setEditable(false); JPanel panel = new JPanel(); note = new JLabel(); note.setForeground(Color.blue); label = new JLabel(); label.setForeground(Color.blue); panel.setLayout(new BorderLayout()); panel.add(label,BorderLayout.NORTH); panel.add(note,BorderLayout.CENTER); panel.add(progressBar,BorderLayout.SOUTH); JPanel contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); contentPane.add(panel, BorderLayout.NORTH); contentPane.add(new JScrollPane(taskOutput), BorderLayout.CENTER); monitor = new ProgressOptionPane(contentPane); taskOutput.setRows(6); dialog = monitor.createDialog(this,LangTool.getString("xtfr.progressTitle")); }
| 4,409
|
private void createProgressMonitor() { progressBar = new JProgressBar(0, 0); progressBar.setValue(0); taskOutput = new JTextArea(5, 20); taskOutput.setMargin(new Insets(5,5,5,5)); taskOutput.setEditable(false); JPanel panel = new JPanel(); note = new JLabel(); note.setForeground(Color.blue); label = new JLabel(); label.setForeground(Color.blue); panel.setLayout(new BorderLayout()); panel.add(label,BorderLayout.NORTH); panel.add(note,BorderLayout.CENTER); panel.add(progressBar,BorderLayout.SOUTH); JPanel contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); contentPane.add(panel, BorderLayout.NORTH); contentPane.add(new JScrollPane(taskOutput), BorderLayout.CENTER); monitor = new ProgressOptionPane(contentPane); taskOutput.setRows(6); dialog = monitor.createDialog(this,LangTool.getString("xtfr.progressTitle")); }
|
private void createProgressMonitor() { progressBar = new JProgressBar(0, 0); progressBar.setValue(0); taskOutput = new JTextArea(5, 20); taskOutput.setMargin(new Insets(5,5,5,5)); taskOutput.setEditable(false); JPanel panel = new JPanel(); note = new JLabel(); note.setForeground(Color.blue); label = new JLabel(); label.setForeground(Color.blue); panel.setLayout(new BorderLayout()); panel.add(label,BorderLayout.NORTH); panel.add(note,BorderLayout.CENTER); panel.add(progressBar,BorderLayout.SOUTH); JPanel contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); contentPane.add(panel, BorderLayout.NORTH); contentPane.add(new JScrollPane(taskOutput), BorderLayout.CENTER); monitor = new ProgressOptionPane(contentPane); taskOutput.setRows(6); dialog = monitor.createDialog(this,LangTool.getString("xtfr.progressTitle")); }
| 4,410
|
private void createProgressMonitor() { progressBar = new JProgressBar(0, 0); progressBar.setValue(0); taskOutput = new JTextArea(5, 20); taskOutput.setMargin(new Insets(5,5,5,5)); taskOutput.setEditable(false); JPanel panel = new JPanel(); note = new JLabel(); note.setForeground(Color.blue); label = new JLabel(); label.setForeground(Color.blue); panel.setLayout(new BorderLayout()); panel.add(label,BorderLayout.NORTH); panel.add(note,BorderLayout.CENTER); panel.add(progressBar,BorderLayout.SOUTH); JPanel contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); contentPane.add(panel, BorderLayout.NORTH); contentPane.add(new JScrollPane(taskOutput), BorderLayout.CENTER); monitor = new ProgressOptionPane(contentPane); taskOutput.setRows(6); dialog = monitor.createDialog(this,LangTool.getString("xtfr.progressTitle")); }
|
private void createProgressMonitor() { progressBar = new JProgressBar(0, 0); progressBar.setValue(0); taskOutput = new JTextArea(5, 20); taskOutput.setMargin(new Insets(5,5,5,5)); taskOutput.setEditable(false); JPanel panel = new JPanel(); note = new JLabel(); note.setForeground(Color.blue); label = new JLabel(); label.setForeground(Color.blue); panel.setLayout(new BorderLayout()); panel.add(label,BorderLayout.NORTH); panel.add(note,BorderLayout.CENTER); panel.add(progressBar,BorderLayout.SOUTH); JPanel contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); contentPane.add(panel, BorderLayout.NORTH); contentPane.add(new JScrollPane(taskOutput), BorderLayout.CENTER); monitor = new ProgressOptionPane(contentPane); taskOutput.setRows(6); dialog = monitor.createDialog(this,LangTool.getString("xtfr.progressTitle")); }
| 4,411
|
private void createProgressMonitor() { progressBar = new JProgressBar(0, 0); progressBar.setValue(0); taskOutput = new JTextArea(5, 20); taskOutput.setMargin(new Insets(5,5,5,5)); taskOutput.setEditable(false); JPanel panel = new JPanel(); note = new JLabel(); note.setForeground(Color.blue); label = new JLabel(); label.setForeground(Color.blue); panel.setLayout(new BorderLayout()); panel.add(label,BorderLayout.NORTH); panel.add(note,BorderLayout.CENTER); panel.add(progressBar,BorderLayout.SOUTH); JPanel contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); contentPane.add(panel, BorderLayout.NORTH); contentPane.add(new JScrollPane(taskOutput), BorderLayout.CENTER); monitor = new ProgressOptionPane(contentPane); taskOutput.setRows(6); dialog = monitor.createDialog(this,LangTool.getString("xtfr.progressTitle")); }
|
private void createProgressMonitor() { progressBar = new JProgressBar(0, 0); progressBar.setValue(0); taskOutput = new JTextArea(5, 20); taskOutput.setMargin(new Insets(5,5,5,5)); taskOutput.setEditable(false); JPanel panel = new JPanel(); note = new JLabel(); note.setForeground(Color.blue); label = new JLabel(); label.setForeground(Color.blue); panel.setLayout(new BorderLayout()); panel.add(label,BorderLayout.NORTH); panel.add(note,BorderLayout.CENTER); panel.add(progressBar,BorderLayout.SOUTH); JPanel contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); contentPane.add(panel, BorderLayout.NORTH); contentPane.add(new JScrollPane(taskOutput), BorderLayout.CENTER); monitor = new ProgressOptionPane(contentPane); taskOutput.setRows(6); dialog = monitor.createDialog(this,LangTool.getString("xtfr.progressTitle")); }
| 4,412
|
private void createProgressMonitor() { progressBar = new JProgressBar(0, 0); progressBar.setValue(0); taskOutput = new JTextArea(5, 20); taskOutput.setMargin(new Insets(5,5,5,5)); taskOutput.setEditable(false); JPanel panel = new JPanel(); note = new JLabel(); note.setForeground(Color.blue); label = new JLabel(); label.setForeground(Color.blue); panel.setLayout(new BorderLayout()); panel.add(label,BorderLayout.NORTH); panel.add(note,BorderLayout.CENTER); panel.add(progressBar,BorderLayout.SOUTH); JPanel contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); contentPane.add(panel, BorderLayout.NORTH); contentPane.add(new JScrollPane(taskOutput), BorderLayout.CENTER); monitor = new ProgressOptionPane(contentPane); taskOutput.setRows(6); dialog = monitor.createDialog(this,LangTool.getString("xtfr.progressTitle")); }
|
private void createProgressMonitor() { progressBar = new JProgressBar(0, 0); progressBar.setValue(0); taskOutput = new JTextArea(5, 20); taskOutput.setMargin(new Insets(5,5,5,5)); taskOutput.setEditable(false); JPanel panel = new JPanel(); note = new JLabel(); note.setForeground(Color.blue); label = new JLabel(); label.setForeground(Color.blue); panel.setLayout(new BorderLayout()); panel.add(label,BorderLayout.NORTH); panel.add(note,BorderLayout.CENTER); panel.add(progressBar,BorderLayout.SOUTH); JPanel contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); contentPane.add(panel, BorderLayout.NORTH); contentPane.add(new JScrollPane(taskOutput), BorderLayout.CENTER); monitor = new ProgressOptionPane(contentPane); taskOutput.setRows(6); dialog = monitor.createDialog( this, LangTool.getString("xtfr.progressTitle")); }
| 4,413
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.