bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public boolean isShowing() { boolean retVal = false; if (SwingLabelPeer.this.awtComponent != null) retVal = SwingLabelPeer.this.awtComponent.isShowing(); return retVal; } | public boolean isShowing() { boolean retVal = false; if (SwingLabelPeer.this.awtComponent != null) retVal = SwingLabelPeer.this.awtComponent.isShowing(); return retVal; } | 12,151 |
public SwingLabelPeer(Label label) { super(); SwingLabel swingLabel = new SwingLabel(); swingLabel.setText(label.getText()); swingLabel.setHorizontalAlignment(label.getAlignment()); swingLabel.setOpaque(true); init(label, swingLabel); } | public SwingLabelPeer(Label label) { super(); SwingLabel swingLabel = new SwingLabel(label); swingLabel.setText(label.getText()); swingLabel.setHorizontalAlignment(label.getAlignment()); swingLabel.setOpaque(true); init(label, swingLabel); } | 12,152 |
public SwingLabelPeer(Label label) { super(); SwingLabel swingLabel = new SwingLabel(); swingLabel.setText(label.getText()); swingLabel.setHorizontalAlignment(label.getAlignment()); swingLabel.setOpaque(true); init(label, swingLabel); } | public SwingLabelPeer(Label label) { super(); SwingLabel swingLabel = new SwingLabel(); swingLabel.setText(label.getText()); swingLabel.setOpaque(true); init(label, swingLabel); } | 12,153 |
public void setAlignment(int alignment) { ((JLabel) swingComponent.getJComponent()).setHorizontalAlignment(alignment); } | public void setAlignment(int alignment) { JLabel swingLabel = (JLabel) swingComponent.getJComponent(); switch (alignment) { case Label.RIGHT: swingLabel.setHorizontalAlignment(JLabel.RIGHT); break; case Label.CENTER: swingLabel.setHorizontalAlignment(JLabel.CENTER); break; case Label.LEFT: default: swingLabel.set... | 12,155 |
getName(){ return(name);} | getName(){ return(name);} | 12,156 |
public void setDataVector(Vector data, Vector columnNames) { // Variables int rowIndex; int columnIndex; int numRows; int numColumns; Vector columnVector; // Set Data dataVector = data; columnIdentifiers = columnNames; // Check Data numRows = data.size(); numColumns = columnNames.size(); for (rowIndex = 0... | public void setDataVector(Vector data, Vector columnNames) { // Variables int rowIndex; int numRows; int numColumns; Vector columnVector; // Set Data dataVector = data; columnIdentifiers = columnNames; // Check Data numRows = data.size(); numColumns = columnNames.size(); for (rowIndex = 0; rowIndex < num... | 12,157 |
public static Icon getMenuArrowIcon() { return new Icon() { public int getIconHeight() { return 12; } public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new P... | public static Icon getMenuArrowIcon() { return new Icon() { public int getIconHeight() { return 8; } public int getIconWidth() { return 8; } public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new Pol... | 12,158 |
public static Icon getMenuArrowIcon() { return new Icon() { public int getIconHeight() { return 12; } public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new P... | public static Icon getMenuArrowIcon() { return new Icon() { public int getIconHeight() { return 4; } public int getIconWidth() { return 4; } public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new Pol... | 12,159 |
public static Icon getMenuArrowIcon() { return new Icon() { public int getIconHeight() { return 12; } public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new P... | public static Icon getMenuArrowIcon() { return new Icon() { public int getIconHeight() { return 12; } public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new Polygon(new int[] {... | 12,160 |
public static Icon getMenuArrowIcon() { return new Icon() { public int getIconHeight() { return 12; } public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new P... | public static Icon getMenuArrowIcon() { return new Icon() { public int getIconHeight() { return 12; } public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new P... | 12,161 |
public static Icon getMenuArrowIcon() { return new Icon() { public int getIconHeight() { return 12; } public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new P... | public static Icon getMenuArrowIcon() { return new Icon() { public int getIconHeight() { return 12; } public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new P... | 12,162 |
public int getIconHeight() { return 12; } | public int getIconHeight() { return 8; } | 12,163 |
public int getIconWidth() { return 12; } | public int getIconWidth() { return 4; } | 12,164 |
public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new Polygon(new int[] { 3, 9, 3 }, new int[] { 2, 6, 10 }, 3)); g.setColor(saved); g.transla... | public void paintIcon(Component c, Graphics g, int x, int y) { Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new Polygon(new int[] { 3, 9, 3 }, new int[] { 2, 6, 10 }, 3)); g.setColor(saved); g.translate(-x, -y); } | 12,165 |
public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new Polygon(new int[] { 3, 9, 3 }, new int[] { 2, 6, 10 }, 3)); g.setColor(saved); g.transla... | public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new Polygon(new int[] { 3, 9, 3 }, new int[] { 2, 6, 10 }, 3)); g.setColor(saved); g.transla... | 12,166 |
public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new Polygon(new int[] { 3, 9, 3 }, new int[] { 2, 6, 10 }, 3)); g.setColor(saved); g.transla... | public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new Polygon(new int[] { 3, 9, 3 }, new int[] { 2, 6, 10 }, 3)); g.setColor(saved); } | 12,167 |
static BeanInfo reallyFindExplicitBeanInfo(Class beanClass) { ClassLoader beanClassLoader = beanClass.getClassLoader(); BeanInfo beanInfo; beanInfo = getBeanInfo(beanClassLoader, beanClass.getName() + "BeanInfo"); if (beanInfo == null) { String newName; newName = ClassHelper.getTruncatedClassName(b... | static BeanInfo reallyFindExplicitBeanInfo(Class beanClass) { ClassLoader beanClassLoader = beanClass.getClassLoader(); BeanInfo beanInfo; beanInfo = getBeanInfo(beanClassLoader, beanClass.getName() + "BeanInfo"); if (beanInfo == null) { String newName; newName = ClassHelper.getTruncatedClassName(b... | 12,169 |
public void layoutContainer(Container c) { // The only components we care about setting up are the // one touch buttons. if (splitPane.isOneTouchExpandable()) { if (c.getComponentCount() == 2) { Component c1 = c.getComponent(0); Component c2 = c... | public void layoutContainer(Container c) { // The only components we care about setting up are the // one touch buttons. if (splitPane.isOneTouchExpandable()) { if (c.getComponentCount() == 2) { Component c1 = c.getComponent(0); Component c2 = c... | 12,172 |
public abstract NamedValue create_named_value(String s, Any any, int flags); | public abstract NamedValue create_named_value(String name, Any any, int flags); | 12,173 |
protected void parseURL (URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. String file = url.getFile(); if (!file.equals("")) { //h... | protected void parseURL (URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. String file = url.getFile(); if (!file.equals("")) { //h... | 12,174 |
public ParameterModeHolder(ParameterMode initialValue) { value = initialValue; } | public ParameterModeHolder() { value = initialValue; } | 12,176 |
public ParameterModeHolder(ParameterMode initialValue) { value = initialValue; } | public ParameterModeHolder(ParameterMode initialValue) { } | 12,177 |
TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i ... | TemplateNode clone(Stylesheet stylesheet) int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i < ... | 12,178 |
TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i ... | TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i <... | 12,179 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); if (ret != null && ret instanceof Collection) { if (withParams != null) ... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException Object ret = select.evaluate(context, pos, len); if (ret != null && ret instanceof Collection) if (withParams != null) ... | 12,180 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); if (ret != null && ret instanceof Collection) { if (withParams != null) ... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); if (ret != null && ret instanceof Collection) { if (withParams != null) ... | 12,181 |
public boolean references(QName var) { if (select != null && select.references(var)) { return true; } if (withParams != null) { for (Iterator i = withParams.iterator(); i.hasNext(); ) { if (((WithParam) i.next()).references(var)) { re... | public boolean references(QName var) if (select != null && select.references(var)) return true; } if (withParams != null) for (Iterator i = withParams.iterator(); i.hasNext(); ) if (((WithParam) i.next()).references(var)) return ... | 12,182 |
public boolean references(QName var) { if (select != null && select.references(var)) { return true; } if (withParams != null) { for (Iterator i = withParams.iterator(); i.hasNext(); ) { if (((WithParam) i.next()).references(var)) { re... | public boolean references(QName var) { if (select != null && select.references(var)) { return true; if (withParams != null) { for (Iterator i = withParams.iterator(); i.hasNext(); ) { if (((WithParam) i.next()).references(var)) { ret... | 12,183 |
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); boolean o = false; if (select != null) { buf.append("select="); buf.append(select); o = true; } if (mode != null) { if (o) { buf.append(... | public String toString() { StringBuffer buf = new StringBuffer("apply-templates"); buf.append('['); boolean o = false; if (select != null) { buf.append("select="); buf.append(select); o = true; } if (mode != null) { if (o) { buf.append(','... | 12,184 |
public Node item(int index) { if (current == null) { current = createIterator(); lastIndex = -1; } // last node or before? go backwards if (index <= lastIndex) { while (index != lastIndex) { current.previousNode (); lastIndex--; ... | public Node item(int index) { if (current == null) { current = createIterator(); lastIndex = -1; } // last node or before? go backwards if (index <= lastIndex) { while (index != lastIndex) { current.previousNode (); lastIndex--; ... | 12,186 |
public Node item(int index) { if (current == null) { current = createIterator(); lastIndex = -1; } // last node or before? go backwards if (index <= lastIndex) { while (index != lastIndex) { current.previousNode (); lastIndex--; ... | public Node item(int index) { if (current == null) { current = createIterator(); lastIndex = -1; } // last node or before? go backwards if (index <= lastIndex) { while (index != lastIndex) { current.previousNode (); lastIndex--; ... | 12,187 |
public Node appendChild(Node newChild) { try { DomNode child = (DomNode) newChild; if (child.nodeType == DOCUMENT_FRAGMENT_NODE) { // Append all nodes in the fragment to this node for (DomNode ctx = child.first; ctx != null; ctx = ctx.next) { ... | public Node appendChild(Node newChild) { try { DomNode child = (DomNode) newChild; if (child.nodeType == DOCUMENT_FRAGMENT_NODE) { // Append all nodes in the fragment to this node for (DomNode ctx = child.first; ctx != null; ctx = ctx.next) { ... | 12,188 |
private void checkMisc(DomNode child) { if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR, null, this, 0); } for (DomNode ctx = this; ctx != null; ctx = ctx.parent) { if (child == ctx) { throw new DomEx(D... | private void checkMisc(DomNode child) { if (readonly && !owner.building) { throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, null, this, 0); } for (DomNode ctx = this; ctx != null; ctx = ctx.parent) { if (child == ctx) { ... | 12,189 |
private void checkMisc(DomNode child) { if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR, null, this, 0); } for (DomNode ctx = this; ctx != null; ctx = ctx.parent) { if (child == ctx) { throw new DomEx(D... | private void checkMisc(DomNode child) { if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR, null, this, 0); } for (DomNode ctx = this; ctx != null; ctx = ctx.parent) { if (child == ctx) { throw new DomEx(D... | 12,190 |
private void checkMisc(DomNode child) { if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR, null, this, 0); } for (DomNode ctx = this; ctx != null; ctx = ctx.parent) { if (child == ctx) { throw new DomEx(D... | private void checkMisc(DomNode child) { if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR, null, this, 0); } for (DomNode ctx = this; ctx != null; ctx = ctx.parent) { if (child == ctx) { throw new DomEx(D... | 12,191 |
private void checkMisc(DomNode child) { if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR, null, this, 0); } for (DomNode ctx = this; ctx != null; ctx = ctx.parent) { if (child == ctx) { throw new DomEx(D... | private void checkMisc(DomNode child) { if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR, null, this, 0); } for (DomNode ctx = this; ctx != null; ctx = ctx.parent) { if (child == ctx) { throw new DomEx(D... | 12,192 |
public Event createEvent(String eventType) { eventType = eventType.toLowerCase(); if ("mutationevents".equals(eventType)) { return new DomEvent.DomMutationEvent(null); } if ("htmlevents".equals(eventType) || "events".equals(eventType) || "user-events".equals(eventType)... | public Event createEvent(String eventType) { eventType = eventType.toLowerCase(); if ("mutationevents".equals(eventType)) { return new DomEvent.DomMutationEvent(null); } if ("htmlevents".equals(eventType) || "events".equals(eventType) || "user-events".equals(eventType)... | 12,193 |
public Node insertBefore(Node newChild, Node refChild) { if (refChild == null) { return appendChild(newChild); } try { DomNode child = (DomNode) newChild; DomNode ref = (DomNode) refChild; if (child.nodeType == DOCUMENT_FRAGMENT_NODE) { // ... | public Node insertBefore(Node newChild, Node refChild) { if (refChild == null) { return appendChild(newChild); } try { DomNode child = (DomNode) newChild; DomNode ref = (DomNode) refChild; if (child.nodeType == DOCUMENT_FRAGMENT_NODE) { // ... | 12,194 |
public Node insertBefore(Node newChild, Node refChild) { if (refChild == null) { return appendChild(newChild); } try { DomNode child = (DomNode) newChild; DomNode ref = (DomNode) refChild; if (child.nodeType == DOCUMENT_FRAGMENT_NODE) { // ... | public Node insertBefore(Node newChild, Node refChild) { if (refChild == null) { return appendChild(newChild); } try { DomNode child = (DomNode) newChild; DomNode ref = (DomNode) refChild; if (child.nodeType == DOCUMENT_FRAGMENT_NODE) { // ... | 12,195 |
public Node insertBefore(Node newChild, Node refChild) { if (refChild == null) { return appendChild(newChild); } try { DomNode child = (DomNode) newChild; DomNode ref = (DomNode) refChild; if (child.nodeType == DOCUMENT_FRAGMENT_NODE) { // ... | public Node insertBefore(Node newChild, Node refChild) { if (refChild == null) { return appendChild(newChild); } try { DomNode child = (DomNode) newChild; DomNode ref = (DomNode) refChild; if (child.nodeType == DOCUMENT_FRAGMENT_NODE) { // ... | 12,196 |
public Node removeChild(Node refChild) { try { DomNode ref = (DomNode) refChild; if (ref == null || ref.parent != this) { throw new DomEx(DomEx.NOT_FOUND_ERR, null, ref, 0); } if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MOD... | public Node removeChild(Node refChild) { try { DomNode ref = (DomNode) refChild; if (ref == null || ref.parent != this) { throw new DomDOMException(DOMException.NOT_FOUND_ERR, null, ref, 0); } if (readonly && !owner.building) { throw new D... | 12,197 |
public Node removeChild(Node refChild) { try { DomNode ref = (DomNode) refChild; if (ref == null || ref.parent != this) { throw new DomEx(DomEx.NOT_FOUND_ERR, null, ref, 0); } if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MOD... | public Node removeChild(Node refChild) { try { DomNode ref = (DomNode) refChild; if (ref == null || ref.parent != this) { throw new DomEx(DomEx.NOT_FOUND_ERR, null, ref, 0); } if (readonly && !owner.building) { throw new DomDOMException(DO... | 12,198 |
public Node removeChild(Node refChild) { try { DomNode ref = (DomNode) refChild; if (ref == null || ref.parent != this) { throw new DomEx(DomEx.NOT_FOUND_ERR, null, ref, 0); } if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MOD... | public Node removeChild(Node refChild) { try { DomNode ref = (DomNode) refChild; if (ref == null || ref.parent != this) { throw new DomDOMException(DOMException.NOT_FOUND_ERR, null, ref, 0); } if (readonly && !owner.building) { throw new D... | 12,199 |
public Node removeChild(Node refChild) { try { DomNode ref = (DomNode) refChild; if (ref == null || ref.parent != this) { throw new DomEx(DomEx.NOT_FOUND_ERR, null, ref, 0); } if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MOD... | public Node removeChild(Node refChild) { try { DomNode ref = (DomNode) refChild; if (ref == null || ref.parent != this) { throw new DomEx(DomEx.NOT_FOUND_ERR, null, ref, 0); } if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MOD... | 12,200 |
public Node replaceChild(Node newChild, Node refChild) { try { DomNode child = (DomNode) newChild; DomNode ref = (DomNode) refChild; DomEvent.DomMutationEvent event = getMutationEvent(); boolean doFree = (event != null); if (child.nodeType == DOCUMENT_FR... | public Node replaceChild(Node newChild, Node refChild) { try { DomNode child = (DomNode) newChild; DomNode ref = (DomNode) refChild; DomEvent.DomMutationEvent event = getMutationEvent(); boolean doFree = (event != null); if (child.nodeType == DOCUMENT_FR... | 12,201 |
public Node replaceChild(Node newChild, Node refChild) { try { DomNode child = (DomNode) newChild; DomNode ref = (DomNode) refChild; DomEvent.DomMutationEvent event = getMutationEvent(); boolean doFree = (event != null); if (child.nodeType == DOCUMENT_FR... | public Node replaceChild(Node newChild, Node refChild) { try { DomNode child = (DomNode) newChild; DomNode ref = (DomNode) refChild; DomEvent.DomMutationEvent event = getMutationEvent(); boolean doFree = (event != null); if (child.nodeType == DOCUMENT_FR... | 12,202 |
ElementNode(TemplateNode children, TemplateNode next, TemplateNode name, TemplateNode namespace, String uas, Node source) { super(children, next); this.name = name; this.namespace = namespace; this.uas = uas; this.source = source; NamedNodeMap attrs = source.getAttributes(); Node at... | ElementNode(TemplateNode name, TemplateNode namespace, String uas, Node source) { super(children, next); this.name = name; this.namespace = namespace; this.uas = uas; this.source = source; NamedNodeMap attrs = source.getAttributes(); Node attr = attrs.getNamedItemNS(Stylesheet.XSL_N... | 12,203 |
ElementNode(TemplateNode children, TemplateNode next, TemplateNode name, TemplateNode namespace, String uas, Node source) { super(children, next); this.name = name; this.namespace = namespace; this.uas = uas; this.source = source; NamedNodeMap attrs = source.getAttributes(); Node at... | ElementNode(TemplateNode children, TemplateNode next, TemplateNode name, TemplateNode namespace, String uas, Node source) { this.name = name; this.namespace = namespace; this.uas = uas; this.source = source; NamedNodeMap attrs = source.getAttributes(); Node attr = attrs.getNamedIte... | 12,204 |
TemplateNode clone(Stylesheet stylesheet) { return new ElementNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), name.clone(stylesheet), ... | TemplateNode clone(Stylesheet stylesheet) { return new ElementNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), name.clone(stylesheet), ... | 12,205 |
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); scrollbar.setForeground(defaults.getColor("ScrollBar.foreground")); scrollbar.setBackground(defaults.getColor("ScrollBar.background")); scrollbar.setBorder(defaults.getBorder("ScrollBar.border")); scrollbar.se... | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); scrollbar.setForeground(defaults.getColor("ScrollBar.foreground")); scrollbar.setBackground(defaults.getColor("ScrollBar.background")); scrollbar.setBorder(defaults.getBorder("ScrollBar.border")); scrollbar.se... | 12,207 |
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); scrollbar.setForeground(defaults.getColor("ScrollBar.foreground")); scrollbar.setBackground(defaults.getColor("ScrollBar.background")); scrollbar.setBorder(defaults.getBorder("ScrollBar.border")); scrollbar.se... | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); scrollbar.setForeground(defaults.getColor("ScrollBar.foreground")); scrollbar.setBackground(defaults.getColor("ScrollBar.background")); scrollbar.setBorder(defaults.getBorder("ScrollBar.border")); scrollbar.se... | 12,208 |
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); scrollbar.setForeground(defaults.getColor("ScrollBar.foreground")); scrollbar.setBackground(defaults.getColor("ScrollBar.background")); scrollbar.setBorder(defaults.getBorder("ScrollBar.border")); scrollbar.se... | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); scrollbar.setForeground(defaults.getColor("ScrollBar.foreground")); scrollbar.setBackground(defaults.getColor("ScrollBar.background")); scrollbar.setBorder(defaults.getBorder("ScrollBar.border")); scrollbar.se... | 12,209 |
public void addSubjectName(Principal subjectName) throws IOException { if (subjectName instanceof X500DistinguishedName) subjectNames.add(subjectName); else if (subjectName instanceof X500Principal) subjectNames.add(new X500DistinguishedName(((X500Principal) subjectName).getEncoded())); else ... | public void addSubjectName(byte[] subjectName) throws IOException { if (subjectName instanceof X500DistinguishedName) subjectNames.add(subjectName); else if (subjectName instanceof X500Principal) subjectNames.add(new X500DistinguishedName(((X500Principal) subjectName).getEncoded())); else sub... | 12,210 |
public void addSubjectName(Principal subjectName) throws IOException { if (subjectName instanceof X500DistinguishedName) subjectNames.add(subjectName); else if (subjectName instanceof X500Principal) subjectNames.add(new X500DistinguishedName(((X500Principal) subjectName).getEncoded())); else ... | public void addSubjectName(Principal subjectName) throws IOException { if (subjectName instanceof X500DistinguishedName) subjectNames.add(subjectName); else if (subjectName instanceof X500Principal) subjectNames.add(new X500DistinguishedName(((X500Principal) subjectName).getEncoded())); else ... | 12,211 |
public InvalidAlgorithmParameterException(String msg) { super(msg); } | public InvalidAlgorithmParameterException() { super(msg); } | 12,212 |
public InvalidAlgorithmParameterException(String msg) { super(msg); } | public InvalidAlgorithmParameterException(String msg) { super(); } | 12,213 |
public void select(int start_pos, int endPos) { // TODO: Must be implemented. } | public void select(int startPos, int endPos) { // TODO: Must be implemented. } | 12,214 |
public AlreadyBoundHolder(AlreadyBound initialValue) { value = initialValue; } | public AlreadyBoundHolder() { value = initialValue; } | 12,215 |
public AlreadyBoundHolder(AlreadyBound initialValue) { value = initialValue; } | public AlreadyBoundHolder(AlreadyBound initialValue) { } | 12,216 |
public BandedSampleModel(int dataType, int w, int h, int numBands) { super(dataType, w, h, 1, w, new int[numBands]); } | public BandedSampleModel(int dataType, int w, int h, int numBands) { this(dataType, w, h, w, createBankArray(numBands), new int[numBands]); } | 12,217 |
public SampleModel createSubsetSampleModel(int[] bands) { int[] newoff = new int[bands.length]; int[] newbanks = new int[bands.length]; for (int i=0; i < bands.length; i++) { int b = bands[i]; newoff[i] = bandOffsets[b]; newbanks[i] = bankIndices[b]; } if (bands.length > bankIndices.length) ... | public SampleModel createSubsetSampleModel(int[] bands) { int[] newoff = new int[bands.length]; int[] newbanks = new int[bands.length]; for (int i=0; i < bands.length; i++) { int b = bands[i]; newoff[i] = bandOffsets[b]; newbanks[i] = bankIndices[b]; } if (bands.length > bankIndices.length) ... | 12,218 |
public int[] getPixel(int x, int y, int[] iArray, DataBuffer data) { if (iArray == null) iArray = new int[numBands]; for (int i=0; i < numBands; i++) iArray[i] = getSample(x, y, 0, data); return iArray; } | public int[] getPixel(int x, int y, int[] iArray, DataBuffer data) { if (iArray == null) iArray = new int[numBands]; for (int i=0; i < numBands; i++) iArray[i] = getSample(x, y, i, data); return iArray; } | 12,219 |
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { if (iArray == null) iArray = new int[w*h*numBands]; int outOffset = 0; for (y=0; y<h; y++) { for (x=0; x<w;) { for (int b=0; b < numBands; b++) { int offset = bandOffsets[b] + y * scanlineStride + x; iA... | public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { if (iArray == null) iArray = new int[w*h*numBands]; int outOffset = 0; int maxX = x + w; int maxY = y + h; for (int yy = x; yy < maxY; yy++) { for (x=0; x<w;) { for (int b=0; b < numBands; b++) { int off... | 12,220 |
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { if (iArray == null) iArray = new int[w*h*numBands]; int outOffset = 0; for (y=0; y<h; y++) { for (x=0; x<w;) { for (int b=0; b < numBands; b++) { int offset = bandOffsets[b] + y * scanlineStride + x; iA... | public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { if (iArray == null) iArray = new int[w*h*numBands]; int outOffset = 0; for (y=0; y<h; y++) { for (int xx = x; xx < maxX; xx++) { for (int b=0; b < numBands; b++) { int offset = bandOffsets[b] + y * scanl... | 12,221 |
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { if (iArray == null) iArray = new int[w*h*numBands]; int outOffset = 0; for (y=0; y<h; y++) { for (x=0; x<w;) { for (int b=0; b < numBands; b++) { int offset = bandOffsets[b] + y * scanlineStride + x; iA... | public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { if (iArray == null) iArray = new int[w*h*numBands]; int outOffset = 0; for (y=0; y<h; y++) { for (x=0; x<w;) { for (int b=0; b < numBands; b++) { int offset = bandOffsets[b] + yy * scanlineStride + xx; ... | 12,222 |
public int[] getSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { if (iArray == null) iArray = new int[w*h]; int outOffset = 0; for (y=0; y<h; y++) { for (x=0; x<w;) { int offset = bandOffsets[b] + y * scanlineStride + x; iArray[outOffset++] = data.getElem(... | public int[] getSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { if (iArray == null) iArray = new int[w*h]; int outOffset = 0; int maxX = x + w; int maxY = y + h; for (int yy = y; yy < maxY; yy++) { for (x=0; x<w;) { int offset = bandOffsets[b] + y * scanlineStride ... | 12,223 |
public int[] getSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { if (iArray == null) iArray = new int[w*h]; int outOffset = 0; for (y=0; y<h; y++) { for (x=0; x<w;) { int offset = bandOffsets[b] + y * scanlineStride + x; iArray[outOffset++] = data.getElem(... | public int[] getSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { if (iArray == null) iArray = new int[w*h]; int outOffset = 0; for (y=0; y<h; y++) { for (int xx = x; xx < maxX; xx++) { int offset = bandOffsets[b] + y * scanlineStride + x; iArray[outOffset++] = ... | 12,224 |
public int[] getSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { if (iArray == null) iArray = new int[w*h]; int outOffset = 0; for (y=0; y<h; y++) { for (x=0; x<w;) { int offset = bandOffsets[b] + y * scanlineStride + x; iArray[outOffset++] = data.getElem(... | public int[] getSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { if (iArray == null) iArray = new int[w*h]; int outOffset = 0; for (y=0; y<h; y++) { for (x=0; x<w;) { int offset = bandOffsets[b] + yy * scanlineStride + xx; iArray[outOffset++] = data.getEle... | 12,225 |
public void setDataElements(int x, int y, Object obj, DataBuffer data) { int transferType = getTransferType(); if (getTransferType() != data.getDataType()) { throw new IllegalArgumentException("transfer type ("+ getTransferType()+"), "+ "does not match data "+ "buffer type (" + ... | public void setDataElements(int x, int y, Object obj, DataBuffer data) { int transferType = getTransferType(); if (getTransferType() != data.getDataType()) { throw new IllegalArgumentException("transfer type ("+ getTransferType()+"), "+ "does not match data "+ "buffer type (" + ... | 12,226 |
public String getMessage() { return super.getMessage(); } // getMessage() | public String getMessage() { return super.getMessage(); } // getMessage() | 12,227 |
public DateFormatSymbols (Locale locale) throws MissingResourceException { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", locale); ampms = res.getStringArray ("ampms"); eras = res.getStringArray ("eras"); localPatternChars = res.getString ("localPatternChars"); ... | public DateFormatSymbols (Locale locale) throws MissingResourceException { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", locale, ClassLoader.getSystemClassLoader()); ampms = res.getStringArray ("ampms"); eras = res.getStringArray ("eras"); localPatternChars = res... | 12,228 |
public String group (int group) throws IllegalStateException { assertMatchOp(); return match.toString(group); } | public String group (int group) throws IllegalStateException { assertMatchOp(); return match.toString(group); } | 12,229 |
public String group (int group) throws IllegalStateException { assertMatchOp(); return match.toString(group); } | public String group (int group) throws IllegalStateException { assertMatchOp(); return match.toString(); } | 12,230 |
public boolean equals (Object obj) { if (! (obj instanceof DateFormatSymbols)) return false; DateFormatSymbols other = (DateFormatSymbols) obj; return (equals(ampms, other.ampms) && equals(eras, other.eras) && equals(localPatternChars, other.localPatternChars) && equals(months, other.months... | private static boolean equals (Object x, Object y) { if (! (obj instanceof DateFormatSymbols)) return false; DateFormatSymbols other = (DateFormatSymbols) obj; return (equals(ampms, other.ampms) && equals(eras, other.eras) && equals(localPatternChars, other.localPatternChars) && equals(mont... | 12,231 |
public boolean equals (Object obj) { if (! (obj instanceof DateFormatSymbols)) return false; DateFormatSymbols other = (DateFormatSymbols) obj; return (equals(ampms, other.ampms) && equals(eras, other.eras) && equals(localPatternChars, other.localPatternChars) && equals(months, other.months... | public boolean equals (Object obj) { if (x == y) return true; if (x == null || y == null) return false; DateFormatSymbols other = (DateFormatSymbols) obj; return (equals(ampms, other.ampms) && equals(eras, other.eras) && equals(localPatternChars, other.localPatternChars) && equals(months, o... | 12,232 |
public boolean equals (Object obj) { if (! (obj instanceof DateFormatSymbols)) return false; DateFormatSymbols other = (DateFormatSymbols) obj; return (equals(ampms, other.ampms) && equals(eras, other.eras) && equals(localPatternChars, other.localPatternChars) && equals(months, other.months... | public boolean equals (Object obj) { if (! (obj instanceof DateFormatSymbols)) return false; DateFormatSymbols other = (DateFormatSymbols) obj; return (equals(ampms, other.ampms) && equals(eras, other.eras) && equals(localPatternChars, other.localPatternChars) && equals(months, other.months... | 12,233 |
public int hashCode () { return (hashCode(ampms) ^ hashCode(eras) ^ hashCode(localPatternChars) ^ hashCode(months) ^ hashCode(shortMonths) ^ hashCode(shortWeekdays) ^ hashCode(weekdays) ^ hashCode(zoneStrings)); } | private static int hashCode (Object x) { return (hashCode(ampms) ^ hashCode(eras) ^ hashCode(localPatternChars) ^ hashCode(months) ^ hashCode(shortMonths) ^ hashCode(shortWeekdays) ^ hashCode(weekdays) ^ hashCode(zoneStrings)); } | 12,234 |
public int hashCode () { return (hashCode(ampms) ^ hashCode(eras) ^ hashCode(localPatternChars) ^ hashCode(months) ^ hashCode(shortMonths) ^ hashCode(shortWeekdays) ^ hashCode(weekdays) ^ hashCode(zoneStrings)); } | public int hashCode () { return (hashCode(ampms) ^ hashCode(eras) ^ hashCode(localPatternChars) ^ hashCode(months) ^ hashCode(shortMonths) ^ hashCode(shortWeekdays) ^ hashCode(weekdays) ^ hashCode(zoneStrings)); } | 12,235 |
public boolean isSelectionEmpty() { return ((selection == null) || (selection.length == 0)); } | public boolean isSelectionEmpty() { return (selection == null) || (selection.length == 0); } | 12,236 |
public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalSplitPaneUI instance; if (o == null) { instance = new MetalSplitPaneUI(); instances.put(component, instance); } else instance ... | public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalSplitPaneUI instance; if (o == null) { instance = new MetalSplitPaneUI(); instances.put(component, instance); } else instance ... | 12,237 |
public String getDisplayName() { return displayName; } | public String getDisplayName() { return (displayName == null) ? name : displayName; } | 12,238 |
public String getShortDescription() { return shortDescription; } | public String getShortDescription() { return (shortDescription == null) ? getDisplayName() : shortDescription; } | 12,239 |
public static Policy narrow(org.omg.CORBA.Object obj) { if (obj == null) return null; else if (obj instanceof Policy) return (Policy) obj; else if (!obj._is_a(id())) throw new BAD_PARAM("Not a Policy"); else { Delegate delegate = ((ObjectImpl) obj)._get_delegate(); retur... | public static Policy narrow(org.omg.CORBA.Object obj) { if (obj == null) return null; else if (obj instanceof Policy) return (Policy) obj; else if (!obj._is_a(id())) throw new BAD_PARAM("Not a Policy"); else { Delegate delegate = ((ObjectImpl) obj)._get_delegate(); retur... | 12,240 |
public PolicyHolder(Policy initialValue) { value = initialValue; } | public PolicyHolder() { value = initialValue; } | 12,241 |
public PolicyHolder(Policy initialValue) { value = initialValue; } | public PolicyHolder(Policy initialValue) { } | 12,242 |
public void installUI(JComponent c) { super.installUI(c); } | public void installUI(JComponent c) { super.installUI(c); if (c instanceof JPanel) { JPanel p = (JPanel) c; installDefaults(p); } } | 12,243 |
public static void main(String[] args) throws Exception { final ParsedArguments cmdLine = HELP_INFO.parse(args); final URL url = openURL(ARG_FILE.getValue(cmdLine)); final InputStream is = url.openStream(); if (is == null) { System.err.println("Not found " + ARG_FILE.getValue(... | public static void main(String[] args) throws Exception { final ParsedArguments cmdLine = HELP_INFO.parse(args); final URL url = openURL(ARG_FILE.getValue(cmdLine)); final InputStream is = url.openStream(); if (is == null) { System.err.println("Not found " + ARG_FILE.getValue(... | 12,244 |
private static URL openURL(String fname) throws MalformedURLException { try { return new URL(fname); } catch (MalformedURLException ex) { return new File(fname).toURL(); } } | private URL openURL(String fname) throws MalformedURLException { try { return new URL(fname); } catch (MalformedURLException ex) { return new File(fname).toURL(); } } | 12,245 |
public Preferences systemRoot() { return null; } | public Preferences systemRoot() { return systemPreferences; } | 12,246 |
public Preferences userRoot() { return null; } | public Preferences userRoot() { return userPreferences; } | 12,247 |
private Component findTarget(Component c) { Component target = c; while (target != null && target.getMouseListeners().length == 0) { target = target.getParent(); } return target; } | private Component findTarget(Container c, Point loc) { Component target = c; while (target != null && target.getMouseListeners().length == 0) { target = target.getParent(); } return target; } | 12,248 |
private Component findTarget(Component c) { Component target = c; while (target != null && target.getMouseListeners().length == 0) { target = target.getParent(); } return target; } | private Component findTarget(Component c) { Component target = c; while (target != null && target.getMouseListeners().length == 0) { target = target.getParent(); } return target; } | 12,249 |
private Component findTarget(Component c) { Component target = c; while (target != null && target.getMouseListeners().length == 0) { target = target.getParent(); } return target; } | private Component findTarget(Component c) { Component target = c; while (target != null && target.getMouseListeners().length == 0) { for (int i = 0; i < children.length; i++) { Component child = children[i]; if (child.isShowing()) { if (child.contains(loc.x - child.getX(), loc.y - child.getY()) && ... | 12,250 |
private boolean handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); target = findTarget(target); if (target == null || target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if eve... | private boolean handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); target = findTarget(target); if (target == null || target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if eve... | 12,251 |
private boolean handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); target = findTarget(target); if (target == null || target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if eve... | private boolean handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); target = findTarget(target); if (target == null || target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if eve... | 12,252 |
private boolean handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); target = findTarget(target); if (target == null || target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if eve... | private boolean handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); target = findTarget(target); if (target == null || target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if eve... | 12,253 |
private boolean handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); target = findTarget(target); if (target == null || target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if eve... | private boolean handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); target = findTarget(target); if (target == null || target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if eve... | 12,254 |
private boolean handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); target = findTarget(target); if (target == null || target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if eve... | private boolean handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); target = findTarget(target); if (target == null || target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if eve... | 12,255 |
private boolean handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); target = findTarget(target); if (target == null || target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if eve... | private boolean handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); target = findTarget(target); if (target == null || target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if eve... | 12,256 |
private boolean handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); target = findTarget(target); if (target == null || target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if eve... | private boolean handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); target = findTarget(target); if (target == null || target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if eve... | 12,258 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.