bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public void setValue(int value) { // TODO } // setValue() | public void setValue(int value) { // TODO } // setValue() | 26,087 |
public void setValueIsAdjusting(boolean adjusting) { // TODO } // setValueIsAdjusting() | public void setValueIsAdjusting(boolean adjusting) { // TODO } // setValueIsAdjusting() | 26,088 |
protected void updateLabelUIs() { // TODO } // updateLabelUIs() | protected void updateLabelUIs() { // TODO } // updateLabelUIs() | 26,089 |
public void updateUI() { setUI((SliderUI) UIManager.get(this)); invalidate(); } // updateUI() | public void updateUI() { setUI((SliderUI) UIManager.get(this)); invalidate(); } // updateUI() | 26,090 |
public EventListenerList() { listenerList = new Object[0]; } // EventListenerList() | public EventListenerList() { listenerList = new Object[0]; } // EventListenerList() | 26,091 |
public void add(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; // Create New list in anticipation that listener is not present list = new Object[listenerList.length + 2]; // Search through list looking for listener for (index = 0;... | public void add(Class t, EventListener listener) { int oldLength; Object[] newList; // Variables Object[] list; int index; Class checkClass; EventListener checkListener; // Create New list in anticipation that listener is not present list = new Object[listenerList.length + 2]; // Search through list look... | 26,092 |
public void add(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; // Create New list in anticipation that listener is not present list = new Object[listenerList.length + 2]; // Search through list looking for listener for (index = 0;... | public void add(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; // Create New list in anticipation that listener is not present list = new Object[listenerList.length + 2]; // Search through list looking for listener for (index = 0;... | 26,093 |
public void add(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; // Create New list in anticipation that listener is not present list = new Object[listenerList.length + 2]; // Search through list looking for listener for (index = 0;... | public void add(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; // Create New list in anticipation that listener is not present if (!t.isInstance(listener)) throw new IllegalArgumentException(); // Search through list looking for li... | 26,094 |
public void add(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; // Create New list in anticipation that listener is not present list = new Object[listenerList.length + 2]; // Search through list looking for listener for (index = 0;... | public void add(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; // Create New list in anticipation that listener is not present list = new Object[listenerList.length + 2]; // Search through list looking for listener for (index = 0;... | 26,095 |
public void add(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; // Create New list in anticipation that listener is not present list = new Object[listenerList.length + 2]; // Search through list looking for listener for (index = 0;... | public void add(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; // Create New list in anticipation that listener is not present list = new Object[listenerList.length + 2]; // Search through list looking for listener for (index = 0;... | 26,096 |
public void setVerticalAlignment(int alignment) { // Sets the alignment of the label's contents along the Y axis. vert_align = alignment; } | public void setVerticalAlignment(int alignment) { // Sets the alignment of the label's contents along the Y axis. vert_align = alignment; } | 26,097 |
public void setHorizontalAlignment(int alignment) { // Sets the alignment of the label's contents along the X axis. hor_align = alignment; } | public void setHorizontalAlignment(int alignment) { // Sets the alignment of the label's contents along the X axis. hor_align = alignment; } | 26,098 |
public void remove(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; int pointer; boolean found; // Create New list in anticipation that listener is not present if (listenerList.length == 0) { return; } // if list = new Obje... | public void remove(Class t, EventListener listener) { Object[] oldList, newList; int oldLength; // Variables Object[] list; int index; Class checkClass; EventListener checkListener; int pointer; boolean found; // Create New list in anticipation that listener is not present if (listenerList.length =... | 26,099 |
public void remove(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; int pointer; boolean found; // Create New list in anticipation that listener is not present if (listenerList.length == 0) { return; } // if list = new Obje... | public void remove(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; int pointer; boolean found; // Create New list in anticipation that listener is not present if (listenerList.length == 0) { return; } // if list = new Obje... | 26,100 |
public void remove(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; int pointer; boolean found; // Create New list in anticipation that listener is not present if (listenerList.length == 0) { return; } // if list = new Obje... | public void remove(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; int pointer; boolean found; // Create New list in anticipation that listener is not present if (listenerList.length == 0) { return; } // if list = new Obje... | 26,101 |
public void remove(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; int pointer; boolean found; // Create New list in anticipation that listener is not present if (listenerList.length == 0) { return; } // if list = new Obje... | public void remove(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; int pointer; boolean found; // Create New list in anticipation that listener is not present if (listenerList.length == 0) { return; } // if list = new Obje... | 26,102 |
public void updateUI() { LabelUI b = (LabelUI)UIManager.getUI(this); setUI(b); } | public void updateUI() { LabelUI b = (LabelUI)UIManager.getUI(this); setUI(b); } | 26,104 |
private InlineBox calculateInline(Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align) { // calculate the starting index int start = 0; // if this is another box from the same node as t... | private InlineBox calculateInline(Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align) { // calculate the starting index int start = 0; // if this is another box from the same node as t... | 26,105 |
private void saveLine(LineBox line_to_save, LineBox prev_line, Element containing_block, int width, int x, Context c, Box block, boolean last) { c.setFirstLine(false); // account for text-align TextAlign.adjustTextAlignment(c, line_to_save, containing_block, width, x, l... | private void saveLine(LineBox line_to_save, LineBox prev_line, Element containing_block, int width, int x, Context c, Box block, boolean last) { c.setFirstLine(false); // account for text-align TextAlign.adjustTextAlignment(c, line_to_save, containing_block, width, x, l... | 26,106 |
public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, LineBox curr_line, int parent_width, InlineBlockBox pendingBlockBox) { InlineBlockBox box = new InlineBlockBox(); box.element = content.getElement(); // use the prev_align to calculate... | public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, LineBox curr_line, InlineBlockBox pendingBlockBox) { InlineBlockBox box = new InlineBlockBox(); box.element = content.getElement(); // use the prev_align to calculate the x if (... | 26,107 |
public static void adjustTextAlignment(Context c, LineBox line_to_save, Element containing_block, int width, int x, boolean last) { String text_align = c.css.getStyle(containing_block).getStringProperty(CSSName.TEXT_ALIGN); if (text_align == null) { return; } if (text_align.eq... | public static void adjustTextAlignment(Context c, LineBox line_to_save, Element containing_block, int width, int x, boolean last) { String text_align = c.css.getStyle(containing_block).getStringProperty(CSSName.TEXT_ALIGN); if (text_align == null) { return; } if (text_align.eq... | 26,108 |
public static void adjustTextAlignment(Context c, LineBox line_to_save, Element containing_block, int width, int x, boolean last) { String text_align = c.css.getStyle(containing_block).getStringProperty(CSSName.TEXT_ALIGN); if (text_align == null) { return; } if (text_align.eq... | public static void adjustTextAlignment(Context c, LineBox line_to_save, Element containing_block, int width, int x, boolean last) { String text_align = c.css.getStyle(containing_block).getStringProperty(CSSName.TEXT_ALIGN); if (text_align == null) { return; } if (text_align.eq... | 26,109 |
public static void adjustTextAlignment(Context c, LineBox line_to_save, Element containing_block, int width, int x, boolean last) { String text_align = c.css.getStyle(containing_block).getStringProperty(CSSName.TEXT_ALIGN); if (text_align == null) { return; } if (text_align.eq... | public static void adjustTextAlignment(Context c, LineBox line_to_save, Element containing_block, int width, int x, boolean last) { String text_align = c.css.getStyle(containing_block).getStringProperty(CSSName.TEXT_ALIGN); if (text_align == null) { return; } if (text_align.eq... | 26,110 |
public static void setupVerticalAlign(LineBox box) { // Uu.p("setting up vertical align for a line: " + box); // top and bottom are max dist from baseline int top = 0; int bot = 0; int height = 0; for (int i = 0; i < box.getChildCount(); i++) { InlineBox inline =... | public static void setupVerticalAlign(Context c, CalculatedStyle style, InlineBox box) { Content content = box.content; // Uu.p("setting up vertical align for a line: " + box); // top and bottom are max dist from baseline int top = 0; int bot = 0; int height = 0; for (int ... | 26,111 |
public static void setupVerticalAlign(LineBox box) { // Uu.p("setting up vertical align for a line: " + box); // top and bottom are max dist from baseline int top = 0; int bot = 0; int height = 0; for (int i = 0; i < box.getChildCount(); i++) { InlineBox inline =... | public static void setupVerticalAlign(LineBox box) { // Uu.p("setting up vertical align for a line: " + box); // top and bottom are max dist from baseline int top = 0; int bot = 0; int height = 0; for (int i = 0; i < box.getChildCount(); i++) { InlineBox inline =... | 26,112 |
public static void setupVerticalAlign(LineBox box) { // Uu.p("setting up vertical align for a line: " + box); // top and bottom are max dist from baseline int top = 0; int bot = 0; int height = 0; for (int i = 0; i < box.getChildCount(); i++) { InlineBox inline =... | public static void setupVerticalAlign(LineBox box) { // Uu.p("setting up vertical align for a line: " + box); // top and bottom are max dist from baseline int top = 0; int bot = 0; int height = 0; for (int i = 0; i < box.getChildCount(); i++) { InlineBox inline =... | 26,113 |
public static void setupVerticalAlign(LineBox box) { // Uu.p("setting up vertical align for a line: " + box); // top and bottom are max dist from baseline int top = 0; int bot = 0; int height = 0; for (int i = 0; i < box.getChildCount(); i++) { InlineBox inline =... | public static void setupVerticalAlign(LineBox box) { // Uu.p("setting up vertical align for a line: " + box); // top and bottom are max dist from baseline int top = 0; int bot = 0; int height = 0; for (int i = 0; i < box.getChildCount(); i++) { InlineBox inline =... | 26,114 |
public static void setupVerticalAlign(LineBox box) { // Uu.p("setting up vertical align for a line: " + box); // top and bottom are max dist from baseline int top = 0; int bot = 0; int height = 0; for (int i = 0; i < box.getChildCount(); i++) { InlineBox inline =... | public static void setupVerticalAlign(LineBox box) { // Uu.p("setting up vertical align for a line: " + box); // top and bottom are max dist from baseline int top = 0; int bot = 0; int height = 0; for (int i = 0; i < box.getChildCount(); i++) { InlineBox inline =... | 26,115 |
public void treeWillCollapse(TreeExpansionEvent event); | void treeWillCollapse(TreeExpansionEvent event) throws ExpandVetoException; | 26,116 |
public void treeWillExpand(TreeExpansionEvent event); | void treeWillExpand(TreeExpansionEvent event) throws ExpandVetoException; | 26,117 |
public void setSecurityConfig(boolean isQueue, String destName, Element conf) throws JMSException { if (trace) { log.trace("adding security configuration for " + (isQueue ? "queue " : "topic ") + destName); } SecurityMetadata m = null; try { m = new SecurityMetadata(conf); } c... | public void setSecurityConfig(boolean isQueue, String destName, Element conf) throws JMSException { if (trace) { log.trace("adding security configuration for " + (isQueue ? "queue " : "topic ") + destName); } SecurityMetadata m = null; try { m = new SecurityMetadata(conf); } c... | 26,118 |
public SecurityMetadata(Element conf)throws Exception { configure(conf); } | public SecurityMetadata(Element conf)throws Exception { configure(conf); } | 26,119 |
final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); final VirtualStack stack = ec.getVStack(); switch (getKind()) { case Kind.REGISTER: os.writePUSH(reg); break; case Kind.LOCAL: os.writePUSH(FP, offsetToFP); break; case Kind.CONSTANT: pushConstant(ec, os); break; case ... | final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); final VirtualStack stack = ec.getVStack(); switch (getKind()) { case Kind.REGISTER: os.writePUSH(reg); break; case Kind.LOCAL: os.writePUSH(FP, offsetToFP); break; case Kind.CONSTANT: pushConstant(ec, os); break; case ... | 26,121 |
static final void fxch(AbstractX86Stream os, FPUStack fpuStack, Register fpuReg) { if (fpuReg == Register.ST0) { throw new StackException("Cannot fxch ST0"); } os.writeFXCH(fpuReg); fpuStack.fxch(fpuReg); } | static final void fxch(AbstractX86Stream os, FPUStack fpuStack, Register fpuReg) { if (fpuReg == Register.ST0) { throw new StackException("Cannot fxch ST0"); } os.writeFXCH(fpuReg); fpuStack.fxch(fpuReg); } | 26,122 |
public ServerConnectionFactoryEndpoint(String id, ServerPeer serverPeer, String defaultClientID, JNDIBindings jndiBindings) { this.serverPeer = serverPeer; this.clientID = defaultClientID; this.id = id; this.jndiBindings = jndiBindings; } | public ServerConnectionFactoryEndpoint(int id, ServerPeer serverPeer, String defaultClientID, JNDIBindings jndiBindings) { this.serverPeer = serverPeer; this.clientID = defaultClientID; this.id = id; this.jndiBindings = jndiBindings; } | 26,124 |
public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionId) throws JMSException { log.debug("creating a new connection for user " + username); // authenticate the user serverPeer.getSecurit... | public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionId) throws JMSException { log.debug("creating a new connection for user " + username); // authenticate the user serverPeer.getSecurit... | 26,125 |
public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionId) throws JMSException { log.debug("creating a new connection for user " + username); // authenticate the user serverPeer.getSecurit... | public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionId) throws JMSException { log.debug("creating a new connection for user " + username); // authenticate the user serverPeer.getSecurit... | 26,126 |
public String getID() { return id; } | public int getID() { return id; } | 26,127 |
public ClientConnectionDelegate(String objectID, String serverLocatorURI, String serverID, Version serverVersion) { super(objectID); this.serverID = serverID; this.serverVersion = serverVersion; this.serverLocatorURI = serverLocatorURI; } | public ClientConnectionDelegate(String objectID, String serverID, Version serverVersion) { super(objectID); this.serverID = serverID; this.serverVersion = serverVersion; this.serverLocatorURI = serverLocatorURI; } | 26,128 |
public ClientConnectionDelegate(String objectID, String serverLocatorURI, String serverID, Version serverVersion) { super(objectID); this.serverID = serverID; this.serverVersion = serverVersion; this.serverLocatorURI = serverLocatorURI; } | public ClientConnectionDelegate(String objectID, String serverLocatorURI, String serverID, Version serverVersion) { super(objectID); this.serverID = serverID; this.serverVersion = serverVersion; } | 26,129 |
void dispatchEventImpl(AWTEvent e) { // Give toolkit a chance to dispatch the event // to globally registered listeners. Toolkit.getDefaultToolkit().globalDispatchEvent(e); // This boolean tells us not to process focus events when the focus // opposite component is the same as the focus component. ... | void dispatchEventImpl(AWTEvent e) { // Give toolkit a chance to dispatch the event // to globally registered listeners. // This boolean tells us not to process focus events when the focus // opposite component is the same as the focus component. boolean ignoreFocus = (e instanceof FocusEven... | 26,131 |
private static void paintBorderSide(OutputDevice outputDevice, final BorderPropertySet border, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROOVE) { ... | private static void paintBorderSide(OutputDevice outputDevice, final BorderPropertySet border, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROOVE) { ... | 26,132 |
public void addPoint(int x, int y) { if (npoints + 1 > xpoints.length) { int[] newx = new int[npoints + 1]; System.arraycopy(xpoints, 0, newx, 0, npoints); xpoints = newx; } if (npoints + 1 > ypoints.length) { int[] newy = new int[npoints + 1]; System.arraycopy... | public void addPoint(int x, int y) { if (npoints + 1 > xpoints.length) { int[] newx = new int[npoints + 1]; System.arraycopy(xpoints, 0, newx, 0, npoints); xpoints = newx; } if (npoints + 1 > ypoints.length) { int[] newy = new int[npoints + 1]; System.arraycopy... | 26,133 |
public boolean noTop() { return this._topStyle == IdentValue.NONE && (int)_top == 0; } | public boolean noTop() { return this._topStyle == IdentValue.NONE || (int) _top == 0; } | 26,134 |
public boolean noLeft() { return this._leftStyle == IdentValue.NONE && (int)_left == 0; } | public boolean noLeft() { return this._leftStyle == IdentValue.NONE || (int) _left == 0; } | 26,135 |
public boolean noBottom() { return this._bottomStyle == IdentValue.NONE && (int)_bottom == 0; } | public boolean noBottom() { return this._bottomStyle == IdentValue.NONE || (int) _bottom == 0; } | 26,136 |
public boolean noRight() { return this._rightStyle == IdentValue.NONE && (int)_right == 0; } | public boolean noRight() { return this._rightStyle == IdentValue.NONE || (int) _right == 0; } | 26,137 |
public BorderPropertySet( float top, float right, float bottom, float left ) { this._top = top; this._right = right; this._bottom = bottom; this._left = left; this.buildKey(CSSName.BORDER_SHORTHAND); } | public BorderPropertySet( float top, float right, float bottom, float left ) { this._top = top; this._right = right; this._bottom = bottom; this._left = left; this.buildKey(CSSName.BORDER_SHORTHAND); } | 26,138 |
public BorderPropertySet( float top, float right, float bottom, float left ) { this._top = top; this._right = right; this._bottom = bottom; this._left = left; this.buildKey(CSSName.BORDER_SHORTHAND); } | public BorderPropertySet( float top, float right, float bottom, float left ) { this._top = top; this._right = right; this._bottom = bottom; this._left = left; this._topColor = border.topColor(); this._rightColor = border.rightColor();... | 26,139 |
protected Connector startCallbackServer(InvokerLocator serverLocator) throws Exception { if (log.isTraceEnabled()) { log.trace(this + " setting up connection to " + serverLocator); } final int MAX_RETRIES = 50; boolean completed = false; Connector server = null; String serializationType = ... | protected Connector startCallbackServer(InvokerLocator serverLocator) throws Exception { if (log.isTraceEnabled()) { log.trace(this + " setting up connection to " + serverLocator); } final int MAX_RETRIES = 50; boolean completed = false; Connector server = null; String serializationType = ... | 26,140 |
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... | 26,141 |
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... | 26,142 |
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)... | 26,143 |
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)... | 26,144 |
public CalculatedStyle getStyle(); | public CascadedStyle getStyle(); | 26,145 |
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... | 26,147 |
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... | 26,148 |
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... | 26,149 |
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); } | 26,151 |
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); } | 26,152 |
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... | 26,153 |
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) { } | 26,154 |
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... | 26,155 |
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... | 26,156 |
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... | 26,158 |
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... | 26,159 |
public String getText() { return text; } | public String getText() { return labelText; } | 26,160 |
public Icon getIcon() { return icon; } | public Icon getIcon() { return activeIcon; } | 26,161 |
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; } | 26,162 |
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; } | 26,163 |
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; } | 26,164 |
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; } | 26,165 |
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; } | 26,166 |
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(); } | 26,167 |
public void setText(String text) { this.text = text; revalidate(); repaint(); } | public void setText(String text) { this.text = text; revalidate(); repaint(); } | 26,168 |
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; 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.getBackground() != null) ... | 26,169 |
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... | 26,170 |
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... | 26,171 |
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... | 26,172 |
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... | 26,173 |
public int getListCounter() { return getList_counter(); } | public int getListCounter() { return list_counter; } | 26,175 |
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); } | 26,176 |
public void setListCounter(int counter) { this.setList_counter(counter); } | public void setListCounter(int counter) { list_counter = counter; } | 26,177 |
public static void render( Level level, String msg ) { log( RENDER, level, msg ); } | public static void render( Level level, String msg ) { log( RENDER, level, msg ); } | 26,178 |
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)); } | 26,179 |
public ObjectOutputStream createOutput(OutputStream out) throws IOException { return new MessagingObjectOutputStream(out); } | public ObjectOutputStream createOutput(OutputStream out) throws IOException { return new MessagingObjectOutputStream(new DataOutputStream(out)); } | 26,180 |
public SQLWarning(String reason, String SQLState, int vendorCode) { super(reason, SQLState, vendorCode); } | public SQLWarning(String message, String SQLState, int vendorCode) { super(reason, SQLState, vendorCode); } | 26,181 |
public SQLWarning(String reason, String SQLState, int vendorCode) { super(reason, SQLState, vendorCode); } | public SQLWarning(String reason, String SQLState, int vendorCode) { super(message, SQLState, vendorCode); } | 26,182 |
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); } | 26,183 |
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"); } | 26,184 |
public void remove(int index) { super.remove(index); removeTabAt(index); } | public void remove(Component component) { super.remove(index); removeTabAt(index); } | 26,185 |
public void remove(int index) { super.remove(index); removeTabAt(index); } | public void remove(int index) { super.remove(index); removeTabAt(index); } | 26,186 |
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); } | 26,187 |
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(); } | 26,188 |
public String getToolTipText(MouseEvent event) { return tool_tip_text; } | public String getToolTipText() { return tool_tip_text; } | 26,189 |
public JTextField(int columns) { this(null, null, columns); } | public JTextField() { this(null, null, columns); } | 26,191 |
public JTextField(int columns) { this(null, null, columns); } | public JTextField(int columns) { this(null, null, 0); } | 26,192 |
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); } | 26,193 |
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); } | 26,194 |
public BeanConnector() { } | public BeanConnector(Object aSource) { } | 26,195 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.