bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
private InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle) { CalculatedStyle style = content.getStyle(); // get t... | private InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle) { CalculatedStyle style = content.getStyle(); // get t... | 41,447 |
private boolean isEndOfBlock(InlineBox prev_inline, Content content) { // replaced elements aren't split, so done with this one if (content instanceof ReplacedContent) { return true; } if (content instanceof FloatedBlockContent) { return true; } /*if (... | private boolean isEndOfBlock(InlineBox prev_inline, Content content) { // replaced elements aren't split, so done with this one if (content instanceof InlineBlockContent) { return true; } if (content instanceof FloatedBlockContent) { return true; } /*i... | 41,448 |
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getChildContent(c); if (contentList.size() == 0)... | public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getChildContent(c); if (contentList.size() == 0)... | 41,449 |
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getChildContent(c); if (contentList.size() == 0)... | publicBoxlayoutChildren(Contextc,Boxbox){//u.p("startingtolayoutthechildren");/*resolvedbyContentUtilif(LayoutUtil.isHiddenNode(box.getElement(),c)){returnbox;}*/ListcontentList=box.getContent().getChildContent(c);if(contentList.size()==0)returnbox;//wecandothisifthereisnocontent,right?//TODO:unravelthemysteriesofthela... | 41,450 |
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getChildContent(c); if (contentList.size() == 0)... | public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getChildContent(c); if (contentList.size() == 0)... | 41,451 |
public CalculatedStyle getStyle(); | public CalculatedStyle getStyle(); | 41,452 |
public void getMaxLun(USBDevice usbDev) throws USBException { final USBControlPipe pipe = usbDev.getDefaultControlPipe(); final USBRequest req = pipe.createRequest(new SetupPacket(USB_DIR_IN | USB_TYPE_CLASS | USB_RECIP_INTERFACE, 0xFE, 0, 0, 1), new USBPacket(1)); pipe.syncSubmit(r... | public void getMaxLun(USBDevice usbDev) throws USBException { final USBControlPipe pipe = usbDev.getDefaultControlPipe(); final USBRequest req = pipe.createRequest(new SetupPacket(USB_DIR_IN | USB_TYPE_CLASS | USB_RECIP_INTERFACE, 0xFE, 0, 0, 1), packet); pipe.syncSubmit(req, GET_TI... | 41,454 |
public void getMaxLun(USBDevice usbDev) throws USBException { final USBControlPipe pipe = usbDev.getDefaultControlPipe(); final USBRequest req = pipe.createRequest(new SetupPacket(USB_DIR_IN | USB_TYPE_CLASS | USB_RECIP_INTERFACE, 0xFE, 0, 0, 1), new USBPacket(1)); pipe.syncSubmit(r... | public void getMaxLun(USBDevice usbDev) throws USBException { final USBControlPipe pipe = usbDev.getDefaultControlPipe(); final USBRequest req = pipe.createRequest(new SetupPacket(USB_DIR_IN | USB_TYPE_CLASS | USB_RECIP_INTERFACE, 0xFE, 0, 0, 1), new USBPacket(1)); pipe.syncSubmit(r... | 41,455 |
public void paint(Graphics g) { int b = borderWidth; Graphics2D g2 = (Graphics2D)g; Dimension d = getSize(); boolean tmp = selected; int roundRectArc = StepRenderer.getArcSize(d.width - b, d.height - b); if(super.isOpaque()) { g.setColor(super.getBackground()); if(gradientColor != null... | public void paint(Graphics g) { int b = borderWidth; Graphics2D g2 = (Graphics2D)g; Dimension d = getSize(); boolean tmp = selected; int roundRectArc = StepRenderer.getArcSize(d.width - b, d.height - b); if(super.isOpaque()) { g.setColor(super.getBackground()); if(gradientColor != null... | 41,456 |
public static CoreMessage createCoreMessage(long messageID, boolean reliable, Serializable payload) { return createCoreMessage(messageID, reliable, 0, 0, (byte)4, null, payload, 0); } | public static CoreMessage createCoreMessage(long messageID, boolean reliable, Serializable payload) { return createCoreMessage(messageID, reliable, 0, 0, (byte)4, null, payload, 0); } | 41,458 |
public static CoreMessage createCoreMessage(long messageID, boolean reliable, Serializable payload) { return createCoreMessage(messageID, reliable, 0, 0, (byte)4, null, payload, 0); } | public static CoreMessage createCoreMessage(long messageID, boolean reliable, Serializable payload) { return createCoreMessage(messageID, false, 0, 0, (byte)4, null, null); } | 41,459 |
public CoreMessage(long messageID, boolean reliable, long expiration, long timestamp, byte priority, Map headers, byte[] payload) { super(messageID, reliable, expiration, timestamp, pr... | public CoreMessage(long messageID, boolean reliable, long expiration, long timestamp, byte priority, Map headers, byte[] payload) { super(messageID, reliable, expiration, timestamp, pr... | 41,460 |
public CoreMessage(long messageID, boolean reliable, long expiration, long timestamp, byte priority, Map headers, byte[] payload) { super(messageID, reliable, expiration, timestamp, pr... | public CoreMessage(long messageID, boolean reliable, long expiration, long timestamp, byte priority, Map headers, byte[] payload) { } | 41,461 |
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (leaf) setIcon(getLeafI... | public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (leaf) setIcon(getLeafI... | 41,462 |
public void paint(Graphics g) { // paint background Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = new Insets(0, 0, 0, 0); Border border = UIManager.getBorder("Tree.selectionBorder"); if (border != null) insets = border.getBorde... | public void paint(Graphics g) { // paint background Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = new Insets(0, 0, 0, 0); Border border = UIManager.getBorder("Tree.selectionBorder"); if (border != null) insets = border.getBorde... | 41,463 |
public void paint(Graphics g) { // paint background Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = new Insets(0, 0, 0, 0); Border border = UIManager.getBorder("Tree.selectionBorder"); if (border != null) insets = border.getBorde... | publicsuper.paint(g); if (hasFocus) { voidsuper.paint(g); if (hasFocus) { paint(Graphicssuper.paint(g); if (hasFocus) { g) {super.paint(g); if (hasFocus) { super.paint(g); if (hasFocus) { super.paint(g); if (hasFocus) { super.paint(g); if (hasFocus) { //super.paint(g); if (hasFocus) { paintsuper.paint(... | 41,464 |
public void paint(Graphics g) { // paint background Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = new Insets(0, 0, 0, 0); Border border = UIManager.getBorder("Tree.selectionBorder"); if (border != null) insets = border.getBorde... | public void paint(Graphics g) { // paint background Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = new Insets(0, 0, 0, 0); Border border = UIManager.getBorder("Tree.selectionBorder"); if (border != null) insets = border.getBorde... | 41,465 |
public void paint(Graphics g) { // paint background Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = new Insets(0, 0, 0, 0); Border border = UIManager.getBorder("Tree.selectionBorder"); if (border != null) insets = border.getBorde... | public void paint(Graphics g) { // paint background Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = new Insets(0, 0, 0, 0); Border border = UIManager.getBorder("Tree.selectionBorder"); if (border != null) insets = border.getBorde... | 41,466 |
public String getText() { return text; } | public String getText() { return text; } | 41,467 |
public Icon getIcon() { return icon; } | public Icon getIcon() { return icon; } | 41,468 |
public int getVerticalAlignment() { // Returns the alignment of the label's contents along the Y axis. return vert_align; } | public int getVerticalAlignment() { // Returns the alignment of the label's contents along the Y axis. return vert_align; } | 41,469 |
public int getHorizontalAlignment() { // Returns the alignment of the label's contents along the X axis. return hor_align; } | public int getHorizontalAlignment() { // Returns the alignment of the label's contents along the X axis. return hor_align; } | 41,470 |
public int getVerticalTextPosition() { // Returns the vertical position of the label's text, relative to its image. return vert_text_pos; } | public int getVerticalTextPosition() { // Returns the vertical position of the label's text, relative to its image. return vert_text_pos; } | 41,471 |
public int getHorizontalTextPosition() { // Returns the horizontal position of the label's text, relative to its image. return hor_text_pos; } | public int getHorizontalTextPosition() { // Returns the horizontal position of the label's text, relative to its image. return hor_text_pos; } | 41,472 |
public int getIconTextGap() { // Returns the amount of space between the text and the icon displayed in this label. return 0; } | public int getIconTextGap() { // Returns the amount of space between the text and the icon displayed in this label. return 0; } | 41,473 |
public void setIcon(Icon icon) { this.icon = icon; if (icon != null) { // XXX FIXME - icons do not know their parent// icon.setParent(this); } revalidate(); repaint(); } | public void setIcon(Icon icon) { this.icon = icon; if (icon != null) { // XXX FIXME - icons do not know their parent// icon.setParent(this); } revalidate(); repaint(); } | 41,474 |
public void setText(String text) { this.text = text; revalidate(); repaint(); } | public void setText(String text) { this.text = text; revalidate(); repaint(); } | 41,475 |
public void paint(Graphics g) { Graphics g2 = g; Image im = null; Rectangle r = getBounds (); // System.err.println(this + ".paint(...), bounds = " + r); if (use_double_buffer) { im = createImage (r.width, r.height); g2 = im.getGraphics (); if (this.getBackgro... | public void paint(Graphics g) { Graphics g2 = g; Image im = null; Rectangle r = getBounds (); // System.err.println(this + ".paint(...), bounds = " + r); if (use_double_buffer) { im = createImage (r.width, r.height); g2 = im.getGraphics (); if (this.getBackgro... | 41,476 |
public void paint(Graphics g) { Graphics g2 = g; Image im = null; Rectangle r = getBounds (); // System.err.println(this + ".paint(...), bounds = " + r); if (use_double_buffer) { im = createImage (r.width, r.height); g2 = im.getGraphics (); if (this.getBackgro... | publicvoidpaint(Graphicsg) { Graphicsg2=g; Imageim=null; Rectangler=getBounds(); //System.err.println(this+".paint(...),bounds="+r); if(use_double_buffer) {im=createImage(r.width,r.height);g2=im.getGraphics();if(this.getBackground()!=null){Colorsave=g2.getColor();g2.setColor(this.getBackground());g2.fillRect(0... | 41,477 |
public void paint(Graphics g) { Graphics g2 = g; Image im = null; Rectangle r = getBounds (); // System.err.println(this + ".paint(...), bounds = " + r); if (use_double_buffer) { im = createImage (r.width, r.height); g2 = im.getGraphics (); if (this.getBackgro... | public void paint(Graphics g) { Graphics g2 = g; Image im = null; Rectangle r = getBounds (); // System.err.println(this + ".paint(...), bounds = " + r); if (use_double_buffer) { im = createImage (r.width, r.height); g2 = im.getGraphics (); if (this.getBackgro... | 41,478 |
public void paint(Graphics g) { Graphics g2 = g; Image im = null; Rectangle r = getBounds (); // System.err.println(this + ".paint(...), bounds = " + r); if (use_double_buffer) { im = createImage (r.width, r.height); g2 = im.getGraphics (); if (this.getBackgro... | public void paint(Graphics g) { Graphics g2 = g; Image im = null; Rectangle r = getBounds (); // System.err.println(this + ".paint(...), bounds = " + r); if (use_double_buffer) { im = createImage (r.width, r.height); g2 = im.getGraphics (); if (this.getBackgro... | 41,479 |
public abstract Image createImage(ImageProducer producer); | public abstract Image createImage(ImageProducer producer); | 41,480 |
public void compileRuntime(VmMethod method, ObjectResolver resolver, int level, NativeStream os) { if (method.isAbstract()) { super.compileRuntime(method, resolver, level, os); } else if (X86CompilerHelper.isClassInitializeNeeded(method)) { // Create the code to initialize and call the interpreter super.compil... | public void compileRuntime(VmMethod method, ObjectResolver resolver, int level, NativeStream os) { if (method.isAbstract()) { super.compileRuntime(method, resolver, level, os); } else if (X86CompilerHelper.isClassInitializeNeeded(method)) { // Create the code to initialize and call the interpreter super.compil... | 41,481 |
public void compileRuntime(VmMethod method, ObjectResolver resolver, int level, NativeStream os) { if (method.isNative()) { throw new IllegalArgumentException( "Cannot compile native methods"); } //long start = System.currentTimeMillis(); //System.out.println("Compilin... | public void compileRuntime(VmMethod method, ObjectResolver resolver, int level, NativeStream os) { if (method.isNative()) { throw new IllegalArgumentException( "Cannot compile native methods"); } //long start = System.currentTimeMillis(); //System.out.println("Compilin... | 41,482 |
public int getListCounter() { return getList_counter(); } | public int getListCounter() { return list_counter; } | 41,484 |
public void pushStyle(CascadedStyle s) { CalculatedStyle parent = (CalculatedStyle) styleStack.peek(); CalculatedStyle derived = getCss().getDerivedStyle(parent, s); styleStack.push(derived); } | public void pushStyle(CascadedStyle s) { CalculatedStyle parent = (CalculatedStyle) styleStack.peek(); CalculatedStyle derived = parent.deriveStyle(s); styleStack.push(derived); } | 41,485 |
public void setListCounter(int counter) { this.setList_counter(counter); } | public void setListCounter(int counter) { list_counter = counter; } | 41,486 |
public static void render( Level level, String msg ) { log( RENDER, level, msg ); } | public static void render( Level level, String msg ) { log( RENDER, level, msg ); } | 41,487 |
public ObjectInputStream createInput(InputStream in, ClassLoader cl) throws IOException { return new MessagingObjectInputStream(in); } | public ObjectInputStream createInput(InputStream in, ClassLoader cl) throws IOException { return new MessagingObjectInputStream(new DataInputStream(in)); } | 41,488 |
public ObjectOutputStream createOutput(OutputStream out) throws IOException { return new MessagingObjectOutputStream(out); } | public ObjectOutputStream createOutput(OutputStream out) throws IOException { return new MessagingObjectOutputStream(new DataOutputStream(out)); } | 41,489 |
public SQLWarning(String reason, String SQLState, int vendorCode) { super(reason, SQLState, vendorCode); } | public SQLWarning(String message, String SQLState, int vendorCode) { super(reason, SQLState, vendorCode); } | 41,490 |
public SQLWarning(String reason, String SQLState, int vendorCode) { super(reason, SQLState, vendorCode); } | public SQLWarning(String reason, String SQLState, int vendorCode) { super(message, SQLState, vendorCode); } | 41,491 |
public static void fill(byte[] a, byte val) { fill(a, 0, a.length, val); } | public static void fill(boolean[] a, boolean val) { fill(a, 0, a.length, val); } | 41,492 |
protected void setUp() throws Exception { Message m = MessageFactory.createCoreMessage(0); m.putHeader("headerName01", "headerValue01"); MessageStore ms = new PagingMessageStore("0"); rs = (RoutableSupport)ms.reference(m); super.setUp(); log.debug("setup done"); } | protected void setUp() throws Exception { Message m = MessageFactory.createCoreMessage(0); m.putHeader("headerName01", "headerValue01"); MessageStore ms = new SimpleMessageStore("0"); rs = (RoutableSupport)ms.reference(m); super.setUp(); log.debug("setup done"); } | 41,493 |
public void remove(int index) { super.remove(index); removeTabAt(index); } | public void remove(Component component) { super.remove(index); removeTabAt(index); } | 41,494 |
public void remove(int index) { super.remove(index); removeTabAt(index); } | public void remove(int index) { super.remove(index); removeTabAt(index); } | 41,495 |
public void removeAll() { for (int i = tabs.size() - 1; i >= 0; i--) removeTabAt(i); } | public void removeAll() { setSelectedIndex(-1); for (int i = getTabCount() - 1; i >= 0; i--) removeTabAt(i); } | 41,496 |
public void removeTabAt(int index) { checkIndex(index, 0, tabs.size()); tabs.remove(index); getComponentAt(index).show(); } | public void removeTabAt(int index) { checkIndex(index, 0, tabs.size()); tabs.remove(index); if (comp != null) { Component[] children = getComponents(); for (int i = children.length - 1; i >= 0; --i) { if (children[i] == comp) { super.remove(i); comp.setVisible(true); break; } } } revalidate(); repaint()... | 41,497 |
public String getToolTipText(MouseEvent event) { return tool_tip_text; } | public String getToolTipText(MouseEvent event) { return tool_tip_text; } | 41,498 |
public void remove(Component comp) { synchronized (getTreeLock ()) { for (int i = 0; i < ncomponents; ++i) { if (component[i] == comp) { remove(i); break; } } } } | public void remove(int index) { synchronized (getTreeLock ()) { for (int i = 0; i < ncomponents; ++i) { if (component[i] == comp) { remove(i); break; } } } } | 41,499 |
public void remove(Component comp) { synchronized (getTreeLock ()) { for (int i = 0; i < ncomponents; ++i) { if (component[i] == comp) { remove(i); break; } } } } | public void remove(Component comp) { synchronized (getTreeLock ()) { Component r = component[index]; ComponentListener[] list = r.getComponentListeners(); for (int j = 0; j < list.length; j++) r.removeComponentListener(list[j]); r.removeNotify(); System.arraycopy(component, index + 1, component, in... | 41,500 |
public void remove(Component comp) { synchronized (getTreeLock ()) { for (int i = 0; i < ncomponents; ++i) { if (component[i] == comp) { remove(i); break; } } } } | public void remove(Component comp) { synchronized (getTreeLock ()) { for (int i = 0; i < ncomponents; ++i) { if (component[i] == comp) { remove(i); break; } } } } | 41,501 |
public JTextField(int columns) { this(null, null, columns); } | public JTextField() { this(null, null, columns); } | 41,504 |
public JTextField(int columns) { this(null, null, columns); } | public JTextField(int columns) { this(null, null, 0); } | 41,505 |
public JComboBox(Object[] itemArray) { this(new DefaultComboBoxModel(itemArray)); if (itemArray.length > 0) setSelectedIndex(0); } | public JComboBox(ComboBoxModel model) { this(new DefaultComboBoxModel(itemArray)); if (itemArray.length > 0) setSelectedIndex(0); } | 41,506 |
public JComboBox(Object[] itemArray) { this(new DefaultComboBoxModel(itemArray)); if (itemArray.length > 0) setSelectedIndex(0); } | public JComboBox(Object[] itemArray) { this(new DefaultComboBoxModel(itemArray)); if (itemArray.length > 0) setSelectedIndex(0); } | 41,507 |
public BeanConnector() { } | public BeanConnector(Object aSource) { } | 41,508 |
public JTable (TableModel dm) { this(dm, null, null); } | public JTable () { this(dm, null, null); } | 41,511 |
public JTable (TableModel dm) { this(dm, null, null); } | public JTable (TableModel dm) { this(null, null, null); } | 41,512 |
public FunctionDescriptor add() { ConfigFunctionDescriptor function = getFunction(); if(function == null) { return null; } function = editFunction(function, WorkflowDesigner.INSTANCE); if(function != null) { FunctionDescriptor func = DescriptorFactory.getFactory().createFunctionDescrip... | publicFunctionDescriptoradd(){ConfigFunctionDescriptorfunction=getFunction();if(function==null){returnnull;}function=editFunction(function,WorkflowDesigner.INSTANCE);if(function!=null){FunctionDescriptorfunc=DescriptorFactory.getFactory().createFunctionDescriptor();// cond.setId(0);func.setParent(getParent());func.se... | 41,514 |
public void modify(FunctionDescriptor func) { ConfigFunctionDescriptor function; if(func.getName() != null) { function = new ConfigFunctionDescriptor(getModel().getPalette().getPrefunction(func.getName())); } else { function = new ConfigFunctionDescriptor(getModel().getPalette()); fun... | public void modify(FunctionDescriptor func) { ConfigFunctionDescriptor function; if(func.getName() != null && (getModel().getPalette().getPrefunction(func.getName()) != null)) { function = new ConfigFunctionDescriptor(getModel().getPalette().getPrefunction(func.getName())); } else { functi... | 41,515 |
public void modify(FunctionDescriptor func) { ConfigFunctionDescriptor function; if(func.getName() != null) { function = new ConfigFunctionDescriptor(getModel().getPalette().getPrefunction(func.getName())); } else { function = new ConfigFunctionDescriptor(getModel().getPalette()); fun... | publicvoidmodify(FunctionDescriptorfunc){ConfigFunctionDescriptorfunction;if(func.getName()!=null){ function=newConfigFunctionDescriptor(getModel().getPalette().getPrefunction(func.getName()));}else{function=newConfigFunctionDescriptor(getModel().getPalette());function.setType(func.getType());}function.getArgs().putAll... | 41,516 |
public TableCellEditor getCellEditor() { return cellEditor; } | public TableCellEditor getCellEditor(int row, int column) { return cellEditor; } | 41,517 |
public TableCellEditor getCellEditor() { return cellEditor; } | public TableCellEditor getCellEditor() { TableCellEditor editor = columnModel.getColumn(column).getCellEditor(); if (editor == null) editor = getDefaultEditor(dataModel.getColumnClass(column)); return editor; } | 41,518 |
public void addReference(MessageReference ref, Transaction tx) throws Throwable { super.addReference(ref, tx); if (ref.isReliable()) { // Reliable message in a recoverable state - also add to db if (log.isTraceEnabled()) { log.trace("adding " + ref + (tx == null ? " to database n... | public void addReference(MessageReference ref, Transaction tx) throws Throwable { super.addReference(ref, tx); if (ref.isReliable()) { // Reliable message in a recoverable state - also add to db if (trace) { log.trace("adding " + ref + (tx == null ? " to database non-transactiona... | 41,519 |
public void addReference(MessageReference ref, Transaction tx) throws Throwable { super.addReference(ref, tx); if (ref.isReliable()) { // Reliable message in a recoverable state - also add to db if (log.isTraceEnabled()) { log.trace("adding " + ref + (tx == null ? " to database n... | public void addReference(MessageReference ref, Transaction tx) throws Throwable { super.addReference(ref, tx); if (ref.isReliable()) { // Reliable message in a recoverable state - also add to db if (log.isTraceEnabled()) { log.trace("adding " + ref + (tx == null ? " to database n... | 41,520 |
protected void installDefaults() { LookAndFeel.installBorder(menuItem, "Menu.border"); LookAndFeel.installColorsAndFont(menuItem, "Menu.background", "Menu.foreground", "Menu.font"); menuItem.setMargin(UIManager.getInsets("Menu.margin")); acceleratorFont = UIManager.get... | protected void installDefaults() { LookAndFeel.installBorder(menuItem, "Menu.border"); LookAndFeel.installColorsAndFont(menuItem, "Menu.background", "Menu.foreground", "Menu.font"); menuItem.setMargin(UIManager.getInsets("Menu.margin")); acceleratorFont = UIManager.get... | 41,522 |
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | 41,523 |
public VmType getComponentType() { return componentType; } | public VmType getComponentType() { return componentType; } | 41,524 |
final VmArrayClass getArrayClass(boolean link) { if (arrayClass == null) { arrayClass = createArrayClass(link, null); } return arrayClass; } | final VmArrayClass getArrayClass(String arrayClassName) { if (arrayClass == null) { arrayClass = createArrayClass(link, null); } return arrayClass; } | 41,525 |
final VmArrayClass getArrayClass(boolean link) { if (arrayClass == null) { arrayClass = createArrayClass(link, null); } return arrayClass; } | final VmArrayClass getArrayClass(boolean link) { if (arrayClass == null) { arrayClass = createArrayClass(true, arrayClassName); } else { arrayClass.link(); } return arrayClass; } | 41,526 |
public float getAlignment(int axis) { return 0; } | public float getAlignment(int axis) { float align; if (axis == X_AXIS) align = getComponent().getAlignmentX(); else if (axis == Y_AXIS) align = getComponent().getAlignmentY(); else throw new IllegalArgumentException(); return align; } | 41,527 |
public final Component getComponent() { return null; } | public final Component getComponent() { if (comp == null) comp = createComponent(); return comp; } | 41,528 |
public float getMaximumSpan(int axis) { return 0; } | public float getMaximumSpan(int axis) { float span; if (axis == X_AXIS) span = getComponent().getMaximumSize().width; else if (axis == Y_AXIS) span = getComponent().getMaximumSize().height; else throw new IllegalArgumentException(); return span; } | 41,529 |
public float getMinimumSpan(int axis) { // TODO: Implement this properly. return 0; } | public float getMinimumSpan(int axis) { // TODO: Implement this properly. return 0; } | 41,530 |
public int getNextVisualPositionFrom(JTextComponent c, int pos, Position.Bias b, int d, Position.Bias[] biasRet) throws BadLocationException { // TODO: Implement this properly. throw new AssertionError("Not implemented yet."); } | public int getNextVisualPositionFrom(JTextComponent c, int pos, Position.Bias b, int d, Position.Bias[] biasRet) throws BadLocationException { // TODO: Implement this properly. throw new AssertionError("Not yet implemented"); } | 41,531 |
public float getPreferredSpan(int axis) { // TODO: Implement this properly. return 0; } | public float getPreferredSpan(int axis) { // TODO: Implement this properly. return 0; } | 41,532 |
public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException { // TODO: Implement this properly. return null; } | public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException { // TODO: Implement this properly. return null; } | 41,533 |
public void paint(Graphics g, Shape a) { // TODO: Implement this properly. } | Rectangle r = a.getBounds(); getComponent().setBounds(r.x, r.y, r.width, r.height); Rectangle r = a.getBounds(); getComponent().setBounds(r.x, r.y, r.width, r.height); Rectangle r = a.getBounds(); getComponent().setBounds(r.x, r.y, r.width, r.height); Rectangle r = a.getBounds(); getComponent().setBounds(r.x, r.y, r.wi... | 41,534 |
public void setParent(View p) { // TODO: Implement this properly. } | public void setParent(final View p) { if (SwingUtilities.isEventDispatchThread()) setParentImpl(p); else SwingUtilities.invokeLater (new Runnable() { public void run() { // TODO: Implement this properly. } | 41,535 |
public void setParent(View p) { // TODO: Implement this properly. } | setParentImpl(p); } }); setParentImpl(p); } }); setParentImpl(p); } }); setParentImpl(p); } }); publicsetParentImpl(p); } }); voidsetParentImpl(p); } }); setParent(ViewsetParentImpl(p); } }); p)setParentImpl(p); } }); setParentImpl(p); } }); setParentImpl(p); } }); setParentImpl(p); } }); {setParentImpl(p); } }); setPa... | 41,536 |
public int viewToModel(float x, float y, Shape a, Position.Bias[] bias) { // TODO: Implement this properly. return 0; } | public int viewToModel(float x, float y, Shape a, Position.Bias[] bias) { // TODO: Implement this properly. return 0; } | 41,537 |
public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet s = new AccessibleStateSet(); if (Component.this.isEnabled()) s.add(AccessibleState.ENABLED); if (isFocusable()) s.add(AccessibleState.FOCUSABLE); if (isFocusOwner()) s.add(AccessibleState.FOCUSED); if (isOpaque()) s.add... | public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet s = new AccessibleStateSet(); if (Component.this.isEnabled()) s.add(AccessibleState.ENABLED); if (isFocusable()) s.add(AccessibleState.FOCUSABLE); if (isFocusOwner()) s.add(AccessibleState.FOCUSED); if (isOpaque()) s.add... | 41,539 |
public AncestorEvent(JComponent source, int id, Container ancestor, Container ancestorParent) { super(source, id); this.sourceComponent = source; this.ancestor = ancestor; this.ancestorParent = ancestorParent; } // AncestorEvent() | public AncestorEvent(JComponent source, int id, Container ancestor, Container ancestorParent) { super(source, id); this.sourceComponent = source; this.ancestor = ancestor; this.ancestorParent = ancestorParent; } // AncestorEvent() | 41,540 |
public void ancestorAdded(AncestorEvent event); | public void ancestorAdded(AncestorEvent event); | 41,541 |
boolean contains(JComponent c, int x, int y) { return c.inside(x,y); } | boolean contains(JComponent c, int x, int y) { return c.inside(x,y); } | 41,542 |
public EventListener[] getListeners(Class c) { // Variables int count; EventListener[] list; String name; int index; // Get count of listeners count = getListenerCount(c); // Create Event Listener list list = new EventListener[count]; // Construct List count = 0; name = c.getName(); for (inde... | public EventListener[] getListeners(Class c) { // Variables int count; EventListener[] list; String name; int index; // Get count of listeners count = getListenerCount(c); // Create Event Listener list list = new EventListener[count]; // Construct List count = 0; name = c.getName(); for (inde... | 41,543 |
public EventListener[] getListeners(Class c) { // Variables int count; EventListener[] list; String name; int index; // Get count of listeners count = getListenerCount(c); // Create Event Listener list list = new EventListener[count]; // Construct List count = 0; name = c.getName(); for (inde... | public EventListener[] getListeners(Class c) { // Variables int count; EventListener[] list; String name; int index; // Get count of listeners count = getListenerCount(c); // Create Event Listener list list = new EventListener[count]; // Construct List count = 0; name = c.getName(); for (inde... | 41,544 |
public Point getLocation(Point p) { if (p == null) p = new Point(); p.x = x; p.y = y; return p; } | public Point getLocation() { if (p == null) p = new Point(); p.x = x; p.y = y; return p; } | 41,545 |
public Point getLocation(Point p) { if (p == null) p = new Point(); p.x = x; p.y = y; return p; } | public Point getLocation(Point p) { if (p == null) p = new Point(); p.x = x; p.y = y; return p; } | 41,546 |
public Dimension getPreferredSize(JComponent c) { return null; } | public Dimension getPreferredSize(JComponent c) { return null; } | 41,547 |
setClip(Shape clip); | setClip(Shape clip); | 41,548 |
public void update(Graphics g, JComponent c) { if (c.isOpaque()) { g.setColor(c.getBackground()); g.fillRect(0, 0, c.getWidth(),c.getHeight()); } paint(g, c); } | public void update(Graphics g, JComponent c) { if (c.isOpaque()) { g.setColor(c.getBackground()); g.fillRect(0, 0, c.getWidth(),c.getHeight()); } paint(g, c); } | 41,549 |
public KeyStroke[] allKeys() { Set set = new HashSet(); if (parent != null) set.addAll(Arrays.asList(parent.allKeys())); set.addAll(inputMap.keySet()); if (set.size() == 0) return null; KeyStroke[] array = new KeyStroke[set.size()]; return (KeyStroke[]) set.toArray(array); } | public KeyStroke[] allKeys() { Set set = new HashSet(); if (parent != null) { Object[] parentKeys = parent.allKeys(); if (parentKeys != null) set.addAll(Arrays.asList(parentKeys)); } set.addAll(inputMap.keySet()); if (set.size() == 0) return null; KeyStroke[] array = new KeyStroke[set.size()... | 41,551 |
protected boolean requestFocusInWindow (boolean temporary) { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); Window focusedWindow = manager.getFocusedWindow (); if (isDisplayable () && isShowing () && isFocusable ()) { if (focusedWindow != null) { ... | public boolean requestFocusInWindow () { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); Window focusedWindow = manager.getFocusedWindow (); if (isDisplayable () && isShowing () && isFocusable ()) { if (focusedWindow != null) { synchroni... | 41,552 |
protected boolean requestFocusInWindow (boolean temporary) { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); Window focusedWindow = manager.getFocusedWindow (); if (isDisplayable () && isShowing () && isFocusable ()) { if (focusedWindow != null) { ... | protected boolean requestFocusInWindow (boolean temporary) { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); Window focusedWindow = manager.getFocusedWindow (); if (isDisplayable () && isShowing () && isFocusable ()) { if (focusedWindow != null) { ... | 41,553 |
protected boolean requestFocusInWindow (boolean temporary) { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); Window focusedWindow = manager.getFocusedWindow (); if (isDisplayable () && isShowing () && isFocusable ()) { if (focusedWindow != null) { ... | protected boolean requestFocusInWindow (boolean temporary) { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); Window focusedWindow = manager.getFocusedWindow (); if (isDisplayable () && isShowing () && isFocusable ()) { if (focusedWindow != null) { ... | 41,554 |
public void close() throws JMSException { synchronized (mainLock) { log.debug(this + " closing"); if (closed) { return; } closed = true; if (receiverThread != null) { // Wake up any ... | public void close() throws JMSException { synchronized (mainLock) { log.debug(this + " closing"); if (closed) { return; } closed = true; if (receiverThread != null) { // Wake up any ... | 41,555 |
private MessageProxy getMessage(long timeout) throws JMSException { if (timeout == -1) { // receiveNoWait so don't wait } else { try { if (timeout == 0) { // wait for ever potentially while (!closed... | private MessageProxy getMessage(long timeout) throws JMSException { if (timeout == -1) { // receiveNoWait so don't wait } else { try { if (timeout == 0) { // wait for ever potentially while (!closed... | 41,556 |
public DeliveryInfo(MessageProxy msg, int consumerId, long channelID) { this.msg = msg; this.consumerId = consumerId; this.channelID = channelID; } | public DeliveryInfo(MessageProxy msg, int consumerId, long channelID, SessionDelegate connectionConsumerSession) { this.msg = msg; this.consumerId = consumerId; this.channelID = channelID; } | 41,557 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.