rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
dirtyComponentsWork.clear();
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; // Swap dirtyRegions with dirtyRegionsWork to avoid locking. synchronized (dirtyComponents) { HashMap swap = dirtyComponents; dirtyComponents = dirtyComponentsWork; dirtyComponentsWork = swap; } ArrayList repaintOrder = new ArrayList(dirtyComponentsWork.size());; // We sort the components by their size here. This way we have a good // chance that painting the bigger components also paints the smaller // components and we don't need to paint them twice. repaintOrder.addAll(dirtyComponentsWork.keySet()); if (comparator == null) comparator = new ComponentComparator(); Collections.sort(repaintOrder, comparator); repaintUnderway = true; for (Iterator i = repaintOrder.iterator(); i.hasNext();) { JComponent comp = (JComponent) i.next(); // If a component is marked completely clean in the meantime, then skip // it. Rectangle damaged = (Rectangle) dirtyComponentsWork.remove(comp); if (damaged == null || damaged.isEmpty()) continue; comp.paintImmediately(damaged); } repaintUnderway = false; commitRemainingBuffers(); }
public void paintImmediately(Rectangle r) { Component root = SwingUtilities.getRoot(this); if (root == null || ! root.isShowing()) return; Graphics g = root.getGraphics(); if (g == null) return; Rectangle clip = SwingUtilities.convertRectangle(this, r, root); g.setClip(clip); root.paint(g); g.dispose();
public void paintImmediately(int x, int y, int w, int h) { paintImmediately(new Rectangle(x, y, w, h));
public void paintImmediately(Rectangle r) { Component root = SwingUtilities.getRoot(this); if (root == null || ! root.isShowing()) return; Graphics g = root.getGraphics(); if (g == null) return; Rectangle clip = SwingUtilities.convertRectangle(this, r, root); g.setClip(clip); root.paint(g); g.dispose(); }
throw new java.lang.UnsupportedOperationException("Method extract_Value() not yet implemented.");
try { return ((ValueBaseHolder) has).value; } catch (ClassCastException ex) { return new BAD_OPERATION("Value type expected"); }
public Serializable extract_Value() throws BAD_OPERATION { /**@todo Implement this org.omg.CORBA.Any abstract method*/ throw new java.lang.UnsupportedOperationException("Method extract_Value() not yet implemented."); }
resetTypes();
type(typecode); insert_Value(x);
public void insert_Value(Serializable x, TypeCode typecode) { resetTypes(); /**@todo Implement this org.omg.CORBA.Any abstract method*/ }
public BooleanHolder(boolean initial_value)
public BooleanHolder()
public BooleanHolder(boolean initial_value) { value = initial_value; }
value = initial_value;
public BooleanHolder(boolean initial_value) { value = initial_value; }
public DoubleHolder(double initial_value)
public DoubleHolder()
public DoubleHolder(double initial_value) { value = initial_value; }
value = initial_value;
public DoubleHolder(double initial_value) { value = initial_value; }
public FixedHolder(BigDecimal initial_value)
public FixedHolder()
public FixedHolder(BigDecimal initial_value) { value = initial_value; }
value = initial_value;
public FixedHolder(BigDecimal initial_value) { value = initial_value; }
public FloatHolder(float initial_value)
public FloatHolder()
public FloatHolder(float initial_value) { value = initial_value; }
value = initial_value;
public FloatHolder(float initial_value) { value = initial_value; }
public IntHolder(int initial_value)
public IntHolder()
public IntHolder(int initial_value) { value = initial_value; }
value = initial_value;
public IntHolder(int initial_value) { value = initial_value; }
public LongHolder(long initial_value)
public LongHolder()
public LongHolder(long initial_value) { value = initial_value; }
value = initial_value;
public LongHolder(long initial_value) { value = initial_value; }
public StringHolder(String initial_value)
public StringHolder()
public StringHolder(String initial_value) { value = initial_value; }
value = initial_value;
public StringHolder(String initial_value) { value = initial_value; }
l = l * 31 + Double.doubleToLongBits(m10);
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); }
l = l * 31 + Double.doubleToLongBits(m11);
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); }
l = l * 31 + Double.doubleToLongBits(m10); l = l * 31 + Double.doubleToLongBits(m11);
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); }
SizeRequirements.calculateAlignedPositions(target.getWidth(), xTotal,
Insets in = target.getInsets(); int width = target.getWidth() - in.left - in.right; int height = target.getHeight() - in.top - in.bottom; SizeRequirements.calculateAlignedPositions(width, xTotal,
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); } }
SizeRequirements.calculateAlignedPositions(target.getHeight(), yTotal,
SizeRequirements.calculateAlignedPositions(height, yTotal,
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); } }
byte[] blues, int trans)
byte[] blues)
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; }
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; }
throw new BAD_OPERATION();
BAD_OPERATION bad = new BAD_OPERATION(); bad.initCause(ex); bad.minor = Minor.Any; throw bad;
public static InvalidName extract(Any a) { try { return ((InvalidNameHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION(); } }
Token t2 = scanner.readToken(); if (t2.type != Token.RCURLY) throw new RTFParseException("expected right curly braces");
Token t2 = scanner.peekToken(); if (t2.type == Token.RCURLY) { scanner.readToken(); } else { System.err.println("RTF warning: 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"); }
focusColor = getFocusColor(); selectColor = getSelectColor(); disabledTextColor = getDisabledTextColor();
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); focusColor = defaults.getColor(getPropertyPrefix() + "focus"); selectColor = defaults.getColor(getPropertyPrefix() + "select"); disabledTextColor = defaults.getColor(getPropertyPrefix() + "disabledText");
public MetalToggleButtonUI() { super(); focusColor = getFocusColor(); selectColor = getSelectColor(); disabledTextColor = getDisabledTextColor(); }
if (instance == null) instance = new MetalToggleButtonUI(); return instance;
return new MetalToggleButtonUI();
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalToggleButtonUI(); return instance; }
UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".disabledText");
return disabledTextColor;
protected Color getDisabledTextColor() { UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".disabledText"); }
UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".focus");
return focusColor;
protected Color getFocusColor() { UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".focus"); }
UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".select");
return selectColor;
protected Color getSelectColor() { UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".select"); }
private void addValue(String name, String value)
public void addValue(String name, String 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); } }
Header key = new Header(name); String old = (String) super.get(key); if (old == null) { super.put(key, value); } else { super.put(key, old + ", " + value); }
headers.add(headers.size(), new HeaderElement(name, 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); } }
return (String) super.get(new Header(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;
public String getValue(String header) { return (String) super.get(new Header(header)); }
public Object put(Object key, Object value)
public void put(String name, String value)
public Object put(Object key, Object value) { return super.put(new Header((String) key), value); }
return super.put(new Header((String) key), 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; }
public Object put(Object key, Object value) { return super.put(new Header((String) key), value); }
addValue(name, value); }
public Object put(Object key, Object value) { return super.put(new Header((String) key), value); }
public void putAll(Map t)
public void putAll(Headers o)
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); } }
for (Iterator i = t.keySet().iterator(); i.hasNext(); )
for (Iterator it = o.iterator(); it.hasNext(); )
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); } }
String key = (String) i.next(); String value = (String) t.get(key); put(key, value);
HeaderElement e = (HeaderElement)it.next(); remove(e.name); addValue(e.name, e.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); } }
public Object remove(Object key)
public void remove(String name)
public Object remove(Object key) { return super.remove(new Header((String) key)); }
return super.remove(new Header((String) key));
for (Iterator it = headers.iterator(); it.hasNext(); ) { HeaderElement e = (HeaderElement)it.next(); if (e.name.equalsIgnoreCase(name)) it.remove(); }
public Object remove(Object key) { return super.remove(new Header((String) key)); }
bad.minor = Minor.Any;
public static DuplicateName extract(Any any) { try { return ((DuplicateNameHolder) any.extract_Streamable()).value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("DuplicateName expected"); bad.initCause(cex); throw bad; } }
Log.error("Can't add Axis Object without axisId attribute defined");
Log.warnln("Warning: Can't add Axis Object without axisId attribute defined");
private boolean canAddAxisObjToArray(AxisInterface axisToAdd) { if (axisToAdd.getAxisId() == null) { Log.error("Can't add Axis Object without axisId attribute defined"); return false; } return true; }
public CacheEvent(Object source, int type) {
public CacheEvent(Object source) {
public CacheEvent(Object source, int type) { super(source); this.eventType = type; }
this.eventType = type;
public CacheEvent(Object source, int type) { super(source); this.eventType = type; }
return new TabbedPaneLayout();
return (tabPane.getTabLayoutPolicy() == JTabbedPane.WRAP_TAB_LAYOUT) ? new MetalTabbedPaneUI.TabbedPaneLayout() : super.createLayoutManager();
protected LayoutManager createLayoutManager() { return new TabbedPaneLayout(); }
if ((currentRun == 0 && tabIndex != 0) || (currentRun > 0 && tabIndex != tabRuns[currentRun - 1]))
if (tabIndex != tabRuns[runCount-1])
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); }
g.drawLine(x + y, rect.y + rect.height + 1, x + 1, y + h + 2);
g.drawLine(x + 1, 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 + y, rect.y + rect.height + 1, x + 1, y + h + 2); } } } }
g.drawLine(0, 5, 0, bottom);
g.drawLine(0, 6, 0, bottom); if (tabIndex != firstIndex) {
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); }
if (tabIndex != 0)
if (tabIndex != firstIndex)
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); }
c = UIManager.getColor("TabbedPane.tabAreaBackground");
c = selectColor;
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); }
g.drawLine(right, 6, right, bottom);
g.drawLine(right, 7, right, bottom);
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); }
} else { if (ftpProtocol.connect(systemName.getText(),21)) {
if (ftpProtocol .login( user.getText(), new String(password.getPassword()))) { ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo( hostFile.getText(), intDesc.isSelected()); } } else {
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(); } }
if (ftpProtocol.login(user.getText(),new String(password.getPassword()))) { ftpProtocol.setDecimalChar(getDecimalChar()); ftpProtocol.getFileInfo(hostFile.getText(),intDesc.isSelected()); } } else {
disconnect(); } } }
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(); } }
disconnect(); } } }
if (e.getActionCommand().equals("BROWSEPC")) {
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(); } }
if (e.getActionCommand().equals("BROWSEPC")) {
getPCFile();
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(); } }
getPCFile();
}
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(); } }
}
if (e.getActionCommand().equals("CUSTOMIZE")) {
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(); } }
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(); } }
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(); } }
} }
}
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(); } }
BorderLayout borderLayout = new BorderLayout(); Border etchedBorder = BorderFactory.createEtchedBorder(); JPanel mp = new JPanel(); mp.setLayout(borderLayout); JPanel sp = new JPanel(); sp.setLayout(new BorderLayout()); sp.setBorder(etchedBorder); as400p = new JPanel(); as400p.setBorder(BorderFactory.createTitledBorder( LangTool.getString("xtfr.labelAS400"))); as400p.setLayout(new BorderLayout()); JPanel as400HostP = new JPanel(); AlignLayout as400pLayout = new AlignLayout(); as400HostP.setLayout(as400pLayout); JLabel snpLabel = new JLabel(LangTool.getString("xtfr.labelSystemName")); systemName = new JTextField(vt.getHostName()); systemName.setColumns(30); as400HostP.add(snpLabel); as400HostP.add(systemName); JLabel hfnpLabel = new JLabel(LangTool.getString("xtfr.labelHostFile")); hostFile = new JTextField(); hostFile.setColumns(30); as400HostP.add(hfnpLabel); as400HostP.add(hostFile); JLabel idpLabel = new JLabel(LangTool.getString("xtfr.labelUserId")); user = new JTextField(); user.setColumns(15); as400HostP.add(idpLabel); as400HostP.add(user); JLabel pwpLabel = new JLabel(LangTool.getString("xtfr.labelPassword")); password = new JPasswordField(); password.setColumns(15); as400HostP.add(pwpLabel); as400HostP.add(password); useQuery = new JCheckBox(LangTool.getString("xtfr.labelUseQuery")); queryWizard = new JButton(LangTool.getString("xtfr.labelQueryWizard")); queryWizard.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { startWizard(); } }); queryWizard.setEnabled(false); useQuery.addItemListener(this); as400HostP.add(useQuery); as400HostP.add(queryWizard); as400p.add(as400HostP,BorderLayout.CENTER); as400QueryP = new JPanel(); as400QueryP.setLayout(new BorderLayout()); queryStatement = new JTextArea(5,40); JScrollPane scrollPane = new JScrollPane(queryStatement); queryStatement.setLineWrap(true); as400QueryP.add(scrollPane,BorderLayout.CENTER); as400FieldP = new JPanel(); AlignLayout as400fLayout = new AlignLayout(); as400FieldP.setLayout(as400fLayout); JLabel fieldsLabel = new JLabel(LangTool.getString("xtfr.labelFields")); allFields = new JRadioButton(LangTool.getString("xtfr.labelAllFields")); allFields.setSelected(true); selectedFields = new JRadioButton(LangTool.getString("xtfr.labelSelectedFields")); JPanel fgPanel = new JPanel(); ButtonGroup fieldGroup = new ButtonGroup(); fieldGroup.add(allFields); fieldGroup.add(selectedFields); as400FieldP.add(fieldsLabel); fgPanel.add(allFields); fgPanel.add(selectedFields); as400FieldP.add(fgPanel); JLabel textDescLabel = new JLabel(LangTool.getString("xtfr.labelTxtDesc")); txtDesc = new JRadioButton(LangTool.getString("xtfr.labelTxtDescFull")); txtDesc.setSelected(true); intDesc = new JRadioButton(LangTool.getString("xtfr.labelTxtDescInt")); JPanel tdPanel = new JPanel(); ButtonGroup txtDescGroup = new ButtonGroup(); txtDescGroup.add(txtDesc); txtDescGroup.add(intDesc); as400FieldP.add(textDescLabel); tdPanel.add(txtDesc); tdPanel.add(intDesc); as400FieldP.add(tdPanel); as400p.add(as400HostP,BorderLayout.CENTER); as400p.add(as400FieldP,BorderLayout.SOUTH); JPanel pcp = new JPanel(); pcp.setBorder(BorderFactory.createTitledBorder( LangTool.getString("xtfr.labelpc"))); AlignLayout pcLayout = new AlignLayout(3,5,5); pcp.setLayout(pcLayout); JLabel pffLabel = new JLabel(LangTool.getString("xtfr.labelFileFormat")); fileFormat = new JComboBox(); fileFormat.addItem(htmlFilter.getDescription()); fileFormat.addItem(OOFilter.getDescription()); fileFormat.addItem(ExcelFilter.getDescription()); fileFormat.addItem(KSpreadFilter.getDescription()); fileFormat.addItem(DelimitedFilter.getDescription()); fileFormat.addItem(FixedWidthFilter.getDescription()); fileFormat.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JComboBox cb = (JComboBox)e.getSource(); filter = getFilterByDescription(); if (filter.getOutputFilterInstance().isCustomizable()) customize.setEnabled(true); else customize.setEnabled(false); } }); customize = new JButton(LangTool.getString("xtfr.labelCustomize")); customize.setActionCommand("CUSTOMIZE"); customize.addActionListener(this); fileFormat.setSelectedIndex(0); pcp.add(pffLabel); pcp.add(fileFormat); pcp.add(customize); JLabel pcpLabel = new JLabel(LangTool.getString("xtfr.labelPCFile")); localFile = new JTextField(); localFile.setColumns(30); JButton browsePC = new JButton(LangTool.getString("xtfr.labelPCBrowse")); browsePC.setActionCommand("BROWSEPC"); browsePC.addActionListener(this); pcp.add(pcpLabel); pcp.add(localFile); pcp.add(browsePC); decimalSeparator = new JComboBox(); decimalSeparator.addItem(LangTool.getString("xtfr.period")); decimalSeparator.addItem(LangTool.getString("xtfr.comma")); DecimalFormat formatter = (DecimalFormat)NumberFormat.getInstance(Locale.getDefault()) ; if (formatter.getDecimalFormatSymbols().getDecimalSeparator() == '.') decimalSeparator.setSelectedIndex(0); else decimalSeparator.setSelectedIndex(1); pcp.add(new JLabel(LangTool.getString("xtfr.labelDecimal"))); pcp.add(decimalSeparator); sp.add(as400p,BorderLayout.NORTH); sp.add(pcp,BorderLayout.SOUTH); JPanel op = new JPanel(); JButton xtfrButton = new JButton(LangTool.getString("xtfr.labelXTFR")); xtfrButton.addActionListener(this); xtfrButton.setActionCommand("XTFR"); op.add(xtfrButton); JButton emailButton = new JButton(LangTool.getString("xtfr.labelXTFREmail")); emailButton.addActionListener(this); emailButton.setActionCommand("EMAIL"); op.add(emailButton); mp.add(sp,BorderLayout.CENTER); mp.add(op,BorderLayout.SOUTH); this.getContentPane().add(mp,BorderLayout.CENTER); this.setTitle(LangTool.getString("xtfr.title")); initXTFRFields(); pack(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = getSize(); if (frameSize.height > screenSize.height) frameSize.height = screenSize.height; if (frameSize.width > screenSize.width) frameSize.width = screenSize.width; setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2); show(); }
BorderLayout borderLayout = new BorderLayout(); Border emptyBorder = BorderFactory.createEmptyBorder(10, 10, 0, 10); JPanel mp = new JPanel(); mp.setLayout(borderLayout); JPanel sp = new JPanel(); sp.setLayout(new BorderLayout()); sp.setBorder(emptyBorder); as400p = new JPanel(); as400p.setBorder( BorderFactory.createTitledBorder( LangTool.getString("xtfr.labelAS400"))); as400p.setLayout(new GridBagLayout()); JLabel snpLabel = new JLabel(LangTool.getString("xtfr.labelSystemName")); systemName = new JTextField(vt.getHostName()); systemName.setColumns(30); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy =0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); as400p.add(snpLabel, gbc); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 5, 5, 10); as400p.add(systemName,gbc); JLabel hfnpLabel = new JLabel(LangTool.getString("xtfr.labelHostFile")); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); as400p.add(hfnpLabel, gbc); hostFile = new JTextField(); hostFile.setColumns(30); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 5, 5, 10); as400p.add(hostFile, gbc); JLabel idpLabel = new JLabel(LangTool.getString("xtfr.labelUserId")); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); as400p.add(idpLabel, gbc); user = new JTextField(); user.setColumns(15); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 5, 5, 5); as400p.add(user, gbc); JLabel pwpLabel = new JLabel(LangTool.getString("xtfr.labelPassword")); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); as400p.add(pwpLabel, gbc); password = new JPasswordField(); password.setColumns(15); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 5, 5, 5); as400p.add(password, gbc); useQuery = new JCheckBox(LangTool.getString("xtfr.labelUseQuery")); useQuery.addItemListener(this); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); as400p.add(useQuery, gbc); queryWizard = new JButton(LangTool.getString("xtfr.labelQueryWizard")); queryWizard.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { startWizard(); } }); queryWizard.setEnabled(false); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 4; gbc.anchor = GridBagConstraints.WEST; gbc.fill = GridBagConstraints.HORIZONTAL; gbc.insets = new Insets(0, 5, 0, 5); as400p.add(queryWizard, gbc); JLabel fieldsLabel = new JLabel(LangTool.getString("xtfr.labelFields")); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 5; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); as400p.add(fieldsLabel, gbc); allFields = new JRadioButton(LangTool.getString("xtfr.labelAllFields")); allFields.setSelected(true); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 5; gbc.anchor = GridBagConstraints.CENTER; gbc.insets = new Insets(0, 5, 0, 5); as400p.add(allFields, gbc); selectedFields = new JRadioButton(LangTool.getString("xtfr.labelSelectedFields")); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 5; gbc.anchor = GridBagConstraints.CENTER; gbc.insets = new Insets(0, 5, 0, 10); as400p.add(selectedFields, gbc); ButtonGroup fieldGroup = new ButtonGroup(); fieldGroup.add(allFields); fieldGroup.add(selectedFields); JLabel textDescLabel = new JLabel(LangTool.getString("xtfr.labelTxtDesc")); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 6; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); as400p.add(textDescLabel, gbc); txtDesc = new JRadioButton(LangTool.getString("xtfr.labelTxtDescFull")); txtDesc.setSelected(true); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 6; gbc.anchor = GridBagConstraints.CENTER; gbc.insets = new Insets(0, 5, 5, 5); as400p.add(txtDesc, gbc); intDesc = new JRadioButton(LangTool.getString("xtfr.labelTxtDescInt")); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 6; gbc.anchor = GridBagConstraints.CENTER; gbc.insets = new Insets(0, 5, 5, 10); as400p.add(intDesc, gbc); ButtonGroup txtDescGroup = new ButtonGroup(); txtDescGroup.add(txtDesc); txtDescGroup.add(intDesc); JPanel pcp = new JPanel(new GridBagLayout()); pcp.setBorder( BorderFactory.createTitledBorder( LangTool.getString("xtfr.labelpc"))); JLabel pffLabel = new JLabel(LangTool.getString("xtfr.labelFileFormat")); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); pcp.add(pffLabel, gbc); fileFormat = new JComboBox(); fileFormat.setPreferredSize(new Dimension(220, 25)); fileFormat.addItem(htmlFilter.getDescription()); fileFormat.addItem(OOFilter.getDescription()); fileFormat.addItem(ExcelFilter.getDescription()); fileFormat.addItem(KSpreadFilter.getDescription()); fileFormat.addItem(DelimitedFilter.getDescription()); fileFormat.addItem(FixedWidthFilter.getDescription()); fileFormat.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JComboBox cb = (JComboBox) e.getSource(); filter = getFilterByDescription(); if (filter.getOutputFilterInstance().isCustomizable()) customize.setEnabled(true); else customize.setEnabled(false); } }); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 5, 0, 5); pcp.add(fileFormat, gbc); customize = new JButton(LangTool.getString("xtfr.labelCustomize")); customize.setPreferredSize(new Dimension(110, 25)); customize.setActionCommand("CUSTOMIZE"); customize.addActionListener(this); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 5, 0, 10); pcp.add(customize, gbc); fileFormat.setSelectedIndex(0); JLabel pcpLabel = new JLabel(LangTool.getString("xtfr.labelPCFile")); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); pcp.add(pcpLabel, gbc); localFile = new JTextField(); localFile.setColumns(15); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.fill = GridBagConstraints.HORIZONTAL; gbc.insets = new Insets(0, 5, 0, 5); pcp.add(localFile, gbc); JButton browsePC = new JButton(LangTool.getString("xtfr.labelPCBrowse")); browsePC.setActionCommand("BROWSEPC"); browsePC.addActionListener(this); browsePC.setPreferredSize(new Dimension(110, 25)); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.fill = GridBagConstraints.HORIZONTAL; gbc.insets = new Insets(0, 5, 0, 10); pcp.add(browsePC, gbc); decimalSeparator = new JComboBox(); decimalSeparator.setPreferredSize(new Dimension(220, 25)); decimalSeparator.addItem(LangTool.getString("xtfr.period")); decimalSeparator.addItem(LangTool.getString("xtfr.comma")); DecimalFormat formatter = (DecimalFormat) NumberFormat.getInstance(Locale.getDefault()); if (formatter.getDecimalFormatSymbols().getDecimalSeparator() == '.') decimalSeparator.setSelectedIndex(0); else decimalSeparator.setSelectedIndex(1); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 10, 5); pcp.add(new JLabel(LangTool.getString("xtfr.labelDecimal")), gbc); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.fill = GridBagConstraints.HORIZONTAL; gbc.insets = new Insets(0, 5, 5, 5); pcp.add(decimalSeparator, gbc); sp.add(as400p, BorderLayout.NORTH); sp.add(pcp, BorderLayout.SOUTH); JPanel op = new JPanel(new FlowLayout(FlowLayout.CENTER, 10, 10)); JButton xtfrButton = new JButton(LangTool.getString("xtfr.labelXTFR")); xtfrButton.addActionListener(this); xtfrButton.setActionCommand("XTFR"); op.add(xtfrButton); JButton emailButton = new JButton(LangTool.getString("xtfr.labelXTFREmail")); emailButton.addActionListener(this); emailButton.setActionCommand("EMAIL"); op.add(emailButton); mp.add(sp, BorderLayout.CENTER); mp.add(op, BorderLayout.SOUTH); this.getContentPane().add(mp, BorderLayout.CENTER); this.setTitle(LangTool.getString("xtfr.title")); initXTFRFields(); pack(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = getSize(); if (frameSize.height > screenSize.height) frameSize.height = screenSize.height; if (frameSize.width > screenSize.width) frameSize.width = screenSize.width; setLocation( (screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2); as400QueryP = new JPanel(); as400QueryP.setLayout(new BorderLayout()); queryStatement = new JTextArea(5, 40); JScrollPane scrollPane = new JScrollPane(queryStatement); queryStatement.setLineWrap(true); as400QueryP.add(scrollPane, BorderLayout.CENTER); as400FieldP = new JPanel(); AlignLayout as400fLayout = new AlignLayout(); as400FieldP.setLayout(as400fLayout); show(); }
private void initXTFRInfo() { // create some reusable borders and layouts BorderLayout borderLayout = new BorderLayout(); Border etchedBorder = BorderFactory.createEtchedBorder(); // main panel JPanel mp = new JPanel(); mp.setLayout(borderLayout); // system panel JPanel sp = new JPanel(); sp.setLayout(new BorderLayout()); sp.setBorder(etchedBorder); // host panel for as400 as400p = new JPanel(); as400p.setBorder(BorderFactory.createTitledBorder( LangTool.getString("xtfr.labelAS400"))); as400p.setLayout(new BorderLayout()); JPanel as400HostP = new JPanel(); AlignLayout as400pLayout = new AlignLayout(); as400HostP.setLayout(as400pLayout); // system name panel JLabel snpLabel = new JLabel(LangTool.getString("xtfr.labelSystemName")); systemName = new JTextField(vt.getHostName()); systemName.setColumns(30); as400HostP.add(snpLabel); as400HostP.add(systemName); // host file name panel JLabel hfnpLabel = new JLabel(LangTool.getString("xtfr.labelHostFile")); hostFile = new JTextField(); hostFile.setColumns(30); as400HostP.add(hfnpLabel); as400HostP.add(hostFile); // user id panel JLabel idpLabel = new JLabel(LangTool.getString("xtfr.labelUserId")); user = new JTextField(); user.setColumns(15); as400HostP.add(idpLabel); as400HostP.add(user); // password panel JLabel pwpLabel = new JLabel(LangTool.getString("xtfr.labelPassword")); password = new JPasswordField(); password.setColumns(15); as400HostP.add(pwpLabel); as400HostP.add(password); // Query Wizard useQuery = new JCheckBox(LangTool.getString("xtfr.labelUseQuery")); queryWizard = new JButton(LangTool.getString("xtfr.labelQueryWizard")); queryWizard.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { startWizard(); } }); queryWizard.setEnabled(false); useQuery.addItemListener(this); as400HostP.add(useQuery); as400HostP.add(queryWizard); as400p.add(as400HostP,BorderLayout.CENTER); as400QueryP = new JPanel(); as400QueryP.setLayout(new BorderLayout()); queryStatement = new JTextArea(5,40); JScrollPane scrollPane = new JScrollPane(queryStatement); queryStatement.setLineWrap(true); as400QueryP.add(scrollPane,BorderLayout.CENTER); as400FieldP = new JPanel(); AlignLayout as400fLayout = new AlignLayout(); as400FieldP.setLayout(as400fLayout); // Field Selection panel JLabel fieldsLabel = new JLabel(LangTool.getString("xtfr.labelFields")); allFields = new JRadioButton(LangTool.getString("xtfr.labelAllFields")); allFields.setSelected(true); selectedFields = new JRadioButton(LangTool.getString("xtfr.labelSelectedFields")); JPanel fgPanel = new JPanel(); ButtonGroup fieldGroup = new ButtonGroup(); fieldGroup.add(allFields); fieldGroup.add(selectedFields); as400FieldP.add(fieldsLabel); fgPanel.add(allFields); fgPanel.add(selectedFields); as400FieldP.add(fgPanel); // Field Text Description panel JLabel textDescLabel = new JLabel(LangTool.getString("xtfr.labelTxtDesc")); txtDesc = new JRadioButton(LangTool.getString("xtfr.labelTxtDescFull")); txtDesc.setSelected(true); intDesc = new JRadioButton(LangTool.getString("xtfr.labelTxtDescInt")); JPanel tdPanel = new JPanel(); ButtonGroup txtDescGroup = new ButtonGroup(); txtDescGroup.add(txtDesc); txtDescGroup.add(intDesc); as400FieldP.add(textDescLabel); tdPanel.add(txtDesc); tdPanel.add(intDesc); as400FieldP.add(tdPanel); as400p.add(as400HostP,BorderLayout.CENTER); as400p.add(as400FieldP,BorderLayout.SOUTH); // pc panel for pc information JPanel pcp = new JPanel(); pcp.setBorder(BorderFactory.createTitledBorder( LangTool.getString("xtfr.labelpc"))); AlignLayout pcLayout = new AlignLayout(3,5,5); pcp.setLayout(pcLayout); JLabel pffLabel = new JLabel(LangTool.getString("xtfr.labelFileFormat")); fileFormat = new JComboBox(); fileFormat.addItem(htmlFilter.getDescription()); fileFormat.addItem(OOFilter.getDescription()); fileFormat.addItem(ExcelFilter.getDescription()); fileFormat.addItem(KSpreadFilter.getDescription()); fileFormat.addItem(DelimitedFilter.getDescription()); fileFormat.addItem(FixedWidthFilter.getDescription()); fileFormat.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JComboBox cb = (JComboBox)e.getSource(); filter = getFilterByDescription(); if (filter.getOutputFilterInstance().isCustomizable()) customize.setEnabled(true); else customize.setEnabled(false); } }); customize = new JButton(LangTool.getString("xtfr.labelCustomize")); customize.setActionCommand("CUSTOMIZE"); customize.addActionListener(this); // now make sure we set the customizable button enabled or not // depending on the filter. fileFormat.setSelectedIndex(0); pcp.add(pffLabel); pcp.add(fileFormat); pcp.add(customize); JLabel pcpLabel = new JLabel(LangTool.getString("xtfr.labelPCFile")); localFile = new JTextField(); localFile.setColumns(30); JButton browsePC = new JButton(LangTool.getString("xtfr.labelPCBrowse")); browsePC.setActionCommand("BROWSEPC"); browsePC.addActionListener(this); pcp.add(pcpLabel); pcp.add(localFile); pcp.add(browsePC); decimalSeparator = new JComboBox(); decimalSeparator.addItem(LangTool.getString("xtfr.period")); decimalSeparator.addItem(LangTool.getString("xtfr.comma")); // obtain the decimal separator for the machine locale DecimalFormat formatter = (DecimalFormat)NumberFormat.getInstance(Locale.getDefault()) ; if (formatter.getDecimalFormatSymbols().getDecimalSeparator() == '.') decimalSeparator.setSelectedIndex(0); else decimalSeparator.setSelectedIndex(1); pcp.add(new JLabel(LangTool.getString("xtfr.labelDecimal"))); pcp.add(decimalSeparator); sp.add(as400p,BorderLayout.NORTH); sp.add(pcp,BorderLayout.SOUTH); // options panel JPanel op = new JPanel(); JButton xtfrButton = new JButton(LangTool.getString("xtfr.labelXTFR")); xtfrButton.addActionListener(this); xtfrButton.setActionCommand("XTFR"); op.add(xtfrButton); JButton emailButton = new JButton(LangTool.getString("xtfr.labelXTFREmail")); emailButton.addActionListener(this); emailButton.setActionCommand("EMAIL"); op.add(emailButton); mp.add(sp,BorderLayout.CENTER); mp.add(op,BorderLayout.SOUTH); this.getContentPane().add(mp,BorderLayout.CENTER);// this.setModal(false);// this.setModal(true); this.setTitle(LangTool.getString("xtfr.title")); initXTFRFields(); // pack it and center it on the screen pack(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = getSize(); if (frameSize.height > screenSize.height) frameSize.height = screenSize.height; if (frameSize.width > screenSize.width) frameSize.width = screenSize.width; setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2); // now show the world what we can do show(); }
public void start() throws PluginException { try { InitialNaming.bind(NAME, this); WorkUtils.add(new Work("Start device manager") { public void execute() { loadExtensions();
public void start(Device device) throws DeviceNotFoundException, DriverException { getDevice(device.getId()); if (!device.isStarted()) { try { BootLog.debug("Starting " + device.getId()); final StopWatch sw = new StopWatch(); device.start(); sw.stop(); if (sw.isElapsedLongerThen(defaultStartTimeout)) { BootLog.error("Device startup took " + sw + ": " + device.getId()); } else if (sw.isElapsedLongerThen(fastStartTimeout)) { BootLog.info("Device startup took " + sw + ": " + device.getId());
public void start() throws PluginException { try { InitialNaming.bind(NAME, this); WorkUtils.add(new Work("Start device manager") { public void execute() { loadExtensions(); } }); } catch (NamingException ex) { throw new PluginException(ex); } }
}); } catch (NamingException ex) { throw new PluginException(ex);
BootLog.debug("Started " + device.getId()); } catch (DriverException ex) { BootLog.error("Cannot start " + device.getId(), ex); } catch (Throwable ex) { BootLog.error("Cannot start " + device.getId(), ex); }
public void start() throws PluginException { try { InitialNaming.bind(NAME, this); WorkUtils.add(new Work("Start device manager") { public void execute() { loadExtensions(); } }); } catch (NamingException ex) { throw new PluginException(ex); } }
public void stop() throws PluginException { stopDevices(); InitialNaming.unbind(NAME);
public void stop(Device device) throws DeviceNotFoundException, DriverException { getDevice(device.getId()); if (device.isStarted()) { BootLog.debug("Starting " + device.getId()); device.stop(false); BootLog.debug("Stopped " + device.getId()); }
public void stop() throws PluginException { stopDevices(); InitialNaming.unbind(NAME); }
public DeviceAlreadyRegisteredException(String s) { super(s);
public DeviceAlreadyRegisteredException() { super();
public DeviceAlreadyRegisteredException(String s) { super(s); }
public DeviceNotFoundException(String s) { super(s);
public DeviceNotFoundException() { super();
public DeviceNotFoundException(String s) { super(s); }
if (! m.isComponentPartOfCurrentMenu(target))
if (m.getSelectedPath().length > 0 && ! m.isComponentPartOfCurrentMenu(target) && (((JComponent)target).getClientProperty(DONT_CANCEL_POPUP) == null || !((JComponent)target).getClientProperty(DONT_CANCEL_POPUP).equals(Boolean.TRUE))) {
private void mousePressed(MouseEvent ev) { // Autoclose all menus managed by the MenuSelectionManager. MenuSelectionManager m = MenuSelectionManager.defaultManager(); Component target = ev.getComponent(); if (target instanceof Container) target = ((Container) target).findComponentAt(ev.getPoint()); if (! m.isComponentPartOfCurrentMenu(target)) m.clearSelectedPath(); }
}
private void mousePressed(MouseEvent ev) { // Autoclose all menus managed by the MenuSelectionManager. MenuSelectionManager m = MenuSelectionManager.defaultManager(); Component target = ev.getComponent(); if (target instanceof Container) target = ((Container) target).findComponentAt(ev.getPoint()); if (! m.isComponentPartOfCurrentMenu(target)) m.clearSelectedPath(); }
"Tree.hash", new ColorUIResource(new Color(128, 128, 128)),
"Tree.hash", new ColorUIResource(new Color(184, 207, 228)),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoableEdit.undoText", "Undo", "AbstractUndoableEdit.redoText", "Redo", "Button.background", new ColorUIResource(Color.LIGHT_GRAY), "Button.border", new UIDefaults.LazyValue() { public Object createValue(UIDefaults table) { return BasicBorders.getButtonBorder(); } }, "Button.darkShadow", new ColorUIResource(Color.BLACK), "Button.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Button.foreground", new ColorUIResource(Color.BLACK), "Button.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("SPACE"), "pressed", KeyStroke.getKeyStroke("released SPACE"), "released" }), "Button.highlight", new ColorUIResource(Color.WHITE), "Button.light", new ColorUIResource(Color.LIGHT_GRAY), "Button.margin", new InsetsUIResource(2, 14, 2, 14), "Button.shadow", new ColorUIResource(Color.GRAY), "Button.textIconGap", new Integer(4), "Button.textShiftOffset", new Integer(0), "CheckBox.background", new ColorUIResource(new Color(204, 204, 204)), "CheckBox.border", new BorderUIResource.CompoundBorderUIResource(null, null), "CheckBox.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("SPACE"), "pressed", KeyStroke.getKeyStroke("released SPACE"), "released" }), "CheckBox.font", new FontUIResource("Dialog", Font.PLAIN, 12), "CheckBox.foreground", new ColorUIResource(darkShadow), "CheckBox.icon", new UIDefaults.LazyValue() { public Object createValue(UIDefaults def) { return BasicIconFactory.getCheckBoxIcon(); } }, "CheckBox.checkIcon", new UIDefaults.LazyValue() { public Object createValue(UIDefaults def) { return BasicIconFactory.getMenuItemCheckIcon(); } }, "CheckBox.margin",new InsetsUIResource(2, 2, 2, 2), "CheckBox.textIconGap", new Integer(4), "CheckBox.textShiftOffset", new Integer(0), "CheckBoxMenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "CheckBoxMenuItem.acceleratorForeground", new ColorUIResource(new Color(16, 16, 16)), "CheckBoxMenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white), "CheckBoxMenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(), "CheckBoxMenuItem.background", new ColorUIResource(light), "CheckBoxMenuItem.border", new BasicBorders.MarginBorder(), "CheckBoxMenuItem.borderPainted", Boolean.FALSE, "CheckBoxMenuItem.checkIcon", new UIDefaults.LazyValue() { public Object createValue(UIDefaults def) { return BasicIconFactory.getCheckBoxMenuItemIcon(); } }, "CheckBoxMenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12), "CheckBoxMenuItem.foreground", new ColorUIResource(darkShadow), "CheckBoxMenuItem.margin", new InsetsUIResource(2, 2, 2, 2), "CheckBoxMenuItem.selectionBackground", new ColorUIResource(Color.black), "CheckBoxMenuItem.selectionForeground", new ColorUIResource(Color.white), "ColorChooser.background", new ColorUIResource(light), "ColorChooser.cancelText", "Cancel", "ColorChooser.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ColorChooser.foreground", new ColorUIResource(darkShadow), "ColorChooser.hsbBlueText", "B", "ColorChooser.hsbBrightnessText", "B", "ColorChooser.hsbGreenText", "G", "ColorChooser.hsbHueText", "H", "ColorChooser.hsbNameText", "HSB", "ColorChooser.hsbRedText", "R", "ColorChooser.hsbSaturationText", "S", "ColorChooser.okText", "OK", "ColorChooser.previewText", "Preview", "ColorChooser.resetText", "Reset", "ColorChooser.rgbBlueMnemonic", "66", "ColorChooser.rgbBlueText", "Blue", "ColorChooser.rgbGreenMnemonic", "78", "ColorChooser.rgbGreenText", "Green", "ColorChooser.rgbNameText", "RGB", "ColorChooser.rgbRedMnemonic", "68", "ColorChooser.rgbRedText", "Red", "ColorChooser.sampleText", "Sample Text Sample Text", "ColorChooser.swatchesDefaultRecentColor", new ColorUIResource(light), "ColorChooser.swatchesNameText", "Swatches", "ColorChooser.swatchesRecentSwatchSize", new Dimension(10, 10), "ColorChooser.swatchesRecentText", "Recent:", "ColorChooser.swatchesSwatchSize", new Dimension(10, 10), "ComboBox.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "hidePopup", "PAGE_UP", "pageUpPassThrough", "PAGE_DOWN", "pageDownPassThrough", "HOME", "homePassThrough", "END", "endPassThrough" }), "ComboBox.background", new ColorUIResource(Color.white), "ComboBox.buttonBackground", new ColorUIResource(light), "ComboBox.buttonDarkShadow", new ColorUIResource(darkShadow), "ComboBox.buttonHighlight", new ColorUIResource(highLight), "ComboBox.buttonShadow", new ColorUIResource(shadow), "ComboBox.disabledBackground", new ColorUIResource(light), "ComboBox.disabledForeground", new ColorUIResource(Color.gray), "ComboBox.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "ComboBox.foreground", new ColorUIResource(Color.black), "ComboBox.selectionBackground", new ColorUIResource(0, 0, 128), "ComboBox.selectionForeground", new ColorUIResource(Color.white), "Desktop.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "KP_LEFT", "left", "KP_RIGHT", "right", "ctrl F5", "restore", "LEFT", "left", "ctrl alt F6", "selectNextFrame", "UP", "up", "ctrl F6", "selectNextFrame", "RIGHT", "right", "DOWN", "down", "ctrl F7", "move", "ctrl F8", "resize", "ESCAPE", "escape", "ctrl TAB", "selectNextFrame", "ctrl F9", "minimize", "KP_UP", "up", "ctrl F4", "close", "KP_DOWN", "down", "ctrl F10", "maximize", "ctrl alt shift F6","selectPreviousFrame" }), "DesktopIcon.border", new BorderUIResource.CompoundBorderUIResource(null, null), "EditorPane.background", new ColorUIResource(Color.white), "EditorPane.border", BasicBorders.getMarginBorder(), "EditorPane.caretBlinkRate", new Integer(500), "EditorPane.caretForeground", new ColorUIResource(Color.black), "EditorPane.font", new FontUIResource("Serif", Font.PLAIN, 12), "EditorPane.foreground", new ColorUIResource(Color.black), "EditorPane.inactiveForeground", new ColorUIResource(Color.gray), "EditorPane.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("shift UP"), "selection-up", KeyStroke.getKeyStroke("ctrl RIGHT"), "caret-next-word", KeyStroke.getKeyStroke("shift ctrl LEFT"), "selection-previous-word", KeyStroke.getKeyStroke("shift KP_UP"), "selection-up", KeyStroke.getKeyStroke("DOWN"), "caret-down", KeyStroke.getKeyStroke("shift ctrl T"), "previous-link-action", KeyStroke.getKeyStroke("ctrl LEFT"), "caret-previous-word", KeyStroke.getKeyStroke("CUT"), "cut-to-clipboard", KeyStroke.getKeyStroke("END"), "caret-end-line", KeyStroke.getKeyStroke("shift PAGE_UP"), "selection-page-up", KeyStroke.getKeyStroke("KP_UP"), "caret-up", KeyStroke.getKeyStroke("DELETE"), "delete-next", KeyStroke.getKeyStroke("ctrl HOME"), "caret-begin", KeyStroke.getKeyStroke("shift LEFT"), "selection-backward", KeyStroke.getKeyStroke("ctrl END"), "caret-end", KeyStroke.getKeyStroke("BACK_SPACE"), "delete-previous", KeyStroke.getKeyStroke("shift ctrl RIGHT"), "selection-next-word", KeyStroke.getKeyStroke("LEFT"), "caret-backward", KeyStroke.getKeyStroke("KP_LEFT"), "caret-backward", KeyStroke.getKeyStroke("shift KP_RIGHT"), "selection-forward", KeyStroke.getKeyStroke("ctrl SPACE"), "activate-link-action", KeyStroke.getKeyStroke("ctrl H"), "delete-previous", KeyStroke.getKeyStroke("ctrl BACK_SLASH"), "unselect", KeyStroke.getKeyStroke("ENTER"), "insert-break", KeyStroke.getKeyStroke("shift HOME"), "selection-begin-line", KeyStroke.getKeyStroke("RIGHT"), "caret-forward", KeyStroke.getKeyStroke("shift ctrl PAGE_UP"), "selection-page-left", KeyStroke.getKeyStroke("shift DOWN"), "selection-down", KeyStroke.getKeyStroke("PAGE_DOWN"), "page-down", KeyStroke.getKeyStroke("shift KP_LEFT"), "selection-backward", KeyStroke.getKeyStroke("shift ctrl O"), "toggle-componentOrientation", KeyStroke.getKeyStroke("ctrl X"), "cut-to-clipboard", KeyStroke.getKeyStroke("shift ctrl PAGE_DOWN"), "selection-page-right", KeyStroke.getKeyStroke("ctrl C"), "copy-to-clipboard", KeyStroke.getKeyStroke("ctrl KP_RIGHT"), "caret-next-word", KeyStroke.getKeyStroke("shift END"), "selection-end-line", KeyStroke.getKeyStroke("ctrl KP_LEFT"), "caret-previous-word", KeyStroke.getKeyStroke("HOME"), "caret-begin-line", KeyStroke.getKeyStroke("ctrl V"), "paste-from-clipboard", KeyStroke.getKeyStroke("KP_DOWN"), "caret-down", KeyStroke.getKeyStroke("ctrl A"), "select-all", KeyStroke.getKeyStroke("shift RIGHT"), "selection-forward", KeyStroke.getKeyStroke("shift ctrl END"), "selection-end", KeyStroke.getKeyStroke("COPY"), "copy-to-clipboard", KeyStroke.getKeyStroke("shift ctrl KP_LEFT"), "selection-previous-word", KeyStroke.getKeyStroke("ctrl T"), "next-link-action", KeyStroke.getKeyStroke("shift KP_DOWN"), "selection-down", KeyStroke.getKeyStroke("TAB"), "insert-tab", KeyStroke.getKeyStroke("UP"), "caret-up", KeyStroke.getKeyStroke("shift ctrl HOME"), "selection-begin", KeyStroke.getKeyStroke("shift PAGE_DOWN"), "selection-page-down", KeyStroke.getKeyStroke("KP_RIGHT"), "caret-forward", KeyStroke.getKeyStroke("shift ctrl KP_RIGHT"), "selection-next-word", KeyStroke.getKeyStroke("PAGE_UP"), "page-up", KeyStroke.getKeyStroke("PASTE"), "paste-from-clipboard" }), "EditorPane.margin", new InsetsUIResource(3, 3, 3, 3), "EditorPane.selectionBackground", new ColorUIResource(Color.black), "EditorPane.selectionForeground", new ColorUIResource(Color.white), "FileChooser.acceptAllFileFilterText", "All Files (*.*)", "FileChooser.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "cancelSelection" }), "FileChooser.cancelButtonMnemonic", "67", "FileChooser.cancelButtonText", "Cancel", "FileChooser.cancelButtonToolTipText", "Abort file chooser dialog", "FileChooser.directoryDescriptionText", "Directory", "FileChooser.fileDescriptionText", "Generic File", "FileChooser.directoryOpenButtonMnemonic", "79", "FileChooser.helpButtonMnemonic", "72", "FileChooser.helpButtonText", "Help", "FileChooser.helpButtonToolTipText", "FileChooser help", "FileChooser.newFolderErrorSeparator", ":", "FileChooser.newFolderErrorText", "Error creating new folder", "FileChooser.openButtonMnemonic", "79", "FileChooser.openButtonText", "Open", "FileChooser.openButtonToolTipText", "Open selected file", "FileChooser.saveButtonMnemonic", "83", "FileChooser.saveButtonText", "Save", "FileChooser.saveButtonToolTipText", "Save selected file", "FileChooser.updateButtonMnemonic", "85", "FileChooser.updateButtonText", "Update", "FileChooser.updateButtonToolTipText", "Update directory listing", "FocusManagerClassName", "TODO", "FormattedTextField.background", new ColorUIResource(light), "FormattedTextField.caretForeground", new ColorUIResource(Color.black), "FormattedTextField.margin", new InsetsUIResource(0, 0, 0, 0), "FormattedTextField.caretBlinkRate", new Integer(500), "FormattedTextField.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "FormattedTextField.foreground", new ColorUIResource(Color.black), "FormattedTextField.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("KP_UP"), "increment", KeyStroke.getKeyStroke("END"), "caret-end-line", KeyStroke.getKeyStroke("shift ctrl O"), "toggle-componentOrientation", KeyStroke.getKeyStroke("shift KP_LEFT"), "selection-backward", KeyStroke.getKeyStroke("shift RIGHT"), "selection-forward", KeyStroke.getKeyStroke("KP_DOWN"), "decrement", KeyStroke.getKeyStroke("HOME"), "caret-begin-line", KeyStroke.getKeyStroke("ctrl V"), "paste-from-clipboard", KeyStroke.getKeyStroke("ctrl H"), "delete-previous", KeyStroke.getKeyStroke("KP_LEFT"), "caret-backward", KeyStroke.getKeyStroke("LEFT"), "caret-backward", KeyStroke.getKeyStroke("ctrl X"), "cut-to-clipboard", KeyStroke.getKeyStroke("KP_RIGHT"), "caret-forward", KeyStroke.getKeyStroke("UP"), "increment", KeyStroke.getKeyStroke("shift ctrl KP_RIGHT"), "selection-next-word", KeyStroke.getKeyStroke("COPY"), "copy-to-clipboard", KeyStroke.getKeyStroke("shift HOME"), "selection-begin-line", KeyStroke.getKeyStroke("ESCAPE"), "reset-field-edit", KeyStroke.getKeyStroke("RIGHT"), "caret-forward", KeyStroke.getKeyStroke("shift ctrl LEFT"), "selection-previous-word", KeyStroke.getKeyStroke("ctrl KP_LEFT"), "caret-previous-word", KeyStroke.getKeyStroke("DOWN"), "decrement", KeyStroke.getKeyStroke("ctrl KP_RIGHT"), "caret-next-word", KeyStroke.getKeyStroke("PASTE"), "paste-from-clipboard", KeyStroke.getKeyStroke("shift ctrl RIGHT"), "selection-next-word", KeyStroke.getKeyStroke("ctrl BACK_SLASH"), "unselect", KeyStroke.getKeyStroke("ctrl A"), "select-all", KeyStroke.getKeyStroke("shift KP_RIGHT"), "selection-forward", KeyStroke.getKeyStroke("CUT"), "cut-to-clipboard", KeyStroke.getKeyStroke("ctrl LEFT"), "caret-previous-word", KeyStroke.getKeyStroke("BACK_SPACE"), "delete-previous", KeyStroke.getKeyStroke("shift ctrl KP_LEFT"), "selection-previous-word", KeyStroke.getKeyStroke("ctrl C"), "copy-to-clipboard", KeyStroke.getKeyStroke("shift END"), "selection-end-line", KeyStroke.getKeyStroke("ctrl RIGHT"), "caret-next-word", KeyStroke.getKeyStroke("DELETE"), "delete-next", KeyStroke.getKeyStroke("ENTER"), "notify-field-accept", KeyStroke.getKeyStroke("shift LEFT"), "selection-backward" }), "FormattedTextField.inactiveBackground", new ColorUIResource(light), "FormattedTextField.inactiveForeground", new ColorUIResource(Color.gray), "FormattedTextField.selectionBackground", new ColorUIResource(Color.black), "FormattedTextField.selectionForeground", new ColorUIResource(Color.white), "FormView.resetButtonText", "Reset", "FormView.submitButtonText", "Submit Query", "InternalFrame.activeTitleBackground", new ColorUIResource(0, 0, 128), "InternalFrame.activeTitleForeground", new ColorUIResource(Color.white), "InternalFrame.border", new UIDefaults.LazyValue() { public Object createValue(UIDefaults table) { Color lineColor = new Color(238, 238, 238); Border inner = BorderFactory.createLineBorder(lineColor, 1); Color shadowInner = new Color(184, 207, 229); Color shadowOuter = new Color(122, 138, 153); Border outer = BorderFactory.createBevelBorder(BevelBorder.RAISED, Color.WHITE, Color.WHITE, shadowOuter, shadowInner); Border border = new BorderUIResource.CompoundBorderUIResource(outer, inner); return border; } }, "InternalFrame.borderColor", new ColorUIResource(light), "InternalFrame.borderDarkShadow", new ColorUIResource(Color.BLACK), "InternalFrame.borderHighlight", new ColorUIResource(Color.WHITE), "InternalFrame.borderLight", new ColorUIResource(Color.LIGHT_GRAY), "InternalFrame.borderShadow", new ColorUIResource(Color.GRAY), "InternalFrame.closeIcon", BasicIconFactory.createEmptyFrameIcon(), "InternalFrame.icon", new UIDefaults.LazyValue() { public Object createValue(UIDefaults def) { return new IconUIResource(BasicIconFactory.createEmptyFrameIcon()); } }, "InternalFrame.iconifyIcon", BasicIconFactory.createEmptyFrameIcon(), "InternalFrame.inactiveTitleBackground", new ColorUIResource(Color.gray), "InternalFrame.inactiveTitleForeground", new ColorUIResource(Color.lightGray), "InternalFrame.maximizeIcon", BasicIconFactory.createEmptyFrameIcon(), "InternalFrame.minimizeIcon", BasicIconFactory.createEmptyFrameIcon(), "InternalFrame.titleFont", new FontUIResource("Dialog", Font.BOLD, 12), "InternalFrame.windowBindings", new Object[] { "shift ESCAPE", "showSystemMenu", "ctrl SPACE", "showSystemMenu", "ESCAPE", "showSystemMenu" }, "Label.background", new ColorUIResource(light), "Label.disabledForeground", new ColorUIResource(Color.white), "Label.disabledShadow", new ColorUIResource(shadow), "Label.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Label.foreground", new ColorUIResource(darkShadow), "List.background", new ColorUIResource(Color.white), "List.border", new BasicBorders.MarginBorder(), "List.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("ctrl DOWN"), "selectNextRowChangeLead", KeyStroke.getKeyStroke("shift UP"), "selectPreviousRowExtendSelection", KeyStroke.getKeyStroke("ctrl RIGHT"), "selectNextColumnChangeLead", KeyStroke.getKeyStroke("shift ctrl LEFT"), "selectPreviousColumnExtendSelection", KeyStroke.getKeyStroke("shift KP_UP"), "selectPreviousRowExtendSelection", KeyStroke.getKeyStroke("DOWN"), "selectNextRow", KeyStroke.getKeyStroke("ctrl UP"), "selectPreviousRowChangeLead", KeyStroke.getKeyStroke("ctrl LEFT"), "selectPreviousColumnChangeLead", KeyStroke.getKeyStroke("CUT"), "cut", KeyStroke.getKeyStroke("END"), "selectLastRow", KeyStroke.getKeyStroke("shift PAGE_UP"), "scrollUpExtendSelection", KeyStroke.getKeyStroke("KP_UP"), "selectPreviousRow", KeyStroke.getKeyStroke("shift ctrl UP"), "selectPreviousRowExtendSelection", KeyStroke.getKeyStroke("ctrl HOME"), "selectFirstRowChangeLead", KeyStroke.getKeyStroke("shift LEFT"), "selectPreviousColumnExtendSelection", KeyStroke.getKeyStroke("ctrl END"), "selectLastRowChangeLead", KeyStroke.getKeyStroke("ctrl PAGE_DOWN"), "scrollDownChangeLead", KeyStroke.getKeyStroke("shift ctrl RIGHT"), "selectNextColumnExtendSelection", KeyStroke.getKeyStroke("LEFT"), "selectPreviousColumn", KeyStroke.getKeyStroke("ctrl PAGE_UP"), "scrollUpChangeLead", KeyStroke.getKeyStroke("KP_LEFT"), "selectPreviousColumn", KeyStroke.getKeyStroke("shift KP_RIGHT"), "selectNextColumnExtendSelection", KeyStroke.getKeyStroke("SPACE"), "addToSelection", KeyStroke.getKeyStroke("ctrl SPACE"), "toggleAndAnchor", KeyStroke.getKeyStroke("shift SPACE"), "extendTo", KeyStroke.getKeyStroke("shift ctrl SPACE"), "moveSelectionTo", KeyStroke.getKeyStroke("shift ctrl DOWN"), "selectNextRowExtendSelection", KeyStroke.getKeyStroke("ctrl BACK_SLASH"), "clearSelection", KeyStroke.getKeyStroke("shift HOME"), "selectFirstRowExtendSelection", KeyStroke.getKeyStroke("RIGHT"), "selectNextColumn", KeyStroke.getKeyStroke("shift ctrl PAGE_UP"), "scrollUpExtendSelection", KeyStroke.getKeyStroke("shift DOWN"), "selectNextRowExtendSelection", KeyStroke.getKeyStroke("PAGE_DOWN"), "scrollDown", KeyStroke.getKeyStroke("shift ctrl KP_UP"), "selectPreviousRowExtendSelection", KeyStroke.getKeyStroke("shift KP_LEFT"), "selectPreviousColumnExtendSelection", KeyStroke.getKeyStroke("ctrl X"), "cut", KeyStroke.getKeyStroke("shift ctrl PAGE_DOWN"), "scrollDownExtendSelection", KeyStroke.getKeyStroke("ctrl SLASH"), "selectAll", KeyStroke.getKeyStroke("ctrl C"), "copy", KeyStroke.getKeyStroke("ctrl KP_RIGHT"), "selectNextColumnChangeLead", KeyStroke.getKeyStroke("shift END"), "selectLastRowExtendSelection", KeyStroke.getKeyStroke("shift ctrl KP_DOWN"), "selectNextRowExtendSelection", KeyStroke.getKeyStroke("ctrl KP_LEFT"), "selectPreviousColumnChangeLead", KeyStroke.getKeyStroke("HOME"), "selectFirstRow", KeyStroke.getKeyStroke("ctrl V"), "paste", KeyStroke.getKeyStroke("KP_DOWN"), "selectNextRow", KeyStroke.getKeyStroke("ctrl KP_DOWN"), "selectNextRowChangeLead", KeyStroke.getKeyStroke("shift RIGHT"), "selectNextColumnExtendSelection", KeyStroke.getKeyStroke("ctrl A"), "selectAll", KeyStroke.getKeyStroke("shift ctrl END"), "selectLastRowExtendSelection", KeyStroke.getKeyStroke("COPY"), "copy", KeyStroke.getKeyStroke("ctrl KP_UP"), "selectPreviousRowChangeLead", KeyStroke.getKeyStroke("shift ctrl KP_LEFT"), "selectPreviousColumnExtendSelection", KeyStroke.getKeyStroke("shift KP_DOWN"), "selectNextRowExtendSelection", KeyStroke.getKeyStroke("UP"), "selectPreviousRow", KeyStroke.getKeyStroke("shift ctrl HOME"), "selectFirstRowExtendSelection", KeyStroke.getKeyStroke("shift PAGE_DOWN"), "scrollDownExtendSelection", KeyStroke.getKeyStroke("KP_RIGHT"), "selectNextColumn", KeyStroke.getKeyStroke("shift ctrl KP_RIGHT"), "selectNextColumnExtendSelection", KeyStroke.getKeyStroke("PAGE_UP"), "scrollUp", KeyStroke.getKeyStroke("PASTE"), "paste" }), "List.font", new FontUIResource("Dialog", Font.PLAIN, 12), "List.foreground", new ColorUIResource(Color.black), "List.selectionBackground", new ColorUIResource(0, 0, 128), "List.selectionForeground", new ColorUIResource(Color.white), "List.focusCellHighlightBorder", new BorderUIResource. LineBorderUIResource(new ColorUIResource(Color.yellow)), "Menu.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "Menu.crossMenuMnemonic", Boolean.TRUE, "Menu.acceleratorForeground", new ColorUIResource(darkShadow), "Menu.acceleratorSelectionForeground", new ColorUIResource(Color.white), "Menu.arrowIcon", BasicIconFactory.getMenuArrowIcon(), "Menu.background", new ColorUIResource(light), "Menu.border", new BasicBorders.MarginBorder(), "Menu.borderPainted", Boolean.FALSE, "Menu.checkIcon", BasicIconFactory.getMenuItemCheckIcon(), "Menu.consumesTabs", Boolean.TRUE, "Menu.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Menu.foreground", new ColorUIResource(darkShadow), "Menu.margin", new InsetsUIResource(2, 2, 2, 2), "Menu.selectedWindowInputMapBindings", new Object[] { "ESCAPE", "cancel", "DOWN", "selectNext", "KP_DOWN", "selectNext", "UP", "selectPrevious", "KP_UP", "selectPrevious", "LEFT", "selectParent", "KP_LEFT", "selectParent", "RIGHT", "selectChild", "KP_RIGHT", "selectChild", "ENTER", "return", "SPACE", "return" }, "Menu.menuPopupOffsetX", new Integer(0), "Menu.menuPopupOffsetY", new Integer(0), "Menu.submenuPopupOffsetX", new Integer(0), "Menu.submenuPopupOffsetY", new Integer(0), "Menu.selectionBackground", new ColorUIResource(Color.black), "Menu.selectionForeground", new ColorUIResource(Color.white), "MenuBar.background", new ColorUIResource(light), "MenuBar.border", new BasicBorders.MenuBarBorder(null, null), "MenuBar.font", new FontUIResource("Dialog", Font.PLAIN, 12), "MenuBar.foreground", new ColorUIResource(darkShadow), "MenuBar.highlight", new ColorUIResource(highLight), "MenuBar.shadow", new ColorUIResource(shadow), "MenuBar.windowBindings", new Object[] { "F10", "takeFocus" }, "MenuItem.acceleratorDelimiter", "+", "MenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "MenuItem.acceleratorForeground", new ColorUIResource(darkShadow), "MenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white), "MenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(), "MenuItem.background", new ColorUIResource(light), "MenuItem.border", new BasicBorders.MarginBorder(), "MenuItem.borderPainted", Boolean.FALSE, "MenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12), "MenuItem.foreground", new ColorUIResource(darkShadow), "MenuItem.margin", new InsetsUIResource(2, 2, 2, 2), "MenuItem.selectionBackground", new ColorUIResource(Color.black), "MenuItem.selectionForeground", new ColorUIResource(Color.white), "OptionPane.background", new ColorUIResource(light), "OptionPane.border", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), "OptionPane.buttonAreaBorder", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), "OptionPane.buttonClickThreshhold", new Integer(500), "OptionPane.cancelButtonText", "Cancel", "OptionPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "OptionPane.foreground", new ColorUIResource(darkShadow), "OptionPane.messageAreaBorder", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), "OptionPane.messageForeground", new ColorUIResource(darkShadow), "OptionPane.minimumSize", new DimensionUIResource(BasicOptionPaneUI.MinimumWidth, BasicOptionPaneUI.MinimumHeight), "OptionPane.noButtonText", "No", "OptionPane.okButtonText", "OK", "OptionPane.windowBindings", new Object[] { "ESCAPE", "close" }, "OptionPane.yesButtonText", "Yes", "Panel.background", new ColorUIResource(light), "Panel.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Panel.foreground", new ColorUIResource(Color.black), "PasswordField.background", new ColorUIResource(light), "PasswordField.border", new BasicBorders.FieldBorder(null, null, null, null), "PasswordField.caretBlinkRate", new Integer(500), "PasswordField.caretForeground", new ColorUIResource(Color.black), "PasswordField.font", new FontUIResource("MonoSpaced", Font.PLAIN, 12), "PasswordField.foreground", new ColorUIResource(Color.black), "PasswordField.inactiveBackground", new ColorUIResource(light), "PasswordField.inactiveForeground", new ColorUIResource(Color.gray), "PasswordField.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("END"), "caret-end-line", KeyStroke.getKeyStroke("shift ctrl O"), "toggle-componentOrientation", KeyStroke.getKeyStroke("shift KP_LEFT"), "selection-backward", KeyStroke.getKeyStroke("shift RIGHT"), "selection-forward", KeyStroke.getKeyStroke("HOME"), "caret-begin-line", KeyStroke.getKeyStroke("ctrl V"), "paste-from-clipboard", KeyStroke.getKeyStroke("ctrl H"), "delete-previous", KeyStroke.getKeyStroke("KP_LEFT"), "caret-backward", KeyStroke.getKeyStroke("LEFT"), "caret-backward", KeyStroke.getKeyStroke("ctrl X"), "cut-to-clipboard", KeyStroke.getKeyStroke("KP_RIGHT"), "caret-forward", KeyStroke.getKeyStroke("shift ctrl KP_RIGHT"), "selection-end-line", KeyStroke.getKeyStroke("COPY"), "copy-to-clipboard", KeyStroke.getKeyStroke("shift HOME"), "selection-begin-line", KeyStroke.getKeyStroke("RIGHT"), "caret-forward", KeyStroke.getKeyStroke("shift ctrl LEFT"), "selection-begin-line", KeyStroke.getKeyStroke("ctrl KP_LEFT"), "caret-begin-line", KeyStroke.getKeyStroke("ctrl KP_RIGHT"), "caret-end-line", KeyStroke.getKeyStroke("PASTE"), "paste-from-clipboard", KeyStroke.getKeyStroke("shift ctrl RIGHT"), "selection-end-line", KeyStroke.getKeyStroke("ctrl BACK_SLASH"), "unselect", KeyStroke.getKeyStroke("ctrl A"), "select-all", KeyStroke.getKeyStroke("shift KP_RIGHT"), "selection-forward", KeyStroke.getKeyStroke("CUT"), "cut-to-clipboard", KeyStroke.getKeyStroke("ctrl LEFT"), "caret-begin-line", KeyStroke.getKeyStroke("BACK_SPACE"), "delete-previous", KeyStroke.getKeyStroke("shift ctrl KP_LEFT"), "selection-begin-line", KeyStroke.getKeyStroke("ctrl C"), "copy-to-clipboard", KeyStroke.getKeyStroke("shift END"), "selection-end-line", KeyStroke.getKeyStroke("ctrl RIGHT"), "caret-end-line", KeyStroke.getKeyStroke("DELETE"), "delete-next", KeyStroke.getKeyStroke("ENTER"), "notify-field-accept", KeyStroke.getKeyStroke("shift LEFT"), "selection-backward" }), "PasswordField.margin", new InsetsUIResource(0, 0, 0, 0), "PasswordField.selectionBackground", new ColorUIResource(Color.black), "PasswordField.selectionForeground", new ColorUIResource(Color.white), "PopupMenu.background", new ColorUIResource(light), "PopupMenu.border", new BorderUIResource.BevelBorderUIResource(0), "PopupMenu.font", new FontUIResource("Dialog", Font.PLAIN, 12), "PopupMenu.foreground", new ColorUIResource(darkShadow), "ProgressBar.background", new ColorUIResource(Color.LIGHT_GRAY), "ProgressBar.border", new BorderUIResource.LineBorderUIResource(Color.GREEN, 2), "ProgressBar.cellLength", new Integer(1), "ProgressBar.cellSpacing", new Integer(0), "ProgressBar.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ProgressBar.foreground", new ColorUIResource(0, 0, 128), "ProgressBar.selectionBackground", new ColorUIResource(0, 0, 128), "ProgressBar.selectionForeground", new ColorUIResource(Color.LIGHT_GRAY), "ProgressBar.repaintInterval", new Integer(50), "ProgressBar.cycleTime", new Integer(3000), "RadioButton.background", new ColorUIResource(light), "RadioButton.border", new BorderUIResource.CompoundBorderUIResource(null, null), "RadioButton.darkShadow", new ColorUIResource(shadow), "RadioButton.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("SPACE"), "pressed", KeyStroke.getKeyStroke("released SPACE"), "released" }), "RadioButton.font", new FontUIResource("Dialog", Font.PLAIN, 12), "RadioButton.foreground", new ColorUIResource(darkShadow), "RadioButton.highlight", new ColorUIResource(highLight), "RadioButton.icon", new UIDefaults.LazyValue() { public Object createValue(UIDefaults def) { return BasicIconFactory.getRadioButtonIcon(); } }, "RadioButton.light", new ColorUIResource(highLight), "RadioButton.margin", new InsetsUIResource(2, 2, 2, 2), "RadioButton.shadow", new ColorUIResource(shadow), "RadioButton.textIconGap", new Integer(4), "RadioButton.textShiftOffset", new Integer(0), "RadioButtonMenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "RadioButtonMenuItem.acceleratorForeground", new ColorUIResource(darkShadow), "RadioButtonMenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white), "RadioButtonMenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(), "RadioButtonMenuItem.background", new ColorUIResource(light), "RadioButtonMenuItem.border", new BasicBorders.MarginBorder(), "RadioButtonMenuItem.borderPainted", Boolean.FALSE, "RadioButtonMenuItem.checkIcon", BasicIconFactory.getRadioButtonMenuItemIcon(), "RadioButtonMenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12), "RadioButtonMenuItem.foreground", new ColorUIResource(darkShadow), "RadioButtonMenuItem.margin", new InsetsUIResource(2, 2, 2, 2), "RadioButtonMenuItem.selectionBackground", new ColorUIResource(Color.black), "RadioButtonMenuItem.selectionForeground", new ColorUIResource(Color.white), "RootPane.defaultButtonWindowKeyBindings", new Object[] { "ENTER", "press", "released ENTER", "release", "ctrl ENTER", "press", "ctrl released ENTER", "release" }, "ScrollBar.background", new ColorUIResource(224, 224, 224), "ScrollBar.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "PAGE_UP", "negativeBlockIncrement", "PAGE_DOWN", "positiveBlockIncrement", "END", "maxScroll", "HOME", "minScroll", "LEFT", "negativeUnitIncrement", "KP_UP", "negativeUnitIncrement", "KP_DOWN", "positiveUnitIncrement", "UP", "negativeUnitIncrement", "RIGHT", "positiveUnitIncrement", "KP_LEFT", "negativeUnitIncrement", "DOWN", "positiveUnitIncrement", "KP_RIGHT", "positiveUnitIncrement" }), "ScrollBar.foreground", new ColorUIResource(light), "ScrollBar.maximumThumbSize", new DimensionUIResource(4096, 4096), "ScrollBar.minimumThumbSize", new DimensionUIResource(8, 8), "ScrollBar.thumb", new ColorUIResource(light), "ScrollBar.thumbDarkShadow", new ColorUIResource(shadow), "ScrollBar.thumbHighlight", new ColorUIResource(highLight), "ScrollBar.thumbShadow", new ColorUIResource(shadow), "ScrollBar.track", new ColorUIResource(light), "ScrollBar.trackHighlight", new ColorUIResource(shadow), "ScrollBar.width", new Integer(16), "ScrollPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "PAGE_UP", "scrollUp", "KP_LEFT", "unitScrollLeft", "ctrl PAGE_DOWN","scrollRight", "PAGE_DOWN", "scrollDown", "KP_RIGHT", "unitScrollRight", "LEFT", "unitScrollLeft", "ctrl END", "scrollEnd", "UP", "unitScrollUp", "RIGHT", "unitScrollRight", "DOWN", "unitScrollDown", "ctrl HOME", "scrollHome", "ctrl PAGE_UP", "scrollLeft", "KP_UP", "unitScrollUp", "KP_DOWN", "unitScrollDown" }), "ScrollPane.background", new ColorUIResource(light), "ScrollPane.border", new BorderUIResource.EtchedBorderUIResource(), "ScrollPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ScrollPane.foreground", new ColorUIResource(darkShadow), "Separator.background", new ColorUIResource(highLight), "Separator.foreground", new ColorUIResource(shadow), "Separator.highlight", new ColorUIResource(highLight), "Separator.shadow", new ColorUIResource(shadow), "Slider.background", new ColorUIResource(light), "Slider.focus", new ColorUIResource(shadow), "Slider.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "ctrl PAGE_DOWN", "negativeBlockIncrement", "PAGE_DOWN", "negativeBlockIncrement", "PAGE_UP", "positiveBlockIncrement", "ctrl PAGE_UP", "positiveBlockIncrement", "KP_RIGHT", "positiveUnitIncrement", "DOWN", "negativeUnitIncrement", "KP_LEFT", "negativeUnitIncrement", "RIGHT", "positiveUnitIncrement", "KP_DOWN", "negativeUnitIncrement", "UP", "positiveUnitIncrement", "KP_UP", "positiveUnitIncrement", "LEFT", "negativeUnitIncrement", "HOME", "minScroll", "END", "maxScroll" }), "Slider.focusInsets", new InsetsUIResource(2, 2, 2, 2), "Slider.foreground", new ColorUIResource(light), "Slider.highlight", new ColorUIResource(highLight), "Slider.shadow", new ColorUIResource(shadow), "Slider.thumbHeight", new Integer(20), "Slider.thumbWidth", new Integer(11), "Slider.tickHeight", new Integer(12), "Spinner.background", new ColorUIResource(light), "Spinner.foreground", new ColorUIResource(light), "Spinner.arrowButtonSize", new DimensionUIResource(16, 5), "Spinner.editorBorderPainted", Boolean.FALSE, "Spinner.font", new FontUIResource("MonoSpaced", Font.PLAIN, 12), "SplitPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "F6", "toggleFocus", "F8", "startResize", "END", "selectMax", "HOME", "selectMin", "LEFT", "negativeIncrement", "KP_UP", "negativeIncrement", "KP_DOWN", "positiveIncrement", "UP", "negativeIncrement", "RIGHT", "positiveIncrement", "KP_LEFT", "negativeIncrement", "DOWN", "positiveIncrement", "KP_RIGHT", "positiveIncrement", "shift ctrl pressed TAB", "focusOutBackward", "ctrl pressed TAB", "focusOutForward" }), "SplitPane.background", new ColorUIResource(light), "SplitPane.border", new BasicBorders.SplitPaneBorder(null, null), "SplitPane.darkShadow", new ColorUIResource(shadow), "SplitPane.dividerSize", new Integer(7), "SplitPane.highlight", new ColorUIResource(highLight), "SplitPane.shadow", new ColorUIResource(shadow), "SplitPaneDivider.border", BasicBorders.getSplitPaneDividerBorder(), "SplitPaneDivider.draggingColor", new ColorUIResource(Color.DARK_GRAY), "TabbedPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ctrl PAGE_DOWN","navigatePageDown", "ctrl PAGE_UP", "navigatePageUp", "ctrl UP", "requestFocus", "ctrl KP_UP", "requestFocus" }), "TabbedPane.background", new ColorUIResource(light), "TabbedPane.contentBorderInsets", new InsetsUIResource(2, 2, 3, 3), "TabbedPane.darkShadow", new ColorUIResource(shadow), "TabbedPane.focus", new ColorUIResource(darkShadow), "TabbedPane.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("ctrl DOWN"), "requestFocusForVisibleComponent", KeyStroke.getKeyStroke("KP_UP"), "navigateUp", KeyStroke.getKeyStroke("LEFT"), "navigateLeft", KeyStroke.getKeyStroke("ctrl KP_DOWN"), "requestFocusForVisibleComponent", KeyStroke.getKeyStroke("UP"), "navigateUp", KeyStroke.getKeyStroke("KP_DOWN"), "navigateDown", KeyStroke.getKeyStroke("KP_LEFT"), "navigateLeft", KeyStroke.getKeyStroke("RIGHT"), "navigateRight", KeyStroke.getKeyStroke("KP_RIGHT"), "navigateRight", KeyStroke.getKeyStroke("DOWN"), "navigateDown" }), "TabbedPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TabbedPane.foreground", new ColorUIResource(darkShadow), "TabbedPane.highlight", new ColorUIResource(highLight), "TabbedPane.light", new ColorUIResource(highLight), "TabbedPane.selectedTabPadInsets", new InsetsUIResource(2, 2, 2, 1), "TabbedPane.shadow", new ColorUIResource(shadow), "TabbedPane.tabbedPaneContentBorderInsets", new InsetsUIResource(3, 2, 1, 2), "TabbedPane.tabbedPaneTabPadInsets", new InsetsUIResource(1, 1, 1, 1), "TabbedPane.tabsOpaque", Boolean.TRUE, "TabbedPane.tabAreaInsets", new InsetsUIResource(3, 2, 0, 2), "TabbedPane.tabInsets", new InsetsUIResource(0, 4, 1, 4), "TabbedPane.tabRunOverlay", new Integer(2), "TabbedPane.textIconGap", new Integer(4), "Table.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ctrl DOWN", "selectNextRowChangeLead", "ctrl RIGHT", "selectNextColumnChangeLead", "ctrl UP", "selectPreviousRowChangeLead", "ctrl LEFT", "selectPreviousColumnChangeLead", "CUT", "cut", "SPACE", "addToSelection", "ctrl SPACE", "toggleAndAnchor", "shift SPACE", "extendTo", "shift ctrl SPACE", "moveSelectionTo", "ctrl X", "cut", "ctrl C", "copy", "ctrl KP_RIGHT", "selectNextColumnChangeLead", "ctrl KP_LEFT", "selectPreviousColumnChangeLead", "ctrl V", "paste", "ctrl KP_DOWN", "selectNextRowChangeLead", "COPY", "copy", "ctrl KP_UP", "selectPreviousRowChangeLead", "PASTE", "paste", "shift PAGE_DOWN","scrollDownExtendSelection", "PAGE_DOWN", "scrollDownChangeSelection", "END", "selectLastColumn", "shift END", "selectLastColumnExtendSelection", "HOME", "selectFirstColumn", "ctrl END", "selectLastRow", "ctrl shift END","selectLastRowExtendSelection", "LEFT", "selectPreviousColumn", "shift HOME", "selectFirstColumnExtendSelection", "UP", "selectPreviousRow", "RIGHT", "selectNextColumn", "ctrl HOME", "selectFirstRow", "shift LEFT", "selectPreviousColumnExtendSelection", "DOWN", "selectNextRow", "ctrl shift HOME","selectFirstRowExtendSelection", "shift UP", "selectPreviousRowExtendSelection", "F2", "startEditing", "shift RIGHT", "selectNextColumnExtendSelection", "TAB", "selectNextColumnCell", "shift DOWN", "selectNextRowExtendSelection", "ENTER", "selectNextRowCell", "KP_UP", "selectPreviousRow", "KP_DOWN", "selectNextRow", "KP_LEFT", "selectPreviousColumn", "KP_RIGHT", "selectNextColumn", "shift TAB", "selectPreviousColumnCell", "ctrl A", "selectAll", "shift ENTER", "selectPreviousRowCell", "shift KP_DOWN", "selectNextRowExtendSelection", "shift KP_LEFT", "selectPreviousColumnExtendSelection", "ESCAPE", "cancel", "ctrl shift PAGE_UP", "scrollLeftExtendSelection", "shift KP_RIGHT", "selectNextColumnExtendSelection", "ctrl PAGE_UP", "scrollLeftChangeSelection", "shift PAGE_UP", "scrollUpExtendSelection", "ctrl shift PAGE_DOWN", "scrollRightExtendSelection", "ctrl PAGE_DOWN", "scrollRightChangeSelection", "PAGE_UP", "scrollUpChangeSelection", "ctrl shift LEFT", "selectPreviousColumnExtendSelection", "shift KP_UP", "selectPreviousRowExtendSelection", "ctrl shift UP", "selectPreviousRowExtendSelection", "ctrl shift RIGHT", "selectNextColumnExtendSelection", "ctrl shift KP_RIGHT", "selectNextColumnExtendSelection", "ctrl shift DOWN", "selectNextRowExtendSelection", "ctrl BACK_SLASH", "clearSelection", "ctrl shift KP_UP", "selectPreviousRowExtendSelection", "ctrl shift KP_LEFT", "selectPreviousColumnExtendSelection", "ctrl SLASH", "selectAll", "ctrl shift KP_DOWN", "selectNextRowExtendSelection", }), "Table.background", new ColorUIResource(new ColorUIResource(255, 255, 255)), "Table.focusCellBackground", new ColorUIResource(new ColorUIResource(255, 255, 255)), "Table.focusCellForeground", new ColorUIResource(new ColorUIResource(0, 0, 0)), "Table.focusCellHighlightBorder", new BorderUIResource.LineBorderUIResource( new ColorUIResource(255, 255, 0)), "Table.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Table.foreground", new ColorUIResource(new ColorUIResource(0, 0, 0)), "Table.gridColor", new ColorUIResource(new ColorUIResource(128, 128, 128)), "Table.scrollPaneBorder", new BorderUIResource.BevelBorderUIResource(0), "Table.selectionBackground", new ColorUIResource(new ColorUIResource(0, 0, 128)), "Table.selectionForeground", new ColorUIResource(new ColorUIResource(255, 255, 255)), "TableHeader.background", new ColorUIResource(new ColorUIResource(192, 192, 192)), "TableHeader.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TableHeader.foreground", new ColorUIResource(new ColorUIResource(0, 0, 0)), "TextArea.background", new ColorUIResource(light), "TextArea.border", new BorderUIResource(BasicBorders.getMarginBorder()), "TextArea.caretBlinkRate", new Integer(500), "TextArea.caretForeground", new ColorUIResource(Color.black), "TextArea.font", new FontUIResource("MonoSpaced", Font.PLAIN, 12), "TextArea.foreground", new ColorUIResource(Color.black), "TextArea.inactiveForeground", new ColorUIResource(Color.gray), "TextArea.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("shift UP"), "selection-up", KeyStroke.getKeyStroke("ctrl RIGHT"), "caret-next-word", KeyStroke.getKeyStroke("shift ctrl LEFT"), "selection-previous-word", KeyStroke.getKeyStroke("shift KP_UP"), "selection-up", KeyStroke.getKeyStroke("DOWN"), "caret-down", KeyStroke.getKeyStroke("shift ctrl T"), "previous-link-action", KeyStroke.getKeyStroke("ctrl LEFT"), "caret-previous-word", KeyStroke.getKeyStroke("CUT"), "cut-to-clipboard", KeyStroke.getKeyStroke("END"), "caret-end-line", KeyStroke.getKeyStroke("shift PAGE_UP"), "selection-page-up", KeyStroke.getKeyStroke("KP_UP"), "caret-up", KeyStroke.getKeyStroke("DELETE"), "delete-next", KeyStroke.getKeyStroke("ctrl HOME"), "caret-begin", KeyStroke.getKeyStroke("shift LEFT"), "selection-backward", KeyStroke.getKeyStroke("ctrl END"), "caret-end", KeyStroke.getKeyStroke("BACK_SPACE"), "delete-previous", KeyStroke.getKeyStroke("shift ctrl RIGHT"), "selection-next-word", KeyStroke.getKeyStroke("LEFT"), "caret-backward", KeyStroke.getKeyStroke("KP_LEFT"), "caret-backward", KeyStroke.getKeyStroke("shift KP_RIGHT"), "selection-forward", KeyStroke.getKeyStroke("ctrl SPACE"), "activate-link-action", KeyStroke.getKeyStroke("ctrl H"), "delete-previous", KeyStroke.getKeyStroke("ctrl BACK_SLASH"), "unselect", KeyStroke.getKeyStroke("ENTER"), "insert-break", KeyStroke.getKeyStroke("shift HOME"), "selection-begin-line", KeyStroke.getKeyStroke("RIGHT"), "caret-forward", KeyStroke.getKeyStroke("shift ctrl PAGE_UP"), "selection-page-left", KeyStroke.getKeyStroke("shift DOWN"), "selection-down", KeyStroke.getKeyStroke("PAGE_DOWN"), "page-down", KeyStroke.getKeyStroke("shift KP_LEFT"), "selection-backward", KeyStroke.getKeyStroke("shift ctrl O"), "toggle-componentOrientation", KeyStroke.getKeyStroke("ctrl X"), "cut-to-clipboard", KeyStroke.getKeyStroke("shift ctrl PAGE_DOWN"), "selection-page-right", KeyStroke.getKeyStroke("ctrl C"), "copy-to-clipboard", KeyStroke.getKeyStroke("ctrl KP_RIGHT"), "caret-next-word", KeyStroke.getKeyStroke("shift END"), "selection-end-line", KeyStroke.getKeyStroke("ctrl KP_LEFT"), "caret-previous-word", KeyStroke.getKeyStroke("HOME"), "caret-begin-line", KeyStroke.getKeyStroke("ctrl V"), "paste-from-clipboard", KeyStroke.getKeyStroke("KP_DOWN"), "caret-down", KeyStroke.getKeyStroke("ctrl A"), "select-all", KeyStroke.getKeyStroke("shift RIGHT"), "selection-forward", KeyStroke.getKeyStroke("shift ctrl END"), "selection-end", KeyStroke.getKeyStroke("COPY"), "copy-to-clipboard", KeyStroke.getKeyStroke("shift ctrl KP_LEFT"), "selection-previous-word", KeyStroke.getKeyStroke("ctrl T"), "next-link-action", KeyStroke.getKeyStroke("shift KP_DOWN"), "selection-down", KeyStroke.getKeyStroke("TAB"), "insert-tab", KeyStroke.getKeyStroke("UP"), "caret-up", KeyStroke.getKeyStroke("shift ctrl HOME"), "selection-begin", KeyStroke.getKeyStroke("shift PAGE_DOWN"), "selection-page-down", KeyStroke.getKeyStroke("KP_RIGHT"), "caret-forward", KeyStroke.getKeyStroke("shift ctrl KP_RIGHT"), "selection-next-word", KeyStroke.getKeyStroke("PAGE_UP"), "page-up", KeyStroke.getKeyStroke("PASTE"), "paste-from-clipboard" }), "TextArea.margin", new InsetsUIResource(0, 0, 0, 0), "TextArea.selectionBackground", new ColorUIResource(Color.black), "TextArea.selectionForeground", new ColorUIResource(Color.white), "TextField.background", new ColorUIResource(light), "TextField.border", new BasicBorders.FieldBorder(null, null, null, null), "TextField.caretBlinkRate", new Integer(500), "TextField.caretForeground", new ColorUIResource(Color.black), "TextField.darkShadow", new ColorUIResource(shadow), "TextField.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "TextField.foreground", new ColorUIResource(Color.black), "TextField.highlight", new ColorUIResource(highLight), "TextField.inactiveBackground", new ColorUIResource(Color.LIGHT_GRAY), "TextField.inactiveForeground", new ColorUIResource(Color.GRAY), "TextField.light", new ColorUIResource(highLight), "TextField.highlight", new ColorUIResource(light), "TextField.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("ENTER"), "notify-field-accept", KeyStroke.getKeyStroke("LEFT"), "caret-backward", KeyStroke.getKeyStroke("RIGHT"), "caret-forward", KeyStroke.getKeyStroke("BACK_SPACE"), "delete-previous", KeyStroke.getKeyStroke("ctrl X"), "cut-to-clipboard", KeyStroke.getKeyStroke("ctrl C"), "copy-to-clipboard", KeyStroke.getKeyStroke("ctrl V"), "paste-from-clipboard", KeyStroke.getKeyStroke("shift LEFT"), "selection-backward", KeyStroke.getKeyStroke("shift RIGHT"), "selection-forward", KeyStroke.getKeyStroke("HOME"), "caret-begin-line", KeyStroke.getKeyStroke("END"), "caret-end-line", KeyStroke.getKeyStroke("DELETE"), "delete-next", KeyStroke.getKeyStroke("shift ctrl O"), "toggle-componentOrientation", KeyStroke.getKeyStroke("shift KP_LEFT"), "selection-backward", KeyStroke.getKeyStroke("ctrl H"), "delete-previous", KeyStroke.getKeyStroke("KP_LEFT"), "caret-backward", KeyStroke.getKeyStroke("KP_RIGHT"), "caret-forward", KeyStroke.getKeyStroke("shift ctrl KP_RIGHT"), "selection-next-word", KeyStroke.getKeyStroke("COPY"), "copy-to-clipboard", KeyStroke.getKeyStroke("shift HOME"), "selection-begin-line", KeyStroke.getKeyStroke("shift ctrl LEFT"), "selection-previous-word", KeyStroke.getKeyStroke("ctrl KP_LEFT"), "caret-previous-word", KeyStroke.getKeyStroke("ctrl KP_RIGHT"), "caret-next-word", KeyStroke.getKeyStroke("PASTE"), "paste-from-clipboard", KeyStroke.getKeyStroke("shift ctrl RIGHT"), "selection-next-word", KeyStroke.getKeyStroke("ctrl BACK_SLASH"), "unselect", KeyStroke.getKeyStroke("ctrl A"), "select-all", KeyStroke.getKeyStroke("shift KP_RIGHT"), "selection-forward", KeyStroke.getKeyStroke("CUT"), "cut-to-clipboard", KeyStroke.getKeyStroke("ctrl LEFT"), "caret-previous-word", KeyStroke.getKeyStroke("shift ctrl KP_LEFT"), "selection-previous-word", KeyStroke.getKeyStroke("shift END"), "selection-end-line", KeyStroke.getKeyStroke("ctrl RIGHT"), "caret-next-word" }), "TextField.margin", new InsetsUIResource(0, 0, 0, 0), "TextField.selectionBackground", new ColorUIResource(Color.black), "TextField.selectionForeground", new ColorUIResource(Color.white), "TextPane.background", new ColorUIResource(Color.white), "TextPane.border", BasicBorders.getMarginBorder(), "TextPane.caretBlinkRate", new Integer(500), "TextPane.caretForeground", new ColorUIResource(Color.black), "TextPane.font", new FontUIResource("Serif", Font.PLAIN, 12), "TextPane.foreground", new ColorUIResource(Color.black), "TextPane.inactiveForeground", new ColorUIResource(Color.gray), "TextPane.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("shift UP"), "selection-up", KeyStroke.getKeyStroke("ctrl RIGHT"), "caret-next-word", KeyStroke.getKeyStroke("shift ctrl LEFT"), "selection-previous-word", KeyStroke.getKeyStroke("shift KP_UP"), "selection-up", KeyStroke.getKeyStroke("DOWN"), "caret-down", KeyStroke.getKeyStroke("shift ctrl T"), "previous-link-action", KeyStroke.getKeyStroke("ctrl LEFT"), "caret-previous-word", KeyStroke.getKeyStroke("CUT"), "cut-to-clipboard", KeyStroke.getKeyStroke("END"), "caret-end-line", KeyStroke.getKeyStroke("shift PAGE_UP"), "selection-page-up", KeyStroke.getKeyStroke("KP_UP"), "caret-up", KeyStroke.getKeyStroke("DELETE"), "delete-next", KeyStroke.getKeyStroke("ctrl HOME"), "caret-begin", KeyStroke.getKeyStroke("shift LEFT"), "selection-backward", KeyStroke.getKeyStroke("ctrl END"), "caret-end", KeyStroke.getKeyStroke("BACK_SPACE"), "delete-previous", KeyStroke.getKeyStroke("shift ctrl RIGHT"), "selection-next-word", KeyStroke.getKeyStroke("LEFT"), "caret-backward", KeyStroke.getKeyStroke("KP_LEFT"), "caret-backward", KeyStroke.getKeyStroke("shift KP_RIGHT"), "selection-forward", KeyStroke.getKeyStroke("ctrl SPACE"), "activate-link-action", KeyStroke.getKeyStroke("ctrl H"), "delete-previous", KeyStroke.getKeyStroke("ctrl BACK_SLASH"), "unselect", KeyStroke.getKeyStroke("ENTER"), "insert-break", KeyStroke.getKeyStroke("shift HOME"), "selection-begin-line", KeyStroke.getKeyStroke("RIGHT"), "caret-forward", KeyStroke.getKeyStroke("shift ctrl PAGE_UP"), "selection-page-left", KeyStroke.getKeyStroke("shift DOWN"), "selection-down", KeyStroke.getKeyStroke("PAGE_DOWN"), "page-down", KeyStroke.getKeyStroke("shift KP_LEFT"), "selection-backward", KeyStroke.getKeyStroke("shift ctrl O"), "toggle-componentOrientation", KeyStroke.getKeyStroke("ctrl X"), "cut-to-clipboard", KeyStroke.getKeyStroke("shift ctrl PAGE_DOWN"), "selection-page-right", KeyStroke.getKeyStroke("ctrl C"), "copy-to-clipboard", KeyStroke.getKeyStroke("ctrl KP_RIGHT"), "caret-next-word", KeyStroke.getKeyStroke("shift END"), "selection-end-line", KeyStroke.getKeyStroke("ctrl KP_LEFT"), "caret-previous-word", KeyStroke.getKeyStroke("HOME"), "caret-begin-line", KeyStroke.getKeyStroke("ctrl V"), "paste-from-clipboard", KeyStroke.getKeyStroke("KP_DOWN"), "caret-down", KeyStroke.getKeyStroke("ctrl A"), "select-all", KeyStroke.getKeyStroke("shift RIGHT"), "selection-forward", KeyStroke.getKeyStroke("shift ctrl END"), "selection-end", KeyStroke.getKeyStroke("COPY"), "copy-to-clipboard", KeyStroke.getKeyStroke("shift ctrl KP_LEFT"), "selection-previous-word", KeyStroke.getKeyStroke("ctrl T"), "next-link-action", KeyStroke.getKeyStroke("shift KP_DOWN"), "selection-down", KeyStroke.getKeyStroke("TAB"), "insert-tab", KeyStroke.getKeyStroke("UP"), "caret-up", KeyStroke.getKeyStroke("shift ctrl HOME"), "selection-begin", KeyStroke.getKeyStroke("shift PAGE_DOWN"), "selection-page-down", KeyStroke.getKeyStroke("KP_RIGHT"), "caret-forward", KeyStroke.getKeyStroke("shift ctrl KP_RIGHT"), "selection-next-word", KeyStroke.getKeyStroke("PAGE_UP"), "page-up", KeyStroke.getKeyStroke("PASTE"), "paste-from-clipboard" }), "TextPane.margin", new InsetsUIResource(3, 3, 3, 3), "TextPane.selectionBackground", new ColorUIResource(Color.black), "TextPane.selectionForeground", new ColorUIResource(Color.white), "TitledBorder.border", new BorderUIResource.EtchedBorderUIResource(), "TitledBorder.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TitledBorder.titleColor", new ColorUIResource(darkShadow), "ToggleButton.background", new ColorUIResource(light), "ToggleButton.border", new BorderUIResource.CompoundBorderUIResource(null, null), "ToggleButton.darkShadow", new ColorUIResource(shadow), "ToggleButton.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("SPACE"), "pressed", KeyStroke.getKeyStroke("released SPACE"), "released" }), "ToggleButton.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ToggleButton.foreground", new ColorUIResource(darkShadow), "ToggleButton.highlight", new ColorUIResource(highLight), "ToggleButton.light", new ColorUIResource(light), "ToggleButton.margin", new InsetsUIResource(2, 14, 2, 14), "ToggleButton.shadow", new ColorUIResource(shadow), "ToggleButton.textIconGap", new Integer(4), "ToggleButton.textShiftOffset", new Integer(0), "ToolBar.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "UP", "navigateUp", "KP_UP", "navigateUp", "DOWN", "navigateDown", "KP_DOWN", "navigateDown", "LEFT", "navigateLeft", "KP_LEFT", "navigateLeft", "RIGHT", "navigateRight", "KP_RIGHT", "navigateRight" }), "ToolBar.background", new ColorUIResource(light), "ToolBar.border", new BorderUIResource.EtchedBorderUIResource(), "ToolBar.darkShadow", new ColorUIResource(shadow), "ToolBar.dockingBackground", new ColorUIResource(light), "ToolBar.dockingForeground", new ColorUIResource(Color.red), "ToolBar.floatingBackground", new ColorUIResource(light), "ToolBar.floatingForeground", new ColorUIResource(Color.darkGray), "ToolBar.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ToolBar.foreground", new ColorUIResource(darkShadow), "ToolBar.highlight", new ColorUIResource(highLight), "ToolBar.light", new ColorUIResource(highLight), "ToolBar.separatorSize", new DimensionUIResource(10, 10), "ToolBar.shadow", new ColorUIResource(shadow), "ToolTip.background", new ColorUIResource(light), "ToolTip.border", new BorderUIResource.LineBorderUIResource(Color.lightGray), "ToolTip.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "ToolTip.foreground", new ColorUIResource(darkShadow), "Tree.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "cancel" }), "Tree.background", new ColorUIResource(new Color(255, 255, 255)), "Tree.changeSelectionWithFocus", Boolean.TRUE, "Tree.drawsFocusBorderAroundIcon", Boolean.FALSE, "Tree.editorBorder", new BorderUIResource.LineBorderUIResource(Color.lightGray), "Tree.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("ctrl DOWN"), "selectNextChangeLead", KeyStroke.getKeyStroke("shift UP"), "selectPreviousExtendSelection", KeyStroke.getKeyStroke("ctrl RIGHT"), "scrollRight", KeyStroke.getKeyStroke("shift KP_UP"), "selectPreviousExtendSelection", KeyStroke.getKeyStroke("DOWN"), "selectNext", KeyStroke.getKeyStroke("ctrl UP"), "selectPreviousChangeLead", KeyStroke.getKeyStroke("ctrl LEFT"), "scrollLeft", KeyStroke.getKeyStroke("CUT"), "cut", KeyStroke.getKeyStroke("END"), "selectLast", KeyStroke.getKeyStroke("shift PAGE_UP"), "scrollUpExtendSelection", KeyStroke.getKeyStroke("KP_UP"), "selectPrevious", KeyStroke.getKeyStroke("shift ctrl UP"), "selectPreviousExtendSelection", KeyStroke.getKeyStroke("ctrl HOME"), "selectFirstChangeLead", KeyStroke.getKeyStroke("ctrl END"), "selectLastChangeLead", KeyStroke.getKeyStroke("ctrl PAGE_DOWN"), "scrollDownChangeLead", KeyStroke.getKeyStroke("LEFT"), "selectParent", KeyStroke.getKeyStroke("ctrl PAGE_UP"), "scrollUpChangeLead", KeyStroke.getKeyStroke("KP_LEFT"), "selectParent", KeyStroke.getKeyStroke("SPACE"), "addToSelection", KeyStroke.getKeyStroke("ctrl SPACE"), "toggleAndAnchor", KeyStroke.getKeyStroke("shift SPACE"), "extendTo", KeyStroke.getKeyStroke("shift ctrl SPACE"), "moveSelectionTo", KeyStroke.getKeyStroke("ADD"), "expand", KeyStroke.getKeyStroke("ctrl BACK_SLASH"), "clearSelection", KeyStroke.getKeyStroke("shift ctrl DOWN"), "selectNextExtendSelection", KeyStroke.getKeyStroke("shift HOME"), "selectFirstExtendSelection", KeyStroke.getKeyStroke("RIGHT"), "selectChild", KeyStroke.getKeyStroke("shift ctrl PAGE_UP"), "scrollUpExtendSelection", KeyStroke.getKeyStroke("shift DOWN"), "selectNextExtendSelection", KeyStroke.getKeyStroke("PAGE_DOWN"), "scrollDownChangeSelection", KeyStroke.getKeyStroke("shift ctrl KP_UP"), "selectPreviousExtendSelection", KeyStroke.getKeyStroke("SUBTRACT"), "collapse", KeyStroke.getKeyStroke("ctrl X"), "cut", KeyStroke.getKeyStroke("shift ctrl PAGE_DOWN"), "scrollDownExtendSelection", KeyStroke.getKeyStroke("ctrl SLASH"), "selectAll", KeyStroke.getKeyStroke("ctrl C"), "copy", KeyStroke.getKeyStroke("ctrl KP_RIGHT"), "scrollRight", KeyStroke.getKeyStroke("shift END"), "selectLastExtendSelection", KeyStroke.getKeyStroke("shift ctrl KP_DOWN"), "selectNextExtendSelection", KeyStroke.getKeyStroke("ctrl KP_LEFT"), "scrollLeft", KeyStroke.getKeyStroke("HOME"), "selectFirst", KeyStroke.getKeyStroke("ctrl V"), "paste", KeyStroke.getKeyStroke("KP_DOWN"), "selectNext", KeyStroke.getKeyStroke("ctrl A"), "selectAll", KeyStroke.getKeyStroke("ctrl KP_DOWN"), "selectNextChangeLead", KeyStroke.getKeyStroke("shift ctrl END"), "selectLastExtendSelection", KeyStroke.getKeyStroke("COPY"), "copy", KeyStroke.getKeyStroke("ctrl KP_UP"), "selectPreviousChangeLead", KeyStroke.getKeyStroke("shift KP_DOWN"), "selectNextExtendSelection", KeyStroke.getKeyStroke("UP"), "selectPrevious", KeyStroke.getKeyStroke("shift ctrl HOME"), "selectFirstExtendSelection", KeyStroke.getKeyStroke("shift PAGE_DOWN"), "scrollDownExtendSelection", KeyStroke.getKeyStroke("KP_RIGHT"), "selectChild", KeyStroke.getKeyStroke("F2"), "startEditing", KeyStroke.getKeyStroke("PAGE_UP"), "scrollUpChangeSelection", KeyStroke.getKeyStroke("PASTE"), "paste" }), "Tree.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Tree.foreground", new ColorUIResource(Color.black), "Tree.hash", new ColorUIResource(new Color(128, 128, 128)), "Tree.leftChildIndent", new Integer(7), "Tree.rightChildIndent", new Integer(13), "Tree.rowHeight", new Integer(16), "Tree.scrollsOnExpand", Boolean.TRUE, "Tree.selectionBackground", new ColorUIResource(Color.black), "Tree.nonSelectionBackground", new ColorUIResource(new Color(255, 255, 255)), "Tree.selectionBorderColor", new ColorUIResource(Color.black), "Tree.selectionBorder", new BorderUIResource.LineBorderUIResource(Color.black), "Tree.selectionForeground", new ColorUIResource(new Color(255, 255, 255)), "Viewport.background", new ColorUIResource(light), "Viewport.foreground", new ColorUIResource(Color.black), "Viewport.font", new FontUIResource("Dialog", Font.PLAIN, 12) }; defaults.putDefaults(uiDefaults); }
public Statistic(String name, String description) { this.name = name; this.description = description;
public Statistic(String name) { this(name, null);
public Statistic(String name, String description) { this.name = name; this.description = description; }
return formatCommandList;
ArrayList commandList = new ArrayList(); Iterator iter = formatCommandList.iterator(); while (iter.hasNext()) { FormattedIOCmd thisCommand = (FormattedIOCmd) iter.next(); if (thisCommand instanceof RepeatFormattedIOCmd) { int count = ((RepeatFormattedIOCmd) thisCommand).getCount().intValue(); while (count-- > 0) { commandList.addAll(((RepeatFormattedIOCmd) thisCommand).getCommands()); } } else { commandList.add(thisCommand); } } return (List) commandList;
public List getCommands() { return formatCommandList; }
return (Integer) ((XMLAttribute) attribHash.get("count")).getAttribValue();
return new Integer((String) ((XMLAttribute) attribHash.get("count")).getAttribValue());
public Integer getCount() { return (Integer) ((XMLAttribute) attribHash.get("count")).getAttribValue(); }
((XMLAttribute) attribHash.get("count")).setAttribValue(numCount);
if (numCount.intValue() < 1) { Log.warnln("Cant set repeatFormattedIOCmd count to less than 1, ignoring set request."); } else { ((XMLAttribute) attribHash.get("count")).setAttribValue(numCount); }
public void setCount(Integer numCount) { ((XMLAttribute) attribHash.get("count")).setAttribValue(numCount); }
else if (ssa.equalsIgnoreCase(Registry.RSA_PSS_SIG)) { result = new RSAPSSSignature(); } else if (ssa.equalsIgnoreCase(Registry.RSA_PKCS1_V1_5_SIG)) { result = new RSAPKCS1V1_5Signature(); }
else if (ssa.startsWith(Registry.RSA_SIG_PREFIX)) result = RSASignatureFactory.getInstance(ssa);
public static final ISignature getInstance(String ssa) { if (ssa == null) { return null; } ssa = ssa.trim(); ISignature result = null; if (ssa.equalsIgnoreCase(Registry.DSA_SIG) || ssa.equals(Registry.DSS_SIG)) { result = new DSSSignature(); } else if (ssa.equalsIgnoreCase(Registry.RSA_PSS_SIG)) { result = new RSAPSSSignature(); } else if (ssa.equalsIgnoreCase(Registry.RSA_PKCS1_V1_5_SIG)) { result = new RSAPKCS1V1_5Signature(); } return result; }
public static final Set getNames()
public static synchronized final Set getNames() { if (names == null)
public static final Set getNames() { HashSet hs = new HashSet(); hs.add(Registry.DSS_SIG); hs.add(Registry.RSA_PSS_SIG); hs.add(Registry.RSA_PKCS1_V1_5_SIG); return Collections.unmodifiableSet(hs); }
hs.add(Registry.RSA_PSS_SIG); hs.add(Registry.RSA_PKCS1_V1_5_SIG);
hs.addAll(RSASignatureFactory.getNames());
public static final Set getNames() { HashSet hs = new HashSet(); hs.add(Registry.DSS_SIG); hs.add(Registry.RSA_PSS_SIG); hs.add(Registry.RSA_PKCS1_V1_5_SIG); return Collections.unmodifiableSet(hs); }
return Collections.unmodifiableSet(hs);
names = Collections.unmodifiableSet(hs);
public static final Set getNames() { HashSet hs = new HashSet(); hs.add(Registry.DSS_SIG); hs.add(Registry.RSA_PSS_SIG); hs.add(Registry.RSA_PKCS1_V1_5_SIG); return Collections.unmodifiableSet(hs); }
return names; }
public static final Set getNames() { HashSet hs = new HashSet(); hs.add(Registry.DSS_SIG); hs.add(Registry.RSA_PSS_SIG); hs.add(Registry.RSA_PKCS1_V1_5_SIG); return Collections.unmodifiableSet(hs); }
result = JOptionPane.showOptionDialog( parent, message, LangTool.getString("em.title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0] );
result = JOptionPane.showOptionDialog(parent, message, LangTool.getString("em.title"), JOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, null, options, options[0] );
public SendEMailDialog(Frame parent, Session session ) { if (!isEMailAvailable()) { JOptionPane.showMessageDialog(parent, LangTool.getString("messages.noEmailAPI"), "Error", JOptionPane.ERROR_MESSAGE,null); } else { this.session = session; Screen5250 screen = session.getScreen(); Object[] message = new Object[1]; message[0] = setupMailPanel("tn5250j.txt"); String[] options = new String[3]; int result = 0; while (result == 0 || result == 2) { // setup the dialog options setOptions(options); result = JOptionPane.showOptionDialog( parent, // the parent that the dialog blocks message, // the dialog message array LangTool.getString("em.title"), // the title of the dialog window JOptionPane.DEFAULT_OPTION, // option type JOptionPane.QUESTION_MESSAGE, // message type null, // optional icon, use null to use the default icon options, // options string array, will be made into buttons// options[0] // option that should be made into a default button ); switch(result) { case 0: // Send it SendEMail sem = new SendEMail(); sem.setConfigFile("SMTPProperties.cfg"); sem.setTo((String)toAddress.getSelectedItem()); sem.setSubject(subject.getText()); if (bodyText.getText().length() >0) sem.setMessage(bodyText.getText()); if (attachmentName.getText().length() > 0) sem.setAttachmentName(attachmentName.getText()); StringBuffer sb = new StringBuffer(); char[] s = screen.getScreenAsChars(); int c = screen.getCols(); int l = screen.getRows() * c; int col = 0; for (int x = 0; x < l; x++,col++) { sb.append(s[x]); if (col == c) { sb.append('\n'); col = 0; } } sem.setAttachment(sb.toString()); // send the information sendIt(parent,sem); sem.release(); sem = null; break; case 1: // Cancel // System.out.println("Cancel"); break; case 2: // Configure SMTP configureSMTP(parent); // System.out.println("Cancel"); break; default: break; } } } }
StringBuffer sb = new StringBuffer(); char[] s = screen.getScreenAsChars(); int c = screen.getCols(); int l = screen.getRows() * c; int col = 0; for (int x = 0; x < l; x++,col++) { sb.append(s[x]); if (col == c) { sb.append('\n'); col = 0; } }
if (text.isSelected()) {
public SendEMailDialog(Frame parent, Session session ) { if (!isEMailAvailable()) { JOptionPane.showMessageDialog(parent, LangTool.getString("messages.noEmailAPI"), "Error", JOptionPane.ERROR_MESSAGE,null); } else { this.session = session; Screen5250 screen = session.getScreen(); Object[] message = new Object[1]; message[0] = setupMailPanel("tn5250j.txt"); String[] options = new String[3]; int result = 0; while (result == 0 || result == 2) { // setup the dialog options setOptions(options); result = JOptionPane.showOptionDialog( parent, // the parent that the dialog blocks message, // the dialog message array LangTool.getString("em.title"), // the title of the dialog window JOptionPane.DEFAULT_OPTION, // option type JOptionPane.QUESTION_MESSAGE, // message type null, // optional icon, use null to use the default icon options, // options string array, will be made into buttons// options[0] // option that should be made into a default button ); switch(result) { case 0: // Send it SendEMail sem = new SendEMail(); sem.setConfigFile("SMTPProperties.cfg"); sem.setTo((String)toAddress.getSelectedItem()); sem.setSubject(subject.getText()); if (bodyText.getText().length() >0) sem.setMessage(bodyText.getText()); if (attachmentName.getText().length() > 0) sem.setAttachmentName(attachmentName.getText()); StringBuffer sb = new StringBuffer(); char[] s = screen.getScreenAsChars(); int c = screen.getCols(); int l = screen.getRows() * c; int col = 0; for (int x = 0; x < l; x++,col++) { sb.append(s[x]); if (col == c) { sb.append('\n'); col = 0; } } sem.setAttachment(sb.toString()); // send the information sendIt(parent,sem); sem.release(); sem = null; break; case 1: // Cancel // System.out.println("Cancel"); break; case 2: // Configure SMTP configureSMTP(parent); // System.out.println("Cancel"); break; default: break; } } } }
sem.setAttachment(sb.toString());
StringBuffer sb = new StringBuffer(); char[] s = screen.getScreenAsChars(); int c = screen.getCols(); int l = screen.getRows() * c; int col = 0; for (int x = 0; x < l; x++, col++) { sb.append(s[x]); if (col == c) { sb.append('\n'); col = 0; } }
public SendEMailDialog(Frame parent, Session session ) { if (!isEMailAvailable()) { JOptionPane.showMessageDialog(parent, LangTool.getString("messages.noEmailAPI"), "Error", JOptionPane.ERROR_MESSAGE,null); } else { this.session = session; Screen5250 screen = session.getScreen(); Object[] message = new Object[1]; message[0] = setupMailPanel("tn5250j.txt"); String[] options = new String[3]; int result = 0; while (result == 0 || result == 2) { // setup the dialog options setOptions(options); result = JOptionPane.showOptionDialog( parent, // the parent that the dialog blocks message, // the dialog message array LangTool.getString("em.title"), // the title of the dialog window JOptionPane.DEFAULT_OPTION, // option type JOptionPane.QUESTION_MESSAGE, // message type null, // optional icon, use null to use the default icon options, // options string array, will be made into buttons// options[0] // option that should be made into a default button ); switch(result) { case 0: // Send it SendEMail sem = new SendEMail(); sem.setConfigFile("SMTPProperties.cfg"); sem.setTo((String)toAddress.getSelectedItem()); sem.setSubject(subject.getText()); if (bodyText.getText().length() >0) sem.setMessage(bodyText.getText()); if (attachmentName.getText().length() > 0) sem.setAttachmentName(attachmentName.getText()); StringBuffer sb = new StringBuffer(); char[] s = screen.getScreenAsChars(); int c = screen.getCols(); int l = screen.getRows() * c; int col = 0; for (int x = 0; x < l; x++,col++) { sb.append(s[x]); if (col == c) { sb.append('\n'); col = 0; } } sem.setAttachment(sb.toString()); // send the information sendIt(parent,sem); sem.release(); sem = null; break; case 1: // Cancel // System.out.println("Cancel"); break; case 2: // Configure SMTP configureSMTP(parent); // System.out.println("Cancel"); break; default: break; } } } }
sendIt(parent,sem);
sem.setAttachment(sb.toString()); } else {
public SendEMailDialog(Frame parent, Session session ) { if (!isEMailAvailable()) { JOptionPane.showMessageDialog(parent, LangTool.getString("messages.noEmailAPI"), "Error", JOptionPane.ERROR_MESSAGE,null); } else { this.session = session; Screen5250 screen = session.getScreen(); Object[] message = new Object[1]; message[0] = setupMailPanel("tn5250j.txt"); String[] options = new String[3]; int result = 0; while (result == 0 || result == 2) { // setup the dialog options setOptions(options); result = JOptionPane.showOptionDialog( parent, // the parent that the dialog blocks message, // the dialog message array LangTool.getString("em.title"), // the title of the dialog window JOptionPane.DEFAULT_OPTION, // option type JOptionPane.QUESTION_MESSAGE, // message type null, // optional icon, use null to use the default icon options, // options string array, will be made into buttons// options[0] // option that should be made into a default button ); switch(result) { case 0: // Send it SendEMail sem = new SendEMail(); sem.setConfigFile("SMTPProperties.cfg"); sem.setTo((String)toAddress.getSelectedItem()); sem.setSubject(subject.getText()); if (bodyText.getText().length() >0) sem.setMessage(bodyText.getText()); if (attachmentName.getText().length() > 0) sem.setAttachmentName(attachmentName.getText()); StringBuffer sb = new StringBuffer(); char[] s = screen.getScreenAsChars(); int c = screen.getCols(); int l = screen.getRows() * c; int col = 0; for (int x = 0; x < l; x++,col++) { sb.append(s[x]); if (col == c) { sb.append('\n'); col = 0; } } sem.setAttachment(sb.toString()); // send the information sendIt(parent,sem); sem.release(); sem = null; break; case 1: // Cancel // System.out.println("Cancel"); break; case 2: // Configure SMTP configureSMTP(parent); // System.out.println("Cancel"); break; default: break; } } } }
sem.release(); sem = null;
File dir = new File(System.getProperty("user.dir"));
public SendEMailDialog(Frame parent, Session session ) { if (!isEMailAvailable()) { JOptionPane.showMessageDialog(parent, LangTool.getString("messages.noEmailAPI"), "Error", JOptionPane.ERROR_MESSAGE,null); } else { this.session = session; Screen5250 screen = session.getScreen(); Object[] message = new Object[1]; message[0] = setupMailPanel("tn5250j.txt"); String[] options = new String[3]; int result = 0; while (result == 0 || result == 2) { // setup the dialog options setOptions(options); result = JOptionPane.showOptionDialog( parent, // the parent that the dialog blocks message, // the dialog message array LangTool.getString("em.title"), // the title of the dialog window JOptionPane.DEFAULT_OPTION, // option type JOptionPane.QUESTION_MESSAGE, // message type null, // optional icon, use null to use the default icon options, // options string array, will be made into buttons// options[0] // option that should be made into a default button ); switch(result) { case 0: // Send it SendEMail sem = new SendEMail(); sem.setConfigFile("SMTPProperties.cfg"); sem.setTo((String)toAddress.getSelectedItem()); sem.setSubject(subject.getText()); if (bodyText.getText().length() >0) sem.setMessage(bodyText.getText()); if (attachmentName.getText().length() > 0) sem.setAttachmentName(attachmentName.getText()); StringBuffer sb = new StringBuffer(); char[] s = screen.getScreenAsChars(); int c = screen.getCols(); int l = screen.getRows() * c; int col = 0; for (int x = 0; x < l; x++,col++) { sb.append(s[x]); if (col == c) { sb.append('\n'); col = 0; } } sem.setAttachment(sb.toString()); // send the information sendIt(parent,sem); sem.release(); sem = null; break; case 1: // Cancel // System.out.println("Cancel"); break; case 2: // Configure SMTP configureSMTP(parent); // System.out.println("Cancel"); break; default: break; } } } }
break; case 1: break; case 2: configureSMTP(parent); break; default: break; } } } }
try { File f = File.createTempFile(tempFile, ".png", dir); System.out.println(f.getName()); System.out.println(f.getCanonicalPath()); f.deleteOnExit(); EncodeComponent.encode( EncodeComponent.PNG, session, f); sem.setFileName(f.getName()); } catch (Exception ex) { System.out.println(ex.getMessage()); } } sendIt(parent, sem); sem.release(); sem = null; break; case 1 : break; case 2 : configureSMTP(parent); break; default : break; } } } }
public SendEMailDialog(Frame parent, Session session ) { if (!isEMailAvailable()) { JOptionPane.showMessageDialog(parent, LangTool.getString("messages.noEmailAPI"), "Error", JOptionPane.ERROR_MESSAGE,null); } else { this.session = session; Screen5250 screen = session.getScreen(); Object[] message = new Object[1]; message[0] = setupMailPanel("tn5250j.txt"); String[] options = new String[3]; int result = 0; while (result == 0 || result == 2) { // setup the dialog options setOptions(options); result = JOptionPane.showOptionDialog( parent, // the parent that the dialog blocks message, // the dialog message array LangTool.getString("em.title"), // the title of the dialog window JOptionPane.DEFAULT_OPTION, // option type JOptionPane.QUESTION_MESSAGE, // message type null, // optional icon, use null to use the default icon options, // options string array, will be made into buttons// options[0] // option that should be made into a default button ); switch(result) { case 0: // Send it SendEMail sem = new SendEMail(); sem.setConfigFile("SMTPProperties.cfg"); sem.setTo((String)toAddress.getSelectedItem()); sem.setSubject(subject.getText()); if (bodyText.getText().length() >0) sem.setMessage(bodyText.getText()); if (attachmentName.getText().length() > 0) sem.setAttachmentName(attachmentName.getText()); StringBuffer sb = new StringBuffer(); char[] s = screen.getScreenAsChars(); int c = screen.getCols(); int l = screen.getRows() * c; int col = 0; for (int x = 0; x < l; x++,col++) { sb.append(s[x]); if (col == c) { sb.append('\n'); col = 0; } } sem.setAttachment(sb.toString()); // send the information sendIt(parent,sem); sem.release(); sem = null; break; case 1: // Cancel // System.out.println("Cancel"); break; case 2: // Configure SMTP configureSMTP(parent); // System.out.println("Cancel"); break; default: break; } } } }
options[0] = LangTool.getString("em.optSendLabel"); options[1] = LangTool.getString("em.optCancelLabel");
File smtp = new File("SMTPProperties.cfg");
private void setOptions(String[] options) { options[0] = LangTool.getString("em.optSendLabel"); options[1] = LangTool.getString("em.optCancelLabel"); File smtp = new File("SMTPProperties.cfg"); if (smtp.exists()) options[2] = LangTool.getString("em.optEditLabel"); else options[2] = LangTool.getString("em.optConfigureLabel"); }
File smtp = new File("SMTPProperties.cfg");
if (smtp.exists()) options[2] = LangTool.getString("em.optEditLabel"); else options[2] = LangTool.getString("em.optConfigureLabel");
private void setOptions(String[] options) { options[0] = LangTool.getString("em.optSendLabel"); options[1] = LangTool.getString("em.optCancelLabel"); File smtp = new File("SMTPProperties.cfg"); if (smtp.exists()) options[2] = LangTool.getString("em.optEditLabel"); else options[2] = LangTool.getString("em.optConfigureLabel"); }
if (smtp.exists()) options[2] = LangTool.getString("em.optEditLabel"); else options[2] = LangTool.getString("em.optConfigureLabel"); }
}
private void setOptions(String[] options) { options[0] = LangTool.getString("em.optSendLabel"); options[1] = LangTool.getString("em.optCancelLabel"); File smtp = new File("SMTPProperties.cfg"); if (smtp.exists()) options[2] = LangTool.getString("em.optEditLabel"); else options[2] = LangTool.getString("em.optConfigureLabel"); }
JPanel semp = new JPanel(); semp.setLayout(new AlignLayout(2,5,5));
JPanel semp = new JPanel(); semp.setLayout(new GridBagLayout());
private JPanel setupMailPanel (String fileName) { JPanel semp = new JPanel(); semp.setLayout(new AlignLayout(2,5,5)); JLabel tol = new JLabel(LangTool.getString("em.to")); JLabel subl = new JLabel(LangTool.getString("em.subject")); JLabel bodyl = new JLabel(LangTool.getString("em.body")); JLabel fnl = new JLabel(LangTool.getString("em.fileName")); toAddress = new JComboBox(); toAddress.setEditable(true); subject = new JTextField(30); bodyText = new JTextArea(6,30); JScrollPane bodyScrollPane = new JScrollPane(bodyText); bodyScrollPane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); bodyScrollPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); attachmentName = new JTextField(fileName,30); config = null; if (session != null) { config = session.getConfiguration(); if (config.isPropertyExists("emailTo")) { setToCombo(config.getStringProperty("emailTo"),toAddress); } } semp.add(tol); semp.add(toAddress); semp.add(subl); semp.add(subject); semp.add(bodyl); semp.add(bodyScrollPane); semp.add(fnl); semp.add(attachmentName); return semp; }
JLabel tol = new JLabel(LangTool.getString("em.to")); JLabel subl = new JLabel(LangTool.getString("em.subject")); JLabel bodyl = new JLabel(LangTool.getString("em.body")); JLabel fnl = new JLabel(LangTool.getString("em.fileName"));
text = new JRadioButton(LangTool.getString("em.text")); graphic = new JRadioButton(LangTool.getString("em.graphic"));
private JPanel setupMailPanel (String fileName) { JPanel semp = new JPanel(); semp.setLayout(new AlignLayout(2,5,5)); JLabel tol = new JLabel(LangTool.getString("em.to")); JLabel subl = new JLabel(LangTool.getString("em.subject")); JLabel bodyl = new JLabel(LangTool.getString("em.body")); JLabel fnl = new JLabel(LangTool.getString("em.fileName")); toAddress = new JComboBox(); toAddress.setEditable(true); subject = new JTextField(30); bodyText = new JTextArea(6,30); JScrollPane bodyScrollPane = new JScrollPane(bodyText); bodyScrollPane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); bodyScrollPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); attachmentName = new JTextField(fileName,30); config = null; if (session != null) { config = session.getConfiguration(); if (config.isPropertyExists("emailTo")) { setToCombo(config.getStringProperty("emailTo"),toAddress); } } semp.add(tol); semp.add(toAddress); semp.add(subl); semp.add(subject); semp.add(bodyl); semp.add(bodyScrollPane); semp.add(fnl); semp.add(attachmentName); return semp; }
toAddress = new JComboBox(); toAddress.setEditable(true);
ButtonGroup tGroup = new ButtonGroup(); tGroup.add(text); tGroup.add(graphic);
private JPanel setupMailPanel (String fileName) { JPanel semp = new JPanel(); semp.setLayout(new AlignLayout(2,5,5)); JLabel tol = new JLabel(LangTool.getString("em.to")); JLabel subl = new JLabel(LangTool.getString("em.subject")); JLabel bodyl = new JLabel(LangTool.getString("em.body")); JLabel fnl = new JLabel(LangTool.getString("em.fileName")); toAddress = new JComboBox(); toAddress.setEditable(true); subject = new JTextField(30); bodyText = new JTextArea(6,30); JScrollPane bodyScrollPane = new JScrollPane(bodyText); bodyScrollPane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); bodyScrollPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); attachmentName = new JTextField(fileName,30); config = null; if (session != null) { config = session.getConfiguration(); if (config.isPropertyExists("emailTo")) { setToCombo(config.getStringProperty("emailTo"),toAddress); } } semp.add(tol); semp.add(toAddress); semp.add(subl); semp.add(subject); semp.add(bodyl); semp.add(bodyScrollPane); semp.add(fnl); semp.add(attachmentName); return semp; }
subject = new JTextField(30); bodyText = new JTextArea(6,30); JScrollPane bodyScrollPane = new JScrollPane(bodyText); bodyScrollPane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); bodyScrollPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); attachmentName = new JTextField(fileName,30);
text.setSelected(true);
private JPanel setupMailPanel (String fileName) { JPanel semp = new JPanel(); semp.setLayout(new AlignLayout(2,5,5)); JLabel tol = new JLabel(LangTool.getString("em.to")); JLabel subl = new JLabel(LangTool.getString("em.subject")); JLabel bodyl = new JLabel(LangTool.getString("em.body")); JLabel fnl = new JLabel(LangTool.getString("em.fileName")); toAddress = new JComboBox(); toAddress.setEditable(true); subject = new JTextField(30); bodyText = new JTextArea(6,30); JScrollPane bodyScrollPane = new JScrollPane(bodyText); bodyScrollPane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); bodyScrollPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); attachmentName = new JTextField(fileName,30); config = null; if (session != null) { config = session.getConfiguration(); if (config.isPropertyExists("emailTo")) { setToCombo(config.getStringProperty("emailTo"),toAddress); } } semp.add(tol); semp.add(toAddress); semp.add(subl); semp.add(subject); semp.add(bodyl); semp.add(bodyScrollPane); semp.add(fnl); semp.add(attachmentName); return semp; }
config = null;
JLabel screenDump = new JLabel(LangTool.getString("em.screendump")); JLabel tol = new JLabel(LangTool.getString("em.to")); JLabel subl = new JLabel(LangTool.getString("em.subject")); JLabel bodyl = new JLabel(LangTool.getString("em.body")); JLabel fnl = new JLabel(LangTool.getString("em.fileName"));
private JPanel setupMailPanel (String fileName) { JPanel semp = new JPanel(); semp.setLayout(new AlignLayout(2,5,5)); JLabel tol = new JLabel(LangTool.getString("em.to")); JLabel subl = new JLabel(LangTool.getString("em.subject")); JLabel bodyl = new JLabel(LangTool.getString("em.body")); JLabel fnl = new JLabel(LangTool.getString("em.fileName")); toAddress = new JComboBox(); toAddress.setEditable(true); subject = new JTextField(30); bodyText = new JTextArea(6,30); JScrollPane bodyScrollPane = new JScrollPane(bodyText); bodyScrollPane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); bodyScrollPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); attachmentName = new JTextField(fileName,30); config = null; if (session != null) { config = session.getConfiguration(); if (config.isPropertyExists("emailTo")) { setToCombo(config.getStringProperty("emailTo"),toAddress); } } semp.add(tol); semp.add(toAddress); semp.add(subl); semp.add(subject); semp.add(bodyl); semp.add(bodyScrollPane); semp.add(fnl); semp.add(attachmentName); return semp; }
if (session != null) { config = session.getConfiguration();
toAddress = new JComboBox(); toAddress.setPreferredSize(new Dimension(175, 25)); toAddress.setEditable(true);
private JPanel setupMailPanel (String fileName) { JPanel semp = new JPanel(); semp.setLayout(new AlignLayout(2,5,5)); JLabel tol = new JLabel(LangTool.getString("em.to")); JLabel subl = new JLabel(LangTool.getString("em.subject")); JLabel bodyl = new JLabel(LangTool.getString("em.body")); JLabel fnl = new JLabel(LangTool.getString("em.fileName")); toAddress = new JComboBox(); toAddress.setEditable(true); subject = new JTextField(30); bodyText = new JTextArea(6,30); JScrollPane bodyScrollPane = new JScrollPane(bodyText); bodyScrollPane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); bodyScrollPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); attachmentName = new JTextField(fileName,30); config = null; if (session != null) { config = session.getConfiguration(); if (config.isPropertyExists("emailTo")) { setToCombo(config.getStringProperty("emailTo"),toAddress); } } semp.add(tol); semp.add(toAddress); semp.add(subl); semp.add(subject); semp.add(bodyl); semp.add(bodyScrollPane); semp.add(fnl); semp.add(attachmentName); return semp; }
if (config.isPropertyExists("emailTo")) { setToCombo(config.getStringProperty("emailTo"),toAddress); } }
subject = new JTextField(30); bodyText = new JTextArea(6, 30); JScrollPane bodyScrollPane = new JScrollPane(bodyText); bodyScrollPane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); bodyScrollPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); attachmentName = new JTextField(fileName, 30);
private JPanel setupMailPanel (String fileName) { JPanel semp = new JPanel(); semp.setLayout(new AlignLayout(2,5,5)); JLabel tol = new JLabel(LangTool.getString("em.to")); JLabel subl = new JLabel(LangTool.getString("em.subject")); JLabel bodyl = new JLabel(LangTool.getString("em.body")); JLabel fnl = new JLabel(LangTool.getString("em.fileName")); toAddress = new JComboBox(); toAddress.setEditable(true); subject = new JTextField(30); bodyText = new JTextArea(6,30); JScrollPane bodyScrollPane = new JScrollPane(bodyText); bodyScrollPane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); bodyScrollPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); attachmentName = new JTextField(fileName,30); config = null; if (session != null) { config = session.getConfiguration(); if (config.isPropertyExists("emailTo")) { setToCombo(config.getStringProperty("emailTo"),toAddress); } } semp.add(tol); semp.add(toAddress); semp.add(subl); semp.add(subject); semp.add(bodyl); semp.add(bodyScrollPane); semp.add(fnl); semp.add(attachmentName); return semp; }
semp.add(tol); semp.add(toAddress); semp.add(subl); semp.add(subject); semp.add(bodyl); semp.add(bodyScrollPane); semp.add(fnl); semp.add(attachmentName);
text.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent e) { setAttachmentName(); } });
private JPanel setupMailPanel (String fileName) { JPanel semp = new JPanel(); semp.setLayout(new AlignLayout(2,5,5)); JLabel tol = new JLabel(LangTool.getString("em.to")); JLabel subl = new JLabel(LangTool.getString("em.subject")); JLabel bodyl = new JLabel(LangTool.getString("em.body")); JLabel fnl = new JLabel(LangTool.getString("em.fileName")); toAddress = new JComboBox(); toAddress.setEditable(true); subject = new JTextField(30); bodyText = new JTextArea(6,30); JScrollPane bodyScrollPane = new JScrollPane(bodyText); bodyScrollPane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); bodyScrollPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); attachmentName = new JTextField(fileName,30); config = null; if (session != null) { config = session.getConfiguration(); if (config.isPropertyExists("emailTo")) { setToCombo(config.getStringProperty("emailTo"),toAddress); } } semp.add(tol); semp.add(toAddress); semp.add(subl); semp.add(subject); semp.add(bodyl); semp.add(bodyScrollPane); semp.add(fnl); semp.add(attachmentName); return semp; }
return semp;
config = null;
private JPanel setupMailPanel (String fileName) { JPanel semp = new JPanel(); semp.setLayout(new AlignLayout(2,5,5)); JLabel tol = new JLabel(LangTool.getString("em.to")); JLabel subl = new JLabel(LangTool.getString("em.subject")); JLabel bodyl = new JLabel(LangTool.getString("em.body")); JLabel fnl = new JLabel(LangTool.getString("em.fileName")); toAddress = new JComboBox(); toAddress.setEditable(true); subject = new JTextField(30); bodyText = new JTextArea(6,30); JScrollPane bodyScrollPane = new JScrollPane(bodyText); bodyScrollPane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); bodyScrollPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); attachmentName = new JTextField(fileName,30); config = null; if (session != null) { config = session.getConfiguration(); if (config.isPropertyExists("emailTo")) { setToCombo(config.getStringProperty("emailTo"),toAddress); } } semp.add(tol); semp.add(toAddress); semp.add(subl); semp.add(subject); semp.add(bodyl); semp.add(bodyScrollPane); semp.add(fnl); semp.add(attachmentName); return semp; }
}
if (session != null) { config = session.getConfiguration(); if (config.isPropertyExists("emailTo")) { setToCombo(config.getStringProperty("emailTo"), toAddress); } } gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 10, 5, 5); semp.add(screenDump, gbc); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 0; gbc.anchor = GridBagConstraints.CENTER; gbc.insets = new Insets(0, 5, 5, 5); semp.add(text, gbc); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 0; gbc.anchor = GridBagConstraints.CENTER; gbc.insets = new Insets(0, 5, 5, 10); semp.add(graphic, gbc); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); semp.add(tol, gbc); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.gridwidth = 2; gbc.fill = GridBagConstraints.HORIZONTAL; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 5, 5, 10); semp.add(toAddress, gbc); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); semp.add(subl, gbc); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 5, 5, 10); semp.add(subject, gbc); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); semp.add(bodyl, gbc); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 3; gbc.gridwidth = 2; gbc.gridheight = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 5, 5, 10); semp.add(bodyScrollPane, gbc); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 6; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); semp.add(fnl, gbc); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 6; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 5, 5, 10); semp.add(attachmentName, gbc); return semp; }
private JPanel setupMailPanel (String fileName) { JPanel semp = new JPanel(); semp.setLayout(new AlignLayout(2,5,5)); JLabel tol = new JLabel(LangTool.getString("em.to")); JLabel subl = new JLabel(LangTool.getString("em.subject")); JLabel bodyl = new JLabel(LangTool.getString("em.body")); JLabel fnl = new JLabel(LangTool.getString("em.fileName")); toAddress = new JComboBox(); toAddress.setEditable(true); subject = new JTextField(30); bodyText = new JTextArea(6,30); JScrollPane bodyScrollPane = new JScrollPane(bodyText); bodyScrollPane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); bodyScrollPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); attachmentName = new JTextField(fileName,30); config = null; if (session != null) { config = session.getConfiguration(); if (config.isPropertyExists("emailTo")) { setToCombo(config.getStringProperty("emailTo"),toAddress); } } semp.add(tol); semp.add(toAddress); semp.add(subl); semp.add(subject); semp.add(bodyl); semp.add(bodyScrollPane); semp.add(fnl); semp.add(attachmentName); return semp; }