bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
protected AccessibleContainerHandler() { // TODO: Implement this properly. }
protected AccessibleContainerHandler() { // TODO: Implement this properly. }
55,974
public void componentAdded(ContainerEvent event) { // TODO: Implement this properly. }
Component c = event.getChild(); if (c != null && c instanceof Accessible) { AccessibleContext childCtx = c.getAccessibleContext(); AccessibleJComponent.this.firePropertyChange (AccessibleContext.ACCESSIBLE_CHILD_PROPERTY, null, childCtx); Component c = event.getChild(); if (c != null && c instanceof Accessible) { Acces...
55,975
public void componentRemoved(ContainerEvent valevent) { // TODO: Implement this properly. }
public void componentRemoved(ContainerEvent event) { // TODO: Implement this properly. }
55,977
public void componentRemoved(ContainerEvent valevent) { // TODO: Implement this properly. }
Component c = event.getChild(); if (c != null && c instanceof Accessible) { AccessibleContext childCtx = c.getAccessibleContext(); AccessibleJComponent.this.firePropertyChange (AccessibleContext.ACCESSIBLE_CHILD_PROPERTY, childCtx, null); } Component c = event.getChild(); if (c != null && c instanceof Accessible) { Acc...
55,978
protected AccessibleFocusHandler() { // TODO: Implement this properly. }
protected AccessibleFocusHandler() { // TODO: Implement this properly. }
55,979
public void focusGained(FocusEvent event) { // TODO: Implement this properly. }
AccessibleJComponent.this.firePropertyChange (AccessibleContext.ACCESSIBLE_STATE_PROPERTY, null, AccessibleState.FOCUSED); AccessibleJComponent.this.firePropertyChange (AccessibleContext.ACCESSIBLE_STATE_PROPERTY, null, AccessibleState.FOCUSED); AccessibleJComponent.this.firePropertyChange (AccessibleContext.ACCESSIBLE...
55,980
public void focusLost(FocusEvent valevent) { // TODO: Implement this properly. }
AccessibleJComponent.this.firePropertyChange (AccessibleContext.ACCESSIBLE_STATE_PROPERTY, AccessibleState.FOCUSED, null); AccessibleJComponent.this.firePropertyChange (AccessibleContext.ACCESSIBLE_STATE_PROPERTY, AccessibleState.FOCUSED, null); AccessibleJComponent.this.firePropertyChange (AccessibleContext.ACCESSIBLE...
55,981
protected AccessibleJComponent() { changeSupport = new PropertyChangeSupport(this); }
protected AccessibleJComponent() { }
55,982
public void addPropertyChangeListener(PropertyChangeListener listener) { changeSupport.addPropertyChangeListener(listener); }
public void addPropertyChangeListener(PropertyChangeListener listener) { if (accessibleContainerHandler == null) { accessibleContainerHandler = new AccessibleContainerHandler(); addContainerListener(accessibleContainerHandler); } if (accessibleFocusHandler == null) { accessibleFocusHandler = new Accessibl...
55,983
public Accessible getAccessibleChild(int i) { int index = 0; Component[] children = getComponents(); Accessible found = null; for (int j = 0; index != i; j++) { if (children[j] instanceof Accessible) index++; if (index == i) found = (Accessible) ...
public Accessible getAccessibleChild(int i) { int index = 0; Component[] children = getComponents(); Accessible found = null; for (int j = 0; index != i; j++) { if (children[j] instanceof Accessible) index++; if (index == i) found = (Accessible) ...
55,984
public int getAccessibleChildrenCount() { int count = 0; Component[] children = getComponents(); for (int i = 0; i < children.length; ++i) { if (children[i] instanceof Accessible) count++; } return count; }
public int getAccessibleChildrenCount() { int count = 0; Component[] children = getComponents(); for (int i = 0; i < children.length; ++i) { if (children[i] instanceof Accessible) count++; } return count; }
55,985
public String getAccessibleDescription() { // TODO: Figure out what exactly to return here. It's possible that this // method simply should return null. return null; }
public String getAccessibleDescription() { // TODO: Figure out what exactly to return here. It's possible that this // method simply should return null. String descr = super.getAccessibleDescription(); if (descr == null) { descr = getToolTipText(); } if (descr == null) { Object l = getClien...
55,986
public AccessibleKeyBinding getAccessibleKeyBinding() { // TODO: Implement this properly. return null; }
public AccessibleKeyBinding getAccessibleKeyBinding() { // TODO: Implement this properly. return null; }
55,987
public String getAccessibleName() { // TODO: Figure out what exactly to return here. It's possible that this // method simply should return null. return null; }
public String getAccessibleName() { // TODO: Figure out what exactly to return here. It's possible that this // method simply should return null. String name = super.getAccessibleName(); if (name == null) { name = getTitledBorderText(); } if (name == null) { Object l = getClientProperty(JL...
55,988
public AccessibleRole getAccessibleRole() { // TODO: Check if this is correct. return AccessibleRole.SWING_COMPONENT; }
publicAccessibleRolegetAccessibleRole(){//TODO:Checkifthisiscorrect.returnAccessibleRole.SWING_COMPONENT;}
55,989
public AccessibleStateSet getAccessibleStateSet() { // FIXME: Figure out which states should be set here, and which are // inherited from the super class. return super.getAccessibleStateSet(); }
public AccessibleStateSet getAccessibleStateSet() { // FIXME: Figure out which states should be set here, and which are // inherited from the super class. AccessibleStateSet state = super.getAccessibleStateSet(); if (isOpaque()) state.add(AccessibleState.OPAQUE); return state; }
55,990
public void removePropertyChangeListener(PropertyChangeListener listener) { changeSupport.removePropertyChangeListener(listener); }
public void removePropertyChangeListener(PropertyChangeListener listener) { if (accessibleContainerHandler != null) { removeContainerListener(accessibleContainerHandler); accessibleContainerHandler = null; } if (accessibleFocusHandler != null) { removeFocusListener(accessibleFocusHandler); accessibleFocus...
55,991
public void computeVisibleRect(Rectangle rect) { Component c = getParent(); if (c != null && c instanceof JComponent) { ((JComponent) c).computeVisibleRect(rect); rect.translate(-getX(), -getY()); Rectangle2D.intersect(rect, new Rectangle(0, 0, getWidth(),...
public void computeVisibleRect(Rectangle rect) { Component c = getParent(); if (c != null && c instanceof JComponent) { ((JComponent) c).computeVisibleRect(rect); rect.translate(-getX(), -getY()); Rectangle2D.intersect(rect, new Rectangle(0, 0, getWidth(),...
55,992
public Component getNextFocusableComponent() { return null; }
public Component getNextFocusableComponent() { Container focusRoot = this; if (! this.isFocusCycleRoot()) focusRoot = getFocusCycleRootAncestor(); FocusTraversalPolicy policy = focusRoot.getFocusTraversalPolicy(); return policy.getComponentAfter(focusRoot, this); }
55,994
public void grabFocus() { // TODO: Implement this properly. }
requestFocus(); requestFocus(); publicrequestFocus(); voidrequestFocus(); grabFocus()requestFocus(); requestFocus(); {requestFocus(); requestFocus(); requestFocus(); requestFocus(); //requestFocus(); TODO:requestFocus(); ImplementrequestFocus(); thisrequestFocus(); properly.requestFocus(); requestFocus(); }
55,995
public void paint(Graphics g) { RepaintManager rm = RepaintManager.currentManager(this); // We do a little stunt act here to switch on double buffering if it's // not already on. If we are not already doublebuffered, then we jump // into the method paintDoubleBuffered, which turns on the double buffer ...
public void paint(Graphics g) { RepaintManager rm = RepaintManager.currentManager(this); // We do a little stunt act here to switch on double buffering if it's // not already on. If we are not already doublebuffered, then we jump // into the method paintDoubleBuffered, which turns on the double buffer ...
55,996
protected void paintChildren(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, rectCache); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); // Find the bottommost component that needs to be painted....
protected void paintChildren(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, rectCache); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); // Find the bottommost component that needs to be painted....
55,998
protected void paintChildren(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, rectCache); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); // Find the bottommost component that needs to be painted....
protected void paintChildren(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, rectCache); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); // Find the bottommost component that needs to be painted....
55,999
protected void paintChildren(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, rectCache); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); // Find the bottommost component that needs to be painted....
protected void paintChildren(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, rectCache); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); // Find the bottommost component that needs to be painted....
56,000
void paintDoubleBuffered(Graphics g) { Rectangle r = g.getClipBounds(); if (r == null) r = new Rectangle(0, 0, getWidth(), getHeight()); RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHei...
private void paintDoubleBuffered(Rectangle r) { Rectangle r = g.getClipBounds(); if (r == null) r = new Rectangle(0, 0, getWidth(), getHeight()); RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(...
56,001
void paintDoubleBuffered(Graphics g) { Rectangle r = g.getClipBounds(); if (r == null) r = new Rectangle(0, 0, getWidth(), getHeight()); RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHei...
void paintDoubleBuffered(Graphics g) { Rectangle r = g.getClipBounds(); if (r == null) r = new Rectangle(0, 0, getWidth(), getHeight()); RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHei...
56,002
void paintDoubleBuffered(Graphics g) { Rectangle r = g.getClipBounds(); if (r == null) r = new Rectangle(0, 0, getWidth(), getHeight()); RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHei...
void paintDoubleBuffered(Graphics g) { Rectangle r = g.getClipBounds(); if (r == null) r = new Rectangle(0, 0, getWidth(), getHeight()); RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Component root = SwingUtilities.getRoot(this); Image buffer =...
56,003
void paintDoubleBuffered(Graphics g) { Rectangle r = g.getClipBounds(); if (r == null) r = new Rectangle(0, 0, getWidth(), getHeight()); RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHei...
void paintDoubleBuffered(Graphics g) { Rectangle r = g.getClipBounds(); if (r == null) r = new Rectangle(0, 0, getWidth(), getHeight()); RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHei...
56,004
void paintDoubleBuffered(Graphics g) { Rectangle r = g.getClipBounds(); if (r == null) r = new Rectangle(0, 0, getWidth(), getHeight()); RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHei...
void paintDoubleBuffered(Graphics g) { Rectangle r = g.getClipBounds(); if (r == null) r = new Rectangle(0, 0, getWidth(), getHeight()); RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHei...
56,005
void paintImmediately2(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); Graphics g = getGraphics(); g.setClip(r.x, r.y, r.width, r.height); if (rm.isDoubleBufferingEnabled() && isDoubleBuffered()) paintDoubleBuffered(g); else paintSimple(g); g.dispose(); }
void paintImmediately2(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); Graphics g = getGraphics(); g.setClip(r.x, r.y, r.width, r.height); if (rm.isDoubleBufferingEnabled() && isDoubleBuffered()) paintDoubleBuffered(g); else paintSimple(g); g.dispose(); }
56,006
void paintImmediately2(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); Graphics g = getGraphics(); g.setClip(r.x, r.y, r.width, r.height); if (rm.isDoubleBufferingEnabled() && isDoubleBuffered()) paintDoubleBuffered(g); else paintSimple(g); g.dispose(); }
void paintImmediately2(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); Graphics g = getGraphics(); g.setClip(r.x, r.y, r.width, r.height); if (rm.isDoubleBufferingEnabled() && isDoubleBuffered()) paintDoubleBuffered(r); else paintSimple(g); g.dispose(); }
56,007
void paintImmediately2(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); Graphics g = getGraphics(); g.setClip(r.x, r.y, r.width, r.height); if (rm.isDoubleBufferingEnabled() && isDoubleBuffered()) paintDoubleBuffered(g); else paintSimple(g); g.dispose(); }
void paintImmediately2(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); Graphics g = getGraphics(); g.setClip(r.x, r.y, r.width, r.height); if (rm.isDoubleBufferingEnabled() && isDoubleBuffered()) paintDoubleBuffered(g); else paintSimple(g); g.dispose(); }
56,008
void paintSimple(Graphics g) { Graphics g2 = getComponentGraphics(g); paint(g2); }
void paintSimple(Rectangle r) { Graphics g2 = getComponentGraphics(g); paint(g2); }
56,009
public void repaint(long tm, int x, int y, int width, int height) { Rectangle dirty = new Rectangle(x, y, width, height); Rectangle vis = getVisibleRect(); dirty = dirty.intersection(vis); RepaintManager.currentManager(this).addDirtyRegion(this, dirty.x, dirty.y, ...
public void repaint(long tm, int x, int y, int width, int height) { Rectangle dirty = new Rectangle(x, y, width, height); Rectangle vis = getVisibleRect(); dirty = dirty.intersection(vis); RepaintManager.currentManager(this).addDirtyRegion(this, dirty.x, dirty.y, ...
56,011
public void setNextFocusableComponent(Component aComponent) { // TODO: Implement this properly. }
Container focusRoot = this; if (! this.isFocusCycleRoot()) focusRoot = getFocusCycleRootAncestor(); FocusTraversalPolicy policy = focusRoot.getFocusTraversalPolicy(); if (policy instanceof CompatibilityFocusTraversalPolicy) { policy = new CompatibilityFocusTraversalPolicy(policy); focusRoot.setFocusTraversalPolicy(po...
56,013
public void unregisterKeyboardAction(KeyStroke aKeyStroke) { // FIXME: Must be implemented. }
ActionMap am = getActionMap(); for (int cond = 0; cond < 3; cond++) { InputMap im = getInputMap(cond); if (im != null) { Object action = im.get(aKeyStroke); if (action != null && am != null) am.remove(action); im.remove(aKeyStroke); } } ActionMap am = getActionMap(); for (int cond = 0; cond < 3; cond++) { InputMap ...
56,015
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selector, boolean noLocal, String subscriptionName, ...
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selector, boolean noLocal, String subscriptionName, ...
56,016
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selector, boolean noLocal, String subscriptionName, ...
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selector, boolean noLocal, String subscriptionName, ...
56,017
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selector, boolean noLocal, String subscriptionName, ...
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selector, boolean noLocal, String subscriptionName, ...
56,018
public void unsubscribe(String subscriptionName) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); } String clientID = connectio...
public void unsubscribe(String subscriptionName) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); } String clientID = connectio...
56,019
public void unsubscribe(String subscriptionName) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); } String clientID = connectio...
public void unsubscribe(String subscriptionName) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); } String clientID = connectio...
56,020
public void unsubscribe(String subscriptionName) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); } String clientID = connectio...
public void unsubscribe(String subscriptionName) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); } String clientID = connectio...
56,021
public void unsubscribe(String subscriptionName) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); } String clientID = connectio...
public void unsubscribe(String subscriptionName) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); } String clientID = connectio...
56,022
private void add() { StepPermissionEditor editor = new StepPermissionEditor((StepCell)getCell()); editor.setModel(getModel()); ConditionDescriptor cond = editor.add(); if(cond != null) { conditionsModel.add(cond); } }
privatevoidadd(){StepPermissionEditoreditor=newStepPermissionEditor((StepCell)getCell());editor.setModel(getModel());ConditionDescriptorcond=editor.add();if(cond!=null){conditionsModel.add(cond);}}
56,023
protected void initComponents() { FormLayout layout = new FormLayout("2dlu, max(30dlu;pref), 2dlu, pref:grow, 4dlu", "pref, 2dlu, " + // 1 Info "pref, 2dlu, " + // 3 ID "pref, 2dlu, " + // 5 Name "pref, 2dlu, " + // 7 View "pref, 2dlu, " + // 9 auto "pref, 2dlu, " + // 11 permission ...
protectedvoidinitComponents(){FormLayoutlayout=newFormLayout("2dlu,max(30dlu;pref),2dlu,pref:grow,4dlu","pref,2dlu,"+//1Info"pref,2dlu,"+//3ID"pref,2dlu,"+//5Name"pref,2dlu,"+//7View"pref,2dlu,"+//9auto"pref,2dlu,"+//11permission"pref,2dlu,"+//13type"40dlu:grow,"+//15table"pref,2dlu,"+//16buttons"pref,2dlu,"+//18pre-fu...
56,024
private void modify() { int[] rows = conditionsTable.getSelectedRows(); for(int i = 0; i < rows.length; i++) { modify(i); } }
private void modify() { int[] rows = conditionsTable.getSelectedRows(); for(int i = 0; i < rows.length; i++) { modify(rows[i]); } }
56,025
private void modify() { int[] rows = conditionsTable.getSelectedRows(); for(int i = 0; i < rows.length; i++) { modify(i); } }
privatevoidmodify(){int[]rows=conditionsTable.getSelectedRows();for(inti=0;i<rows.length;i++){modify(i);}}
56,026
private void postmodify() { int[] rows = post.getSelectedRows(); for(int i = 0; i < rows.length; i++) { postmodify(i); } }
private void postmodify() { int[] rows = post.getSelectedRows(); for(int i = 0; i < rows.length; i++) { postmodify(rows[i]); } }
56,027
private void postmodify() { int[] rows = post.getSelectedRows(); for(int i = 0; i < rows.length; i++) { postmodify(i); } }
privatevoidpostmodify(){int[]rows=post.getSelectedRows();for(inti=0;i<rows.length;i++){postmodify(i);}}
56,028
private void postremove() { int[] rows = post.getSelectedRows(); for(int i = 0; i < rows.length; i++) { postModel.remove(i); } }
private void postremove() { int[] rows = post.getSelectedRows(); for(int i = 0; i < rows.length; i++) { postModel.remove(rows[i]); } }
56,029
private void premodify() { int[] rows = pre.getSelectedRows(); for(int i = 0; i < rows.length; i++) { premodify(i); } }
private void premodify() { int[] rows = pre.getSelectedRows(); for(int i = 0; i < rows.length; i++) { premodify(rows[i]); } }
56,030
private void premodify() { int[] rows = pre.getSelectedRows(); for(int i = 0; i < rows.length; i++) { premodify(i); } }
privatevoidpremodify(){int[]rows=pre.getSelectedRows();for(inti=0;i<rows.length;i++){premodify(i);}}
56,031
private void preremove() { int[] rows = pre.getSelectedRows(); for(int i = 0; i < rows.length; i++) { preModel.remove(i); } }
private void preremove() { int[] rows = pre.getSelectedRows(); for(int i = 0; i < rows.length; i++) { preModel.remove(rows[i]); } }
56,032
private void remove() { int[] rows = conditionsTable.getSelectedRows(); for(int i = 0; i < rows.length; i++) { conditionsModel.remove(i); } }
private void remove() { int[] rows = conditionsTable.getSelectedRows(); for(int i = 0; i < rows.length; i++) { conditionsModel.remove(rows[i]); } }
56,033
protected void viewClosed() { if(conditionsTable.isEditing()) { conditionsTable.getCellEditor().stopCellEditing(); } }
protectedvoidviewClosed(){if(conditionsTable.isEditing()){conditionsTable.getCellEditor().stopCellEditing();}}
56,034
public void tearDown() throws Exception { ServerManagement.deInit(); super.tearDown(); }
public void tearDown() throws Exception { super.tearDown(); }
56,035
public int getBaseline() { int leading = height - ascent - descent; if (leading < 0) { XRLog.layout(Level.SEVERE, "negative leading in line box"); } return ascent + leading / 2; }
public int getBaseline() { int leading = height - inlineTop - inlineBottom; if (leading < 0) { XRLog.layout(Level.SEVERE, "negative leading in line box"); } return ascent + leading / 2; }
56,036
public int getBaseline() { int leading = height - ascent - descent; if (leading < 0) { XRLog.layout(Level.SEVERE, "negative leading in line box"); } return ascent + leading / 2; }
public int getBaseline() { int leading = height - ascent - descent; if (leading < 0) { XRLog.layout(Level.SEVERE, "negative leading in line box"); } return inlineTop + leading / 2; }
56,037
public Rectangle getBounds() { return Component.this.isShowing() ? Component.this.getBounds() : null; }
public Rectangle getBounds() { return Component.this.isShowing() ? Component.this.getBounds() : null; }
56,038
public Point getLocation() { return Component.this.isShowing() ? Component.this.getLocation() : null; }
public Point getLocation() { return Component.this.isShowing() ? Component.this.getLocation() : null; }
56,039
public Dimension getSize() { return Component.this.isShowing() ? Component.this.getSize() : null; }
public Dimension getSize() { return Component.this.isShowing() ? Component.this.getSize() : null; }
56,040
public void nextFocus () { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); manager.focusNextComponent (this); }
public void nextFocus () { Container focusRoot = getFocusCycleRootAncestor(); Component focusComp = this; while (focusRoot != null && ! (focusRoot.isShowing() && focusRoot.isFocusable() && focusRoot.isEnabled())) { focusComp = focusRoot; focusRoot = focusComp.getFocusCycleRootAncestor(); } manager.focusNextC...
56,041
public void nextFocus () { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); manager.focusNextComponent (this); }
public void nextFocus () { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); manager.focusNextComponent (this); }
56,042
public void transferFocusBackward () { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); manager.focusPreviousComponent (this); }
public void transferFocusBackward () { Container focusRoot = getFocusCycleRootAncestor(); Component focusComp = this; while (focusRoot != null && ! (focusRoot.isShowing() && focusRoot.isFocusable() && focusRoot.isEnabled())) { focusComp = focusRoot; focusRoot = focusComp.getFocusCycleRootAncestor(); } manage...
56,043
public void transferFocusBackward () { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); manager.focusPreviousComponent (this); }
public void transferFocusBackward () { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); manager.focusPreviousComponent (this); }
56,044
public void transferFocusUpCycle () { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); manager.upFocusCycle (this); }
public void transferFocusUpCycle () { Container focusCycleRoot = getFocusCycleRootAncestor(); while (focusCycleRoot != null && ! (focusCycleRoot.isShowing() && focusCycleRoot.isFocusable() && focusCycleRoot.isEnabled())) { focusCycleRoot = focusCycleRoot.getFocusCycleRootAncestor(); } manager.upFocusCycle (t...
56,045
public void transferFocusUpCycle () { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); manager.upFocusCycle (this); }
public void transferFocusUpCycle () { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); manager.upFocusCycle (this); }
56,046
static Event translateEvent (AWTEvent e) { Object target = e.getSource (); Event translated = null; if (e instanceof InputEvent) { InputEvent ie = (InputEvent) e; long when = ie.getWhen (); int oldID = 0; int id = e.getID (); int oldMods = 0; int mods = ie.getM...
static Event translateEvent (AWTEvent e) { Object target = e.getSource (); Event translated = null; if (e instanceof InputEvent) { InputEvent ie = (InputEvent) e; long when = ie.getWhen (); int oldID = 0; int id = e.getID (); int oldMods = 0; int mods = ie.getM...
56,047
public StatusBar() { setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setRequestFocusEnabled(false); setFocusable(false); setBorder(BorderFactory.createLineBorder(Color.gray, 1)); border = BorderFactory.createEmptyBorder(2, 5, 2, 5); }
public StatusBar() { setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setRequestFocusEnabled(false); setFocusable(false); setBorder(BorderFactory.createLineBorder(Color.gray, 1)); border = BorderFactory.createEmptyBorder(2, 5, 2, 5); }
56,048
public int getHeight() { Component[] components = getComponents(); int height = 0; for(int i = 0; i < components.length; i++) { Component c = components[i]; if(c instanceof DisplayItem) { int itemHeight = c.getPreferredSize().height; if(itemHeight > height) height = itemHeigh...
public int getHeight() { Component[] components = getComponents(); int height = 0; for(int i = 0; i < components.length; i++) { Component c = components[i]; if(c instanceof DisplayItem) { int itemHeight = c.getPreferredSize().height; if(itemHeight > height) height = itemHeigh...
56,049
public DirStateFactory.Result getStateToBind(Object obj, Name name, Context nameCtx, Hashtable environment, Attributes inAttrs) throws NamingException;
DirStateFactory.Result getStateToBind(Object obj, Name name, Context nameCtx, Hashtable environment, Attributes inAttrs) throws NamingException;
56,050
public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d...
public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d...
56,051
public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d...
public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d...
56,052
public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d...
public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d...
56,053
public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d...
public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d...
56,054
public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d...
public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d...
56,055
public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d...
public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d...
56,056
public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d...
public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d...
56,057
public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d...
public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d...
56,058
protected MessageProxy getMessage(long timeout) throws JMSException { MessageProxy m = null; // If it's receiveNoWait then get the message directly if (timeout == -1) { m = getMessageNow(); } else { // ... otherwise we activate the server side consum...
protected MessageProxy getMessage(long timeout) throws JMSException { MessageProxy m = null; // If it's receiveNoWait then get the message directly if (timeout == -1) { m = getMessageNow(); } else { // ... otherwise we activate the server side consum...
56,059
public Object execute() { job.run(); return job.getResult(); }
public JobResult execute() { job.run(); return job.getResult(); }
56,060
public Object execute() { job.run(); return job.getResult(); }
public Object execute() { job.run(); return job.getResult(); }
56,061
public Stylesheet parse(java.io.Reader reader, StylesheetInfo info) { InputSource is = new InputSource(reader); CSSStyleSheet style = null; try { style = parser.parseStyleSheet(is); } catch (java.io.IOException e) { throw new XRRuntimeException("IOException on parsi...
public Stylesheet parse(java.io.Reader reader, StylesheetInfo info) { InputSource is = new InputSource(reader); CSSStyleSheet style = null; try { style = parser.parseStyleSheet(is); } catch (java.io.IOException e) { throw new XRRuntimeException("IOException on parsi...
56,062
private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) { ...
private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) { ...
56,063
private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) { ...
private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.STYLE_RULE) { stylesheet.add...
56,064
private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) { ...
private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) { ...
56,065
private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) { ...
private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) { ...
56,066
private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) { ...
private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) { ...
56,067
private void expandProperty(String prop, CSSStyleRule rule) { if( prop.equals("color") || prop.equals("background-color") || prop.equals("border-color")) { String value = rule.getStyle().getPropertyValue(prop); rule.getStyle().setProperty(prop,getColorHex(...
private void expandProperty(String prop, CSSStyleRule rule) { if( prop.equals("color") || prop.equals("background-color") || prop.equals("border-color")) { String value = rule.getStyle().getPropertyValue(prop); rule.getStyle().setProperty(prop,getColorHex(...
56,071
private void expandProperty(String prop, CSSStyleRule rule) { if( prop.equals("color") || prop.equals("background-color") || prop.equals("border-color")) { String value = rule.getStyle().getPropertyValue(prop); rule.getStyle().setProperty(prop,getColorHex(...
private void expandProperty(String prop, CSSStyleRule rule) { if( prop.equals("color") || prop.equals("background-color") || prop.equals("border-color")) { String value = rule.getStyle().getPropertyValue(prop); rule.getStyle().setProperty(prop,getColorHex(...
56,072
public CSSStyleRule normalize(CSSStyleRule rule) { int length = rule.getStyle().getLength(); //HACK: we need to rewrite all properties in expandProperty //that way, we keep good cascade in case some fool redefined part of a shorthand-property //The good solution would be to create a new ...
public CSSStyleRule normalize(CSSStyleRule rule) { int length = rule.getStyle().getLength(); //HACK: we need to rewrite all properties in expandProperty //that way, we keep good cascade in case some fool redefined part of a shorthand-property //The good solution would be to create a new ...
56,073
public Message receive(long timeout) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (listener != null) { throw new JBossJMSExceptio...
public Message receive(long timeout) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (listener != null) { throw new JBossJMSExceptio...
56,074
public CalculatedStyle getStyle() { return _style; }
public CascadedStyle getStyle() { return _style; }
56,075
public boolean accept(File f) { return f.getName().endsWith("html") || f.getName().endsWith("htm") || f.getName().endsWith("xml"); }
public boolean accept(File f) { return f.getName().endsWith("html") || f.getName().endsWith("htm") || f.getName().endsWith("xml"); }
56,077
public void actionPerformed(ActionEvent e) { File nextPage = (File) JOptionPane.showInputDialog(eezeFrame, "Choose a demo file", "Choose Demo", JOptionPane.PLAIN_MESSAGE, null, testFiles.toArray(), ...
public void actionPerformed(ActionEvent e) { File nextPage = (File) JOptionPane.showInputDialog(eezeFrame, "Choose a demo file", "Choose Demo", JOptionPane.PLAIN_MESSAGE, null, testFiles.toArray(), ...
56,078
public BufferedImage createGradientLine(int width, Color leftColor, Color rightColor, double opacity) { BufferedImage image = new BufferedImage(width, 1, BufferedImage.TYPE_INT_ARGB); int iOpacity = (int) (255 * opacity); for (int co...
public BufferedImage createGradientLine(int width, Color leftColor, Color rightColor, double opacity) { BufferedImage image = new BufferedImage(width, 1, BufferedImage.TYPE_INT_ARGB); int iOpacity = (int) (255 * opacity); for (int co...
56,079
public BufferedImage createGradientLine(int width, Color leftColor, Color rightColor, double opacity) { BufferedImage image = new BufferedImage(width, 1, BufferedImage.TYPE_INT_ARGB); int iOpacity = (int) (255 * opacity); for (int co...
public BufferedImage createGradientLine(int width, Color leftColor, Color rightColor, double opacity) { BufferedImage image = new BufferedImage(width, 1, BufferedImage.TYPE_INT_ARGB); int iOpacity = (int) (255 * opacity); for (int co...
56,080
public BufferedImage createGradientLine(int width, Color leftColor, Color rightColor, double opacity) { BufferedImage image = new BufferedImage(width, 1, BufferedImage.TYPE_INT_ARGB); int iOpacity = (int) (255 * opacity); for (int co...
public BufferedImage createGradientLine(int width, Color leftColor, Color rightColor, double opacity) { BufferedImage image = new BufferedImage(width, 1, BufferedImage.TYPE_INT_ARGB); int iOpacity = (int) (255 * opacity); for (int co...
56,081
protected void paintComponent(Graphics g) { Graphics2D graphics = (Graphics2D) g; BufferedImage oddLine = createGradientLine(this.getWidth(), mainLightColor, mainDarkColor, 0.6); BufferedImage evenLine = createGradientLine(this .getWidth(), ...
protected void paintComponent(Graphics g) { Graphics2D graphics = (Graphics2D) g; BufferedImage oddLine = createGradientLine(this.getWidth(), mainLightColor, mainDarkColor, 0.6); BufferedImage evenLine = createGradientLine(this .getWidth(), ...
56,082
public void actionPerformed(ActionEvent e) { File nextPage = null; for (Iterator iter = testFiles.iterator(); iter.hasNext();) { File f = (File) iter.next(); if (f.equals(currentDisplayed)) { if (iter.hasNext()) { next...
public void actionPerformed(ActionEvent e) { File nextPage = null; for (Iterator iter = testFiles.iterator(); iter.hasNext();) { File f = (File) iter.next(); if (f.equals(currentDisplayed)) { if (iter.hasNext()) { next...
56,083