bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
protected void paintComponent(Graphics g) { if (ui != null) ui.update(g, this); }
protected void paintComponent(Graphics g) { if (ui != null) ui.update(g, this); }
5,271
public void setBackground(Color bg) { super.setBackground(bg); revalidate(); repaint(); }
public void setBackground(Color bg) { super.setBackground(bg); revalidate(); repaint(); }
5,272
public void setBorder(Border newBorder) { Border oldBorder = border; border = newBorder; firePropertyChange("border", oldBorder, newBorder); revalidate(); repaint(); }
public void setBorder(Border newBorder) { Border oldBorder = border; border = newBorder; firePropertyChange("border", oldBorder, newBorder); revalidate(); repaint(); }
5,273
public void setEnabled(boolean enable) { boolean oldEnabled = isEnabled(); super.setEnabled(enable); firePropertyChange("enabeld", oldEnabled, enable); revalidate(); repaint(); }
public void setEnabled(boolean enable) { boolean oldEnabled = isEnabled(); super.setEnabled(enable); firePropertyChange("enabeld", oldEnabled, enable); revalidate(); repaint(); }
5,274
public void setFont(Font f) { super.setFont(f); revalidate(); repaint(); }
public void setFont(Font f) { super.setFont(f); revalidate(); repaint(); }
5,275
public void setForeground(Color fg) { super.setForeground(fg); revalidate(); repaint(); }
public void setForeground(Color fg) { super.setForeground(fg); revalidate(); repaint(); }
5,276
public void setMaximumSize(Dimension max) { Dimension oldMaximumSize = maximumSize; maximumSize = max; firePropertyChange("maximumSize", oldMaximumSize, maximumSize); revalidate(); repaint(); }
public void setMaximumSize(Dimension max) { Dimension oldMaximumSize = maximumSize; maximumSize = max; firePropertyChange("maximumSize", oldMaximumSize, maximumSize); revalidate(); repaint(); }
5,277
public void setMinimumSize(Dimension min) { Dimension oldMinimumSize = minimumSize; minimumSize = min; firePropertyChange("minimumSize", oldMinimumSize, minimumSize); revalidate(); repaint(); }
public void setMinimumSize(Dimension min) { Dimension oldMinimumSize = minimumSize; minimumSize = min; firePropertyChange("minimumSize", oldMinimumSize, minimumSize); revalidate(); repaint(); }
5,278
protected void setUI(ComponentUI newUI) { if (ui != null) ui.uninstallUI(this); ComponentUI oldUI = ui; ui = newUI; if (ui != null) ui.installUI(this); firePropertyChange("UI", oldUI, newUI); revalidate(); repaint(); }
protected void setUI(ComponentUI newUI) { if (ui != null) ui.uninstallUI(this); ComponentUI oldUI = ui; ui = newUI; if (ui != null) ui.installUI(this); firePropertyChange("UI", oldUI, newUI); revalidate(); repaint(); }
5,279
public void setVisible(boolean v) { super.setVisible(v); revalidate(); repaint(); }
public void setVisible(boolean v) { super.setVisible(v); revalidate(); repaint(); }
5,280
public synchronized void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { ColorModel currentModel; if (model != null) currentModel = model; else currentModel = this.model; for(int yp = y; yp < (y + h); yp++) { for(int xp = ...
public synchronized void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { ColorModel currentModel; if (model != null) currentModel = model; else currentModel = this.model; for(int yp = y; yp < (y + h); yp++) { for(int xp = ...
5,281
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ...
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ...
5,282
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ...
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ...
5,283
public boolean isCanSendAid() { if (currentField != null && currentField.getAdjustment() > 0 && currentModified && !currentField.isCanSend()) return false; else return true; }
public boolean isCanSendAid() { if (currentField != null && currentField.getAdjustment() > 0 && currentModified && !currentField.isCanSend()) return false; else return true; }
5,284
public void setExtra(byte[] extra) { if (extra == null) { this.extra = null; return; } if (extra.length > 0xffff) throw new IllegalArgumentException(); this.extra = extra; try { int pos = 0; while (pos < extra.length) { int sig = (extra[pos++] & 0xff) | (extra[pos++] & 0xff) ...
publicvoidsetExtra(byte[]extra){if(extra==null){ this.extra=null; return; } if(extra.length>0xffff) thrownewIllegalArgumentException(); this.extra=extra;try{ intpos=0; while(pos<extra.length) { intsig=(extra[pos++]&0xff) |(extra[pos++]&0xff)<<8; intlen=(extra[pos++]&0xff) |(extra[pos++]&0xff)<<8; if(sig==0x5...
5,286
public void setExtra(byte[] extra) { if (extra == null) { this.extra = null; return; } if (extra.length > 0xffff) throw new IllegalArgumentException(); this.extra = extra; try { int pos = 0; while (pos < extra.length) { int sig = (extra[pos++] & 0xff) | (extra[pos++] & 0xff) ...
public void setExtra(byte[] extra) { if (extra == null) { this.extra = null; return; } if (extra.length > 0xffff) throw new IllegalArgumentException(); this.extra = extra; try { int pos = 0; while (pos < extra.length) { int sig = (extra[pos++] & 0xff) | (extra[pos++] & 0xff) ...
5,287
public boolean loadAllInstruments(Soundbank soundbank) throws IllegalArgumentException;
public boolean loadAllInstruments(Soundbank soundbank) throws IllegalArgumentException;
5,288
public boolean loadInstrument(Instrument instrument) throws IllegalArgumentException;
public boolean loadInstrument(Instrument instrument) throws IllegalArgumentException;
5,289
public boolean loadInstruments(Soundbank soundbank, Patch[] patchList) throws IllegalArgumentException;
public boolean loadInstruments(Soundbank soundbank, Patch[] patchList) throws IllegalArgumentException;
5,290
public boolean remapInstrument(Instrument from, Instrument to) throws IllegalArgumentException;
public boolean remapInstrument(Instrument from, Instrument to) throws IllegalArgumentException;
5,291
public void unloadAllInstruments(Soundbank soundbank) throws IllegalArgumentException;
public void unloadAllInstruments(Soundbank soundbank) throws IllegalArgumentException;
5,292
public void unloadInstrument(Instrument instrument) throws IllegalArgumentException;
public void unloadInstrument(Instrument instrument) throws IllegalArgumentException;
5,293
public void unloadInstruments(Soundbank soundbank, Patch[] patchList) throws IllegalArgumentException;
public void unloadInstruments(Soundbank soundbank, Patch[] patchList) throws IllegalArgumentException;
5,294
public Ext2FileSystem(Device device, boolean readOnly) throws FileSystemException { super(device, readOnly); byte data[]; blockCache = new BlockCache(50,(float)0.75); inodeCache = new INodeCache(50,(float)0.75); groupDescriptorLock = new Object(); superblockLock = new Object(); try { data = new byte[S...
public Ext2FileSystem(Device device, boolean readOnly) throws FileSystemException { super(device, readOnly); byte data[]; blockCache = new BlockCache(50,(float)0.75); inodeCache = new INodeCache(50,(float)0.75); groupDescriptorLock = new Object(); superblockLock = new Object(); try { data = new byte[S...
5,295
public Ext2FileSystem(Device device, boolean readOnly) throws FileSystemException { super(device, readOnly); byte data[]; blockCache = new BlockCache(50,(float)0.75); inodeCache = new INodeCache(50,(float)0.75); groupDescriptorLock = new Object(); superblockLock = new Object(); try { data = new byte[S...
public Ext2FileSystem(Device device, boolean readOnly) throws FileSystemException { super(device, readOnly); byte data[]; blockCache = new BlockCache(50,(float)0.75); inodeCache = new INodeCache(50,(float)0.75); groupDescriptorLock = new Object(); superblockLock = new Object(); try { data = new byte[S...
5,296
public Ext2FileSystem(Device device, boolean readOnly) throws FileSystemException { super(device, readOnly); byte data[]; blockCache = new BlockCache(50,(float)0.75); inodeCache = new INodeCache(50,(float)0.75); groupDescriptorLock = new Object(); superblockLock = new Object(); try { data = new byte[S...
public Ext2FileSystem(Device device, boolean readOnly) throws FileSystemException { super(device, readOnly); byte data[]; blockCache = new BlockCache(50,(float)0.75); inodeCache = new INodeCache(50,(float)0.75); groupDescriptorLock = new Object(); superblockLock = new Object(); try { data = new byte[S...
5,297
public byte[] getBlock(long nr) throws IOException{ //log.debug("blockCache size: "+blockCache.size()); int blockSize = superblock.getBlockSize(); Block result; Integer key=new Integer((int)(nr)); synchronized(blockCache) { //check if the block has already been retrieved if(blockCache.containsKey(key)) ...
public byte[] getBlock(long nr) throws IOException{ //log.debug("blockCache size: "+blockCache.size()); int blockSize = superblock.getBlockSize(); Block result; Integer key=new Integer((int)(nr)); synchronized(blockCache) { //check if the block has already been retrieved if(blockCache.containsKey(key)) ...
5,298
public long getBlockSize() { return superblock.getBlockSize(); }
public long getBlockSize() { return superblock.getBlockSize(); }
5,299
protected void modifyUsedDirsCount(int group, int diff) throws IOException { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setUsedDirsCount( gdesc.getUsedDirsCount()+diff ); } }
protected void modifyUsedDirsCount(int group, int diff) throws IOException { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setUsedDirsCount( gdesc.getUsedDirsCount()+diff ); } }
5,300
public void writeBlock(long nr, byte[] data, boolean forceWrite) throws IOException { if(isReadOnly()) throw new ReadOnlyFileSystemException("Filesystem is mounted read-only!"); Block block; Integer key=new Integer((int)nr); //check if the block is in the cache synchronized(blockCache) { if(blockCache.c...
public void writeBlock(long nr, byte[] data, boolean forceWrite) throws IOException { if(isReadOnly()) throw new ReadOnlyFileSystemException("Filesystem is mounted read-only!"); Block block; Integer key=new Integer((int)nr); //check if the block is in the cache synchronized(blockCache) { if(blockCache.c...
5,301
public void writeBlock(long nr, byte[] data, boolean forceWrite) throws IOException { if(isReadOnly()) throw new ReadOnlyFileSystemException("Filesystem is mounted read-only!"); Block block; Integer key=new Integer((int)nr); //check if the block is in the cache synchronized(blockCache) { if(blockCache.c...
public void writeBlock(long nr, byte[] data, boolean forceWrite) throws IOException { if(isReadOnly()) throw new ReadOnlyFileSystemException("Filesystem is mounted read-only!"); Block block; Integer key=new Integer((int)nr); //check if the block is in the cache synchronized(blockCache) { if(blockCache.c...
5,302
public KeyException(String msg) { super(msg); }
public KeyException() { super(msg); }
5,304
public KeyException(String msg) { super(msg); }
public KeyException(String msg) { }
5,305
public String getFamily (){ return peer.getFamily (this);}
public String getFamily (){ return peer.getFamily (this);}
5,306
public Button() { this(null); }
public Button() { this(null); }
5,307
public Button() { this(null); }
public Button() { this(null); }
5,308
public synchronized void addActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.add(action_listeners, listener); }
public synchronized void addActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.add(action_listeners, listener); }
5,309
public synchronized void addActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.add(action_listeners, listener); }
public synchronized void addActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.add(action_listeners, listener); }
5,310
public void addNotify() { if (peer == null) peer = getToolkit().createButton(this); super.addNotify(); }
public void addNotify() { if (peer == null) peer = getToolkit().createButton(this); super.addNotify(); }
5,311
public void addNotify() { if (peer == null) peer = getToolkit().createButton(this); super.addNotify(); }
public void addNotify() { if (peer == null) peer = getToolkit().createButton(this); super.addNotify(); }
5,312
public void addNotify() { if (peer == null) peer = getToolkit().createButton(this); super.addNotify(); }
public void addNotify() { if (peer == null) peer = getToolkit().createButton(this); super.addNotify(); }
5,313
void dispatchEventImpl(AWTEvent e) { if (e.id <= ActionEvent.ACTION_LAST && e.id >= ActionEvent.ACTION_FIRST && (action_listeners != null || (eventMask & AWTEvent.ACTION_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); }
void dispatchEventImpl(AWTEvent e) { if (e.id <= ActionEvent.ACTION_LAST && e.id >= ActionEvent.ACTION_FIRST && (action_listeners != null || (eventMask & AWTEvent.ACTION_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); }
5,314
void dispatchEventImpl(AWTEvent e) { if (e.id <= ActionEvent.ACTION_LAST && e.id >= ActionEvent.ACTION_FIRST && (action_listeners != null || (eventMask & AWTEvent.ACTION_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); }
void dispatchEventImpl(AWTEvent e) { if (e.id <= ActionEvent.ACTION_LAST && e.id >= ActionEvent.ACTION_FIRST && (action_listeners != null || (eventMask & AWTEvent.ACTION_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); }
5,315
public String getActionCommand() { return (actionCommand); }
public String getActionCommand() { return (actionCommand); }
5,316
public synchronized ActionListener[] getActionListeners() { return (ActionListener[]) AWTEventMulticaster.getListeners(action_listeners, ActionListener.class); }
public synchronized ActionListener[] getActionListeners() { return (ActionListener[]) AWTEventMulticaster.getListeners(action_listeners, ActionListener.class); }
5,317
public String getLabel() { return (label); }
public String getLabel() { return (label); }
5,318
public EventListener[] getListeners(Class listenerType) { if (listenerType == ActionListener.class) return getActionListeners(); return (EventListener[]) Array.newInstance(listenerType, 0); }
public EventListener[] getListeners(Class listenerType) { if (listenerType == ActionListener.class) return getActionListeners(); return (EventListener[]) Array.newInstance(listenerType, 0); }
5,319
protected String paramString() { return ("label=" + getLabel() + ",actionCommand=" + getActionCommand() + "," + super.paramString()); }
protected String paramString() { return ("label=" + getLabel() + ",actionCommand=" + getActionCommand() + "," + super.paramString()); }
5,320
protected void processActionEvent(ActionEvent event) { if (action_listeners != null) action_listeners.actionPerformed(event); }
protected void processActionEvent(ActionEvent event) { if (action_listeners != null) action_listeners.actionPerformed(event); }
5,321
protected void processActionEvent(ActionEvent event) { if (action_listeners != null) action_listeners.actionPerformed(event); }
protected void processActionEvent(ActionEvent event) { if (action_listeners != null) action_listeners.actionPerformed(event); }
5,322
protected void processEvent(AWTEvent event) { if (event instanceof ActionEvent) processActionEvent((ActionEvent) event); else super.processEvent(event); }
protected void processEvent(AWTEvent event) { if (event instanceof ActionEvent) processActionEvent((ActionEvent) event); else super.processEvent(event); }
5,323
protected void processEvent(AWTEvent event) { if (event instanceof ActionEvent) processActionEvent((ActionEvent) event); else super.processEvent(event); }
protected void processEvent(AWTEvent event) { if (event instanceof ActionEvent) processActionEvent((ActionEvent) event); else super.processEvent(event); }
5,324
protected void processEvent(AWTEvent event) { if (event instanceof ActionEvent) processActionEvent((ActionEvent) event); else super.processEvent(event); }
protected void processEvent(AWTEvent event) { if (event instanceof ActionEvent) processActionEvent((ActionEvent) event); else super.processEvent(event); }
5,325
public synchronized void removeActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.remove(action_listeners, listener); }
public synchronized void removeActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.remove(action_listeners, listener); }
5,326
public synchronized void removeActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.remove(action_listeners, listener); }
public synchronized void removeActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.remove(action_listeners, listener); }
5,327
public void setActionCommand(String actionCommand) { this.actionCommand = actionCommand == null ? label : actionCommand; }
public void setActionCommand(String actionCommand) { this.actionCommand = actionCommand == null ? label : actionCommand; }
5,328
public void setActionCommand(String actionCommand) { this.actionCommand = actionCommand == null ? label : actionCommand; }
public void setActionCommand(String actionCommand) { this.actionCommand = actionCommand == null ? label : actionCommand; }
5,329
public synchronized void setLabel(String label) { this.label = label; if (peer != null) { ButtonPeer bp = (ButtonPeer) peer; bp.setLabel(label); } }
public synchronized void setLabel(String label) { this.label = label; if (peer != null) { ButtonPeer bp = (ButtonPeer) peer; bp.setLabel(label); } }
5,330
public synchronized void setLabel(String label) { this.label = label; if (peer != null) { ButtonPeer bp = (ButtonPeer) peer; bp.setLabel(label); } }
public synchronized void setLabel(String label) { this.label = label; if (peer != null) { ButtonPeer bp = (ButtonPeer) peer; bp.setLabel(label); } }
5,331
public synchronized void setLabel(String label) { this.label = label; if (peer != null) { ButtonPeer bp = (ButtonPeer) peer; bp.setLabel(label); } }
public synchronized void setLabel(String label) { this.label = label; if (peer != null) { ButtonPeer bp = (ButtonPeer) peer; bp.setLabel(label); } }
5,332
public int getDimension() { return getDataCube().getDimension(); }
public int getDimension() { return getAxes().size(); }
5,334
public boolean removeAxis (AxisInterface axisObj) { boolean isRemoveSuccess = removeFromList(axisObj, getAxes(), AXISLIST_XML_ATTRIBUTE_NAME); if (isRemoveSuccess) { //remove successful getDataCube().decrementDimension(axisObj); //decrease the dimension by 1 updateChildLocators(ax...
public boolean removeAxis (AxisInterface axisObj) { boolean isRemoveSuccess = removeFromList(axisObj, getAxes(), AXISLIST_XML_ATTRIBUTE_NAME); if (isRemoveSuccess) { //remove successful getDataCube().decrementDimension(axisObj); //decrease the dimension by 1 updateChildLocators(ax...
5,335
public void setAxisList(List axisList) { // remove the existing axes List oldAxisList = getAxes(); for (int i=0;i<oldAxisList.size();i++) removeAxis(i++); //add new axes if (axisList != null && axisList.size() > 0) { Iterator iter = axisList.iterator(); while (iter.hasNext()) addAxis((Axis) i...
public void setAxisList(List axisList) { // remove the existing axes List oldAxisList = getAxes(); for (int i=0;i<oldAxisList.size();i++) removeAxis(i++); //add new axes if (axisList != null && axisList.size() > 0) { Iterator iter = axisList.iterator(); while (iter.hasNext()) addAxis((Axis) i...
5,336
public void setAxisList(List axisList) { // remove the existing axes List oldAxisList = getAxes(); for (int i=0;i<oldAxisList.size();i++) removeAxis(i++); //add new axes if (axisList != null && axisList.size() > 0) { Iterator iter = axisList.iterator(); while (iter.hasNext()) addAxis((Axis) i...
public void setAxisList(List axisList) { // remove the existing axes List oldAxisList = getAxes(); for (int i=0;i<oldAxisList.size();i++) removeAxis(i++); //add new axes if (axisList != null && axisList.size() > 0) { Iterator iter = axisList.iterator(); while (iter.hasNext()) addAxis((Axis) i...
5,337
public void setAxisList(List axisList) { // remove the existing axes List oldAxisList = getAxes(); for (int i=0;i<oldAxisList.size();i++) removeAxis(i++); //add new axes if (axisList != null && axisList.size() > 0) { Iterator iter = axisList.iterator(); while (iter.hasNext()) addAxis((Axis) i...
public void setAxisList(List axisList) { // remove the existing axes List oldAxisList = getAxes(); for (int i=0;i<oldAxisList.size();i++) removeAxis(i++); //add new axes if (axisList != null && axisList.size() > 0) { Iterator iter = axisList.iterator(); while (iter.hasNext()) addAxis((Axis) i...
5,338
protected void paintBorder(Graphics graphics) { getBorder().paintBorder(this, graphics, 0, 0, getWidth(), getHeight()); }
protected void paintBorder(Graphics graphics) { Border border = getBorder(); if (paintBorder && border != null) border.paintBorder(this, graphics, 0, 0, getWidth(), getHeight()); }
5,339
public void transmit(SocketBuffer buf, HardwareAddress destination, long timeout) throws InterruptedException, TimeoutException { log.debug(flags.getName() + " : Init transmit with TIMEOUT=" + timeout); // Set the source address hwAddress.writeTo(buf, 6); log.debug("Source : " +((EthernetHeader)buf.getLinkL...
public void transmit(SocketBuffer buf, HardwareAddress destination, long timeout) throws InterruptedException, TimeoutException { log.debug(flags.getName() + " : Init transmit with TIMEOUT=" + timeout); // Set the source address hwAddress.writeTo(buf, 6); log.debug("Source : " +((EthernetHeader)buf.getLinkL...
5,340
protected void configurePropertiesFromAction(Action action) { super.configurePropertiesFromAction(action); if (! (this instanceof JMenu) && action != null) setAccelerator((KeyStroke) (action.getValue(Action.ACCELERATOR_KEY))); }
protected void configurePropertiesFromAction(Action action) { super.configurePropertiesFromAction(action); if (! (this instanceof JMenu) && action != null) { setAccelerator((KeyStroke) (action.getValue(Action.ACCELERATOR_KEY))); super.registerKeyboardAction(action, accelerator, JComponent.WHEN_IN_FOCUSED_...
5,341
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJMenuItem(); return accessibleContext; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJMenuItem(); return accessibleContext; }
5,342
public void menuSelectionChanged(boolean changed) { Component parent = this.getParent(); if (changed) { model.setArmed(true); if (parent != null && parent instanceof JPopupMenu) ((JPopupMenu) parent).setSelected(this); } else { model.setArmed(false); if (parent != null && parent i...
public void menuSelectionChanged(boolean changed) { Component parent = this.getParent(); if (changed) { model.setArmed(true); if (parent != null && parent instanceof JPopupMenu) ((JPopupMenu) parent).setSelected(this); } else { model.setArmed(false); if (parent != null && parent i...
5,343
public void menuSelectionChanged(boolean changed) { Component parent = this.getParent(); if (changed) { model.setArmed(true); if (parent != null && parent instanceof JPopupMenu) ((JPopupMenu) parent).setSelected(this); } else { model.setArmed(false); if (parent != null && parent i...
public void menuSelectionChanged(boolean changed) { Component parent = this.getParent(); if (changed) { model.setArmed(true); if (parent != null && parent instanceof JPopupMenu) ((JPopupMenu) parent).setSelected(this); } else { model.setArmed(false); if (parent != null && parent i...
5,344
public void processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager) { // Fire MenuDragMouseEvents if mouse is being dragged. boolean dragged = (event.getModifiersEx() & InputEvent.BUTTON1_DOWN_MASK) != 0; if (dragged) processMenuDragMouse...
public void processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager) { // Fire MenuDragMouseEvents if mouse is being dragged. boolean dragged = (event.getModifiersEx() & InputEvent.BUTTON1_DOWN_MASK) != 0; if (dragged) processMenuDragMouse...
5,345
public void processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager) { // Fire MenuDragMouseEvents if mouse is being dragged. boolean dragged = (event.getModifiersEx() & InputEvent.BUTTON1_DOWN_MASK) != 0; if (dragged) processMenuDragMouse...
public void processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager) { // Fire MenuDragMouseEvents if mouse is being dragged. boolean dragged = (event.getModifiersEx() & InputEvent.BUTTON1_DOWN_MASK) != 0; if (dragged) processMenuDragMouse...
5,346
public void processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager) { // Fire MenuDragMouseEvents if mouse is being dragged. boolean dragged = (event.getModifiersEx() & InputEvent.BUTTON1_DOWN_MASK) != 0; if (dragged) processMenuDragMouse...
public void processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager) { // Fire MenuDragMouseEvents if mouse is being dragged. boolean dragged = (event.getModifiersEx() & InputEvent.BUTTON1_DOWN_MASK) != 0; if (dragged) processMenuDragMouse...
5,347
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { }
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { }
5,348
public void setUI(MenuItemUI ui) { super.setUI(ui); }
public void setUI(MenuItemUI ui) { super.setUI(ui); }
5,349
public void updateUI() { MenuItemUI mi = ((MenuItemUI) UIManager.getUI(this)); setUI(mi); invalidate(); }
public void updateUI() { MenuItemUI mi = ((MenuItemUI) UIManager.getUI(this)); setUI(mi); invalidate(); }
5,350
public int getEndOffset() { int end = 0; if (getElementCount() == 0) end = getLength(); // FIXME: That ain't correct, fix it. else end = children[children.length - 1].getEndOffset(); return end; }
public int getEndOffset() { int end = 0; if (getElementCount() == 0) end = getLength(); // FIXME: That ain't correct, fix it. else end = children[children.length - 1].getEndOffset(); return end; }
5,352
public int getEndOffset() { int end = 0; if (getElementCount() == 0) end = getLength(); // FIXME: That ain't correct, fix it. else end = children[children.length - 1].getEndOffset(); return end; }
public int getEndOffset() { int end = 0; if (getElementCount() == 0) end = getLength(); // FIXME: That ain't correct, fix it. else end = children[children.length - 1].getEndOffset(); return end; }
5,353
public int getStartOffset() { int start = 0; if (getElementCount() == 0) start = 0; // FIXME: That ain't correct, fix it. else start = children[0].getStartOffset(); return start; }
public int getStartOffset() { int start = 0; if (getElementCount() == 0) start = 0; // FIXME: That ain't correct, fix it. else start = children[0].getStartOffset(); return start; }
5,354
public int getStartOffset() { int start = 0; if (getElementCount() == 0) start = 0; // FIXME: That ain't correct, fix it. else start = children[0].getStartOffset(); return start; }
public int getStartOffset() { int start = 0; if (getElementCount() == 0) start = 0; // FIXME: That ain't correct, fix it. else start = children[0].getStartOffset(); return start; }
5,355
public LeafElement(Element parent, AttributeSet attributes, int start, int end) { super(parent, attributes); { try { if (parent != null) { startPos = parent.getDocument().createPosition(start); endPos = parent.getDocument().createPosition(end); } else { st...
public LeafElement(Element parent, AttributeSet attributes, int start, int end) int len = content.length(); startDelta = 0; if (start > len) startDelta = start - len; endDelta = 0; if (end > len) endDelta = end - len; super(parent, attributes); { try { if (parent != null) ...
5,356
public LeafElement(Element parent, AttributeSet attributes, int start, int end) { super(parent, attributes); { try { if (parent != null) { startPos = parent.getDocument().createPosition(start); endPos = parent.getDocument().createPosition(end); } else { st...
public LeafElement(Element parent, AttributeSet attributes, int start, int end) { super(parent, attributes); { try { if (parent != null) { startPos = parent.getDocument().createPosition(start); endPos = parent.getDocument().createPosition(end); } else { st...
5,357
public LeafElement(Element parent, AttributeSet attributes, int start, int end) { super(parent, attributes); { try { if (parent != null) { startPos = parent.getDocument().createPosition(start); endPos = parent.getDocument().createPosition(end); } else { st...
public LeafElement(Element parent, AttributeSet attributes, int start, int end) { super(parent, attributes); { try { if (parent != null) { startPos = parent.getDocument().createPosition(start); endPos = parent.getDocument().createPosition(end); } else { st...
5,358
public int getEndOffset() { return endPos.getOffset(); }
public int getEndOffset() { return endPos.getOffset() + endDelta; }
5,359
public int getStartOffset() { return startPos.getOffset(); }
public int getStartOffset() { return startPos.getOffset() + startDelta; }
5,360
public JViewport() { setOpaque(true); String scrollModeProp = System.getProperty("gnu.javax.swing.JViewport.scrollMode", "BLIT"); int myScrollMode; if (scrollModeProp.equalsIgnoreCase("simple")) myScrollMode = SIMPLE_SCROLL_MODE; else if (scrollModeProp.equalsIgnoreCa...
public JViewport() { setOpaque(true); String scrollModeProp = System.getProperty("gnu.javax.swing.JViewport.scrollMode", "BLIT"); int myScrollMode; if (scrollModeProp.equalsIgnoreCase("simple")) myScrollMode = SIMPLE_SCROLL_MODE; else if (scrollModeProp.equalsIgnoreCa...
5,361
public final Insets getInsets() { return new Insets(0,0,0,0); }
public final Insets getInsets() { return new Insets(0, 0, 0, 0); }
5,362
public static ServantLocator read(InputStream input) { throw new MARSHAL(); }
public static ServantLocator read(InputStream input) { MARSHAL m = new MARSHAL("Inappropriate"); m.minor = Minor.Inappropriate; throw m; }
5,364
public static void write(OutputStream output, ServantLocator value) { throw new MARSHAL(); }
public static void write(OutputStream output, ServantLocator value) { MARSHAL m = new MARSHAL("Inappropriate"); m.minor = Minor.Inappropriate; throw m; }
5,365
private void init() { classXDFNodeName = "parameter"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"noteList"); attribOrder.add(0,"valueList"); attribOrder.add(0,"units"); attribOrder.add(0,"datatype"); attribOrder.add(0,"paramIdRef"); ...
private void init() { classXDFNodeName = "parameter"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"noteList"); attribOrder.add(0,"valueList"); attribOrder.add(0,"units"); attribOrder.add(0,"datatype"); attribOrder.add(0,"paramIdRef"); ...
5,366
public DoubleItem(int kind, int offsetToFP, Register lsb, Register msb, double value) { super(kind, offsetToFP, lsb, msb); this.value = value; }
public DoubleItem(int kind, int offsetToFP, Register lsb, Register msb, double value) { super(kind, offsetToFP, lsb, msb); this.value = value; }
5,367
protected DoubleWordItem cloneConstant() { return createConst(getValue()); }
protected DoubleWordItem cloneConstant() { return createConst(getValue()); }
5,368
public static ComponentUI createUI(JComponent c) { return new BasicCheckBoxUI(); }
public static ComponentUI createUI(JComponent c) { return new BasicCheckBoxUI(); }
5,369
public LabelView(Element element) { super(element); setPropertiesFromAttributes(); }
public LabelView(Element element) { super(element); valid = false; }
5,370
public void changedUpdate(DocumentEvent e, Shape a, ViewFactory vf) { setPropertiesFromAttributes(); }
public void changedUpdate(DocumentEvent e, Shape a, ViewFactory vf) { valid = false; super.changedUpdate(e, a, vf); }
5,371
protected FontMetrics getFontMetrics() { return getContainer().getGraphics().getFontMetrics(font); }
protected FontMetrics getFontMetrics() { if (! valid) setPropertiesFromAttributes(); Container c = getContainer(); FontMetrics fm; if (c != null) fm = c.getFontMetrics(font); else fm = Toolkit.getDefaultToolkit().getFontMetrics(font); return fm; }
5,374
protected void setPropertiesFromAttributes() { Element el = getElement(); AttributeSet atts = el.getAttributes(); // We cannot use StyleConstants.getBackground() here, because that returns // BLACK as default (when background == null). What we need is the // background setting of the text component in...
protected void setPropertiesFromAttributes() { Element el = getElement(); AttributeSet atts = el.getAttributes(); // We cannot use StyleConstants.getBackground() here, because that returns // BLACK as default (when background == null). What we need is the // background setting of the text component in...
5,380
protected void setPropertiesFromAttributes() { Element el = getElement(); AttributeSet atts = el.getAttributes(); // We cannot use StyleConstants.getBackground() here, because that returns // BLACK as default (when background == null). What we need is the // background setting of the text component in...
protected void setPropertiesFromAttributes() { Element el = getElement(); AttributeSet atts = el.getAttributes(); // We cannot use StyleConstants.getBackground() here, because that returns // BLACK as default (when background == null). What we need is the // background setting of the text component in...
5,381
public AttributeSet getAttributes() { return getElement().getAttributes(); }
public AttributeSet getAttributes() { return getElement().getAttributes(); }
5,382