bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public static void invoke(ServerRequest request, InvokeHandler target, Streamable result ) { try { int IN = ARG_IN.value; int OUT = ARG_OUT.value; // Write all arguments to the buffer output stream. cdrBufOutput buffer = new cdr...
public static void invoke(ServerRequest request, InvokeHandler target, Streamable result ) { try { int IN = ARG_IN.value; int OUT = ARG_OUT.value; // Write all arguments to the buffer output stream. cdrBufOutput buffer = new cdr...
13,727
protected void addImpl(Component comp, Object layerConstraint, int index) { Integer layer; if (layerConstraint != null && layerConstraint instanceof Integer) layer = (Integer) layerConstraint; else if (componentToLayer.containsKey (comp)) layer = (Integer) componentToLayer.remove (comp); ...
protected void addImpl(Component comp, Object layerConstraint, int index) { Integer layer; if (layerConstraint != null && layerConstraint instanceof Integer) layer = (Integer) layerConstraint; else if (componentToLayer.containsKey (comp)) layer = (Integer) componentToLayer.remove (comp); ...
13,729
protected void addImpl(Component comp, Object layerConstraint, int index) { Integer layer; if (layerConstraint != null && layerConstraint instanceof Integer) layer = (Integer) layerConstraint; else if (componentToLayer.containsKey (comp)) layer = (Integer) componentToLayer.remove (comp); ...
protected void addImpl(Component comp, Object layerConstraint, int index) { Integer layer; if (layerConstraint != null && layerConstraint instanceof Integer) layer = (Integer) layerConstraint; else if (componentToLayer.containsKey (comp)) layer = (Integer) componentToLayer.remove (comp); ...
13,730
public void setPosition(Component c, int position) { Integer layer = getLayer (c); int[] range = layerToRange (layer); if (range[0] == range[1]) throw new IllegalArgumentException (); int top = range[0]; int bot = range[1]; if (position == -1) position = (bot - top) - 1; int targ = top +...
public void setPosition(Component c, int position) { Integer layer = getLayer (c); int[] range = layerToRange (layer); if (range[0] == range[1]) throw new IllegalArgumentException (); int top = range[0]; int bot = range[1]; if (position == -1) position = (bot - top) - 1; int targ = top +...
13,731
public LineBreakIterator () { iter = null; }
public LineBreakIterator () { }
13,732
public void setArmed(boolean a) { changeState(ARMED, a); }
public void setArmed(boolean a) { if ((a && isArmed()) || (!a && !isArmed())) return; if (!isEnabled()) return; if (a) stateMask = stateMask | ARMED; else stateMask = stateMask & (~ARMED); fireStateChanged(); }
13,733
public void setEnabled(boolean e) { changeState(ENABLED, e); }
public void setEnabled(boolean e) { if ((e && isEnabled()) || (!e && !isEnabled())) return; if (e) stateMask = stateMask | ENABLED; else stateMask = stateMask & (~ENABLED); fireStateChanged(); }
13,734
public void setPressed(boolean p) { changeState(PRESSED, p); }
public void setPressed(boolean p) { if ((p && isPressed()) || (!p && !isPressed())) return; if (!isEnabled()) return; if (p) stateMask = stateMask | PRESSED; else stateMask = stateMask & (~PRESSED); if (!p && isArmed()) fireActionPerformed(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, actionCommand...
13,735
public void setRollover(boolean r) { changeState(ROLLOVER, r); }
public void setRollover(boolean r) { if ((r && isRollover()) || (!r && !isRollover())) return; if (!isEnabled()) return; if (r) stateMask = stateMask | ROLLOVER; else stateMask = stateMask & (~ROLLOVER); fireStateChanged(); }
13,736
public void setSelected(boolean s) { changeState(SELECTED, s); }
public void setSelected(boolean s) { if ((s && isSelected()) || (!s && !isSelected())) return; if (s) stateMask = stateMask | SELECTED; else stateMask = stateMask & (~SELECTED); fireStateChanged(); if (s) { fireItemStateChanged(new ItemEvent(this, ItemEvent.ITEM_STATE_CHANGED, null, ItemEvent.SELECTED)); if...
13,737
public void finalize () { unmapImpl(); }
public void finalize() throws Throwable { unmapImpl(); }
13,738
public AccessibleContext getAccessibleContext() { return null; }
public AccessibleContext getAccessibleContext() { return new AccessibleJTree(); }
13,739
public boolean getScrollableTracksViewportHeight() { if (getParent() instanceof JViewport) return ((JViewport) getParent()).getWidth() > getPreferredSize().width; return false; }
public boolean getScrollableTracksViewportHeight() { if (getParent() instanceof JViewport) return ((JViewport) getParent()).getHeight() > getPreferredSize().height; return false; }
13,740
public boolean getScrollableTracksViewportWidth() { if (getParent() instanceof JViewport) return ((JViewport) getParent()).getHeight() > getPreferredSize().height; return false; }
public boolean getScrollableTracksViewportWidth() { if (getParent() instanceof JViewport) return ((JViewport) getParent()).getWidth() > getPreferredSize().width; return false; }
13,741
protected void send(DatagramPacket p) throws IOException { //Syslog.debug("UDP-send: " + p); final IPv4Address dstAddress = new IPv4Address(p.getAddress()); final IPv4Header ipHdr; ipHdr = new IPv4Header(getTos(), getTimeToLive(), IPPROTO_UDP, dstAddress, p.getLength() + UDP_HLEN); if (!getLocalAddress().isAnyL...
protected void send(DatagramPacket p) throws IOException { //Syslog.debug("UDP-send: " + p); final IPv4Address dstAddress = new IPv4Address(p.getAddress()); final IPv4Header ipHdr; ipHdr = new IPv4Header(getTos(), getTimeToLive(), IPPROTO_UDP, dstAddress, p.getLength() + UDP_HLEN); if (!getLocalAddress().isAnyL...
13,742
protected synchronized void bind(UDPDatagramSocketImpl socket) throws SocketException { final Integer lport = new Integer(socket.getLocalPort()); if (sockets.containsKey(lport)) { throw new SocketException("Port already bound (" + lport + ")"); } else { sockets....
protected synchronized void bind(UDPDatagramSocketImpl socket) throws SocketException { final Integer lport = new Integer(socket.getLocalPort()); if (sockets.containsKey(lport)) { throw new SocketException("Port already bound (" + lport + ")"); } else { sockets....
13,743
protected synchronized void unbind(UDPDatagramSocketImpl socket) { final Integer lport = new Integer(socket.getLocalPort()); if (sockets.get(lport) == socket) { sockets.remove(lport); } }
protected synchronized void unbind(UDPDatagramSocketImpl socket) { final Integer lport = new Integer(socket.getLocalPort()); if (sockets.get(lport) == socket) { sockets.remove(lport); } }
13,745
public NamingContextExtHolder(NamingContextExt initialValue) { value = initialValue; }
public NamingContextExtHolder() { value = initialValue; }
13,747
public NamingContextExtHolder(NamingContextExt initialValue) { value = initialValue; }
public NamingContextExtHolder(NamingContextExt initialValue) { }
13,748
public FBScreen(Surface g) { this.g = g; w = 6; h = 18; sh = h * FBPcTextScreen.SCREEN_HEIGHT + 2 * margin; sw = w * FBPcTextScreen.SCREEN_WIDTH + 2 * margin; bi = new JNodeBufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); ...
public FBScreen(Surface g) { this.g = g; sh = h * FBPcTextScreen.SCREEN_HEIGHT + 2 * margin; sw = w * FBPcTextScreen.SCREEN_WIDTH + 2 * margin; bi = new JNodeBufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); ig = bi...
13,749
public FBScreen(Surface g) { this.g = g; w = 6; h = 18; sh = h * FBPcTextScreen.SCREEN_HEIGHT + 2 * margin; sw = w * FBPcTextScreen.SCREEN_WIDTH + 2 * margin; bi = new JNodeBufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); ...
public FBScreen(Surface g) { this.g = g; w = 6; h = 18; sh = h * FBPcTextScreen.SCREEN_HEIGHT + 2 * margin; sw = w * FBPcTextScreen.SCREEN_WIDTH + 2 * margin; bi = new BufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); ...
13,750
public FBScreen(Surface g) { this.g = g; w = 6; h = 18; sh = h * FBPcTextScreen.SCREEN_HEIGHT + 2 * margin; sw = w * FBPcTextScreen.SCREEN_WIDTH + 2 * margin; bi = new JNodeBufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); ...
public FBScreen(Surface g) { this.g = g; w = 6; h = 18; sh = h * FBPcTextScreen.SCREEN_HEIGHT + 2 * margin; sw = w * FBPcTextScreen.SCREEN_WIDTH + 2 * margin; bi = new JNodeBufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); ...
13,751
public FBScreen(Surface g) { this.g = g; w = 6; h = 18; sh = h * FBPcTextScreen.SCREEN_HEIGHT + 2 * margin; sw = w * FBPcTextScreen.SCREEN_WIDTH + 2 * margin; bi = new JNodeBufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); ...
public FBScreen(Surface g) { this.g = g; w = 6; h = 18; sh = h * FBPcTextScreen.SCREEN_HEIGHT + 2 * margin; sw = w * FBPcTextScreen.SCREEN_WIDTH + 2 * margin; bi = new JNodeBufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); ...
13,752
public static void main(String[] args) throws Exception { final String devId = (args.length > 0) ? args[0] : "" /*"fb0"*/; Surface g = null; try { Device dev = null; if("".equals(devId)){ final Collection<Device> devs = DeviceUtils.getDevicesByAPI(FrameBuffe...
public static void main(String[] args) throws Exception { final String devId = (args.length > 0) ? args[0] : "" /*"fb0"*/; Surface g = null; try { Device dev = null; if("".equals(devId)){ final Collection<Device> devs = DeviceUtils.getDevicesByAPI(FrameBuffe...
13,754
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); logger.log (Component.X509, "start Certificate len == {0}", new Integer (cert.getLength())); this.encoded = cert.getEncoded(); ...
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); logger.log (Component.X509, "start Certificate len == {0}", new Integer (cert.getLength())); this.encoded = cert.getEncoded(); ...
13,755
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); logger.log (Component.X509, "start Certificate len == {0}", new Integer (cert.getLength())); this.encoded = cert.getEncoded(); ...
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); logger.log (Component.X509, "start Certificate len == {0", new Integer (cert.getLength())); this.encoded = cert.getEncoded(); ...
13,756
void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar...
void start() throws Exception { log.entering(this.getClass().getName(), "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) ...
13,757
void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar...
void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar...
13,758
void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar...
void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar...
13,759
void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar...
void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar...
13,760
void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar...
void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar...
13,761
void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar...
void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar...
13,762
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =...
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =...
13,763
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =...
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =...
13,764
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =...
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =...
13,765
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =...
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =...
13,766
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =...
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =...
13,767
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =...
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =...
13,768
private boolean verifySFEntries(String alias) throws IOException { log.entering("JarVerifier", "verifySFEntries"); // 1. read the signature file JarEntry jarEntry = jarFile.getJarEntry(JarUtils.META_INF + alias + JarUtils.SF_SUFFIX); InputStream in = jarFile.get...
private boolean verifySFEntries(String alias) throws IOException { log.entering(this.getClass().getName(), "verifySFEntries"); // 1. read the signature file JarEntry jarEntry = jarFile.getJarEntry(JarUtils.META_INF + alias + JarUtils.SF_SUFFIX); InputStream in =...
13,769
private boolean verifySFEntries(String alias) throws IOException { log.entering("JarVerifier", "verifySFEntries"); // 1. read the signature file JarEntry jarEntry = jarFile.getJarEntry(JarUtils.META_INF + alias + JarUtils.SF_SUFFIX); InputStream in = jarFile.get...
private boolean verifySFEntries(String alias) throws IOException { log.entering("JarVerifier", "verifySFEntries"); // 1. read the signature file JarEntry jarEntry = jarFile.getJarEntry(JarUtils.META_INF + alias + JarUtils.SF_SUFFIX); InputStream in = jarFile.get...
13,770
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa...
public boolean matches(Node node, int pos, int len) switch (node.getNodeType()) case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals...
13,771
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa...
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa...
13,772
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa...
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa...
13,773
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa...
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa...
13,774
public NotEmptyHolder(NotEmpty initialValue) { value = initialValue; }
public NotEmptyHolder() { value = initialValue; }
13,775
public NotEmptyHolder(NotEmpty initialValue) { value = initialValue; }
public NotEmptyHolder(NotEmpty initialValue) { }
13,776
private void updateImage() { switch (locked) { case HLOCKED: updateHLockImage(); break; case SLOCKED: updateSLockImage(); break; case BLOCKED: updateBLockImage(); break; } }
void updateImage() { switch (locked) { case HLOCKED: updateHLockImage(); break; case SLOCKED: updateSLockImage(); break; case BLOCKED: updateBLockImage(); break; } }
13,777
private void updateSlider() { if (slider == null) return; slider.setMinimum(0); if (locked == HLOCKED) { slider.setMaximum(359); ; slider.setValue(((Number) hSpinner.getValue()).intValue()); slider.setInverted(true); } else { slider.setMaximum(100); slider.setInverted(false); if (sRad...
void updateSlider() { if (slider == null) return; slider.setMinimum(0); if (locked == HLOCKED) { slider.setMaximum(359); ; slider.setValue(((Number) hSpinner.getValue()).intValue()); slider.setInverted(true); } else { slider.setMaximum(100); slider.setInverted(false); if (sRadio.isSel...
13,778
private void updateTrack() { switch (locked) { case HLOCKED: updateHTrack(); break; case SLOCKED: updateSTrack(); break; case BLOCKED: updateBTrack(); break; } }
void updateTrack() { switch (locked) { case HLOCKED: updateHTrack(); break; case SLOCKED: updateSTrack(); break; case BLOCKED: updateBTrack(); break; } }
13,779
public MemoryImageSource(int w, int h, int pix[], int off, int scan) { this ( w, h, ColorModel.getRGBdefault(), pix, off, scan, null); }
public MemoryImageSource(int w, int h, int pix[], int off, int scan) { this ( w, h, ColorModel.getRGBdefault(), pix, off, scan, null); }
13,780
public MemoryImageSource(int w, int h, int pix[], int off, int scan) { this ( w, h, ColorModel.getRGBdefault(), pix, off, scan, null); }
public MemoryImageSource(int w, int h, int pix[], int off, int scan) { this(w, h, cm, pix, off, scan, null); }
13,781
private static void readFields(ByteBuffer data, VmType< ? > cls, VmCP cp, VmSharedStatics sharedStatics, VmIsolatedStatics isolatedStatics, int slotSize, int flags) { final int fcount = data.getChar(); if (fcount > 0) { final VmField[] ftable = new VmField[fcount]; ...
private static void readFields(ByteBuffer data, VmType< ? > cls, VmCP cp, VmSharedStatics sharedStatics, VmIsolatedStatics isolatedStatics, int slotSize, int flags) { final int fcount = data.getChar(); if (fcount > 0) { final VmField[] ftable = new VmField[fcount]; ...
13,782
static Icon currentIcon(AbstractButton b) { Icon i = b.getIcon(); ButtonModel model = b.getModel(); if (model.isPressed() && b.getPressedIcon() != null) i = b.getPressedIcon(); else if (model.isRollover()) { if (b.isSelected() && b.getRolloverSelectedIcon() != null) i = b.getRol...
static Icon currentIcon(AbstractButton b) { Icon i = b.getIcon(); ButtonModel model = b.getModel(); if (model.isPressed() && b.getPressedIcon() != null && b.isEnabled()) i = b.getPressedIcon(); else if (model.isRollover()) { if (b.isSelected() && b.getRolloverSelectedIcon() != null) ...
13,783
static Icon currentIcon(AbstractButton b) { Icon i = b.getIcon(); ButtonModel model = b.getModel(); if (model.isPressed() && b.getPressedIcon() != null) i = b.getPressedIcon(); else if (model.isRollover()) { if (b.isSelected() && b.getRolloverSelectedIcon() != null) i = b.getRol...
static Icon currentIcon(AbstractButton b) { Icon i = b.getIcon(); ButtonModel model = b.getModel(); if (model.isPressed() && b.getPressedIcon() != null) i = b.getPressedIcon(); else if (model.isRollover()) { if (b.isSelected() && b.getRolloverSelectedIcon() != null) i = b.getRol...
13,784
protected void installDefaults(AbstractButton b) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); String prefix = getPropertyPrefix(); b.setFont(defaults.getFont(prefix + "font")); focusColor = defaults.getColor(prefix + "focus"); b.setForeground(defaults.getColor(prefix + "foreground")); ...
protected void installDefaults(AbstractButton b) { String prefix = getPropertyPrefix(); b.setFont(defaults.getFont(prefix + "font")); focusColor = defaults.getColor(prefix + "focus"); b.setForeground(defaults.getColor(prefix + "foreground")); b.setBackground(defaults.getColor(prefix + "background"...
13,785
protected void installDefaults(AbstractButton b) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); String prefix = getPropertyPrefix(); b.setFont(defaults.getFont(prefix + "font")); focusColor = defaults.getColor(prefix + "focus"); b.setForeground(defaults.getColor(prefix + "foreground")); ...
protected void installDefaults(AbstractButton b) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); String prefix = getPropertyPrefix(); b.setFont(defaults.getFont(prefix + "font")); focusColor = defaults.getColor(prefix + "focus"); b.setForeground(defaults.getColor(prefix + "foreground")); ...
13,786
protected void installDefaults(AbstractButton b) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); String prefix = getPropertyPrefix(); b.setFont(defaults.getFont(prefix + "font")); focusColor = defaults.getColor(prefix + "focus"); b.setForeground(defaults.getColor(prefix + "foreground")); ...
protected void installDefaults(AbstractButton b) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); String prefix = getPropertyPrefix(); b.setFont(defaults.getFont(prefix + "font")); focusColor = defaults.getColor(prefix + "focus"); b.setForeground(defaults.getColor(prefix + "foreground")); ...
13,787
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); if (b.isBorderPainted()) SwingUtilities.calculateInnerArea(b, vr); ...
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); if (b.isBorderPainted()) SwingUtilities.calculateInnerArea(b, vr); ...
13,788
public void contentsChanged(ListDataEvent e) { BasicListUI.this.damageLayout(); }
public void contentsChanged(ListDataEvent e) { list.revalidate(); }
13,789
public void intervalAdded(ListDataEvent e) { BasicListUI.this.damageLayout(); }
public void intervalAdded(ListDataEvent e) { list.revalidate(); }
13,790
public void intervalRemoved(ListDataEvent e) { BasicListUI.this.damageLayout(); }
public void intervalRemoved(ListDataEvent e) { list.revalidate(); }
13,791
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
13,792
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
13,793
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
13,794
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
13,795
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
13,796
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
13,797
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
13,798
protected int convertYToRow(int y0) { if (list.getModel().getSize() == 0) return -1; // When y0 < 0, then the JDK returns the maximum row index of the list. So // do we. if (y0 < 0) return list.getModel().getSize() - 1; // Update the layout if necessary. maybeUpdateLayoutState(); int i...
protected int convertYToRow(int y0) { if (list.getModel().getSize() == 0) return -1; // When y0 < 0, then the JDK returns the maximum row index of the list. So // do we. if (y0 < 0) return list.getModel().getSize() - 1; // Update the layout if necessary. maybeUpdateLayoutState(); int i...
13,799
public Rectangle getCellBounds(JList l, int index1, int index2) { maybeUpdateLayoutState(); if (l != list || cellWidth == -1) return null; int minIndex = Math.min(index1, index2); int maxIndex = Math.max(index1, index2); Point loc = indexToLocation(list, minIndex); Rectangle bounds = new Recta...
public Rectangle getCellBounds(JList l, int index1, int index2) { maybeUpdateLayoutState(); if (l != list || cellWidth == -1) return null; int minIndex = Math.min(index1, index2); int maxIndex = Math.max(index1, index2); Point loc = indexToLocation(list, minIndex); Rectangle bounds = new Recta...
13,800
public Rectangle getCellBounds(JList l, int index1, int index2) { maybeUpdateLayoutState(); if (l != list || cellWidth == -1) return null; int minIndex = Math.min(index1, index2); int maxIndex = Math.max(index1, index2); Point loc = indexToLocation(list, minIndex); Rectangle bounds = new Recta...
public Rectangle getCellBounds(JList l, int index1, int index2) { maybeUpdateLayoutState(); if (l != list || cellWidth == -1) return null; int minIndex = Math.min(index1, index2); int maxIndex = Math.max(index1, index2); Point loc = indexToLocation(list, minIndex); Rectangle bounds = new Recta...
13,801
public Dimension getPreferredSize(JComponent c) { int size = list.getModel().getSize(); if (size == 0) return new Dimension(0, 0); int visibleRows = list.getVisibleRowCount(); int layoutOrientation = list.getLayoutOrientation(); Rectangle bounds = getCellBounds(list, 0, list.getModel().getSize() ...
public Dimension getPreferredSize(JComponent c) { int size = list.getModel().getSize(); if (size == 0) return new Dimension(0, 0); int visibleRows = list.getVisibleRowCount(); int layoutOrientation = list.getLayoutOrientation(); Rectangle bounds = getCellBounds(list, 0, list.getModel().getSize() ...
13,802
public Dimension getPreferredSize(JComponent c) { int size = list.getModel().getSize(); if (size == 0) return new Dimension(0, 0); int visibleRows = list.getVisibleRowCount(); int layoutOrientation = list.getLayoutOrientation(); Rectangle bounds = getCellBounds(list, 0, list.getModel().getSize() ...
public Dimension getPreferredSize(JComponent c) { int size = list.getModel().getSize(); if (size == 0) return new Dimension(0, 0); int visibleRows = list.getVisibleRowCount(); int layoutOrientation = list.getLayoutOrientation(); Rectangle bounds = getCellBounds(list, 0, list.getModel().getSize() ...
13,803
public Dimension getPreferredSize(JComponent c) { int size = list.getModel().getSize(); if (size == 0) return new Dimension(0, 0); int visibleRows = list.getVisibleRowCount(); int layoutOrientation = list.getLayoutOrientation(); Rectangle bounds = getCellBounds(list, 0, list.getModel().getSize() ...
public Dimension getPreferredSize(JComponent c) { int size = list.getModel().getSize(); if (size == 0) return new Dimension(0, 0); int visibleRows = list.getVisibleRowCount(); int layoutOrientation = list.getLayoutOrientation(); Rectangle bounds = getCellBounds(list, 0, list.getModel().getSize() ...
13,804
public Dimension getPreferredSize(JComponent c) { int size = list.getModel().getSize(); if (size == 0) return new Dimension(0, 0); int visibleRows = list.getVisibleRowCount(); int layoutOrientation = list.getLayoutOrientation(); Rectangle bounds = getCellBounds(list, 0, list.getModel().getSize() ...
public Dimension getPreferredSize(JComponent c) { int size = list.getModel().getSize(); if (size == 0) return new Dimension(0, 0); int visibleRows = list.getVisibleRowCount(); int layoutOrientation = list.getLayoutOrientation(); Rectangle bounds = getCellBounds(list, 0, list.getModel().getSize() ...
13,805
public Dimension getPreferredSize(JComponent c) { int size = list.getModel().getSize(); if (size == 0) return new Dimension(0, 0); int visibleRows = list.getVisibleRowCount(); int layoutOrientation = list.getLayoutOrientation(); Rectangle bounds = getCellBounds(list, 0, list.getModel().getSize() ...
public Dimension getPreferredSize(JComponent c) { int size = list.getModel().getSize(); if (size == 0) return new Dimension(0, 0); int visibleRows = list.getVisibleRowCount(); int layoutOrientation = list.getLayoutOrientation(); Rectangle bounds = getCellBounds(list, 0, list.getModel().getSize() ...
13,806
public Point indexToLocation(JList list, int index) { int layoutOrientation = list.getLayoutOrientation(); Point loc = null; switch (layoutOrientation) { case JList.VERTICAL: loc = new Point(0, convertRowToY(index)); break; case JList.HORIZONTAL_WRAP: // determine visible...
public Point indexToLocation(JList l, int index) { int layoutOrientation = list.getLayoutOrientation(); Point loc = null; switch (layoutOrientation) { case JList.VERTICAL: loc = new Point(0, convertRowToY(index)); break; case JList.HORIZONTAL_WRAP: // determine visible ro...
13,808
public Point indexToLocation(JList list, int index) { int layoutOrientation = list.getLayoutOrientation(); Point loc = null; switch (layoutOrientation) { case JList.VERTICAL: loc = new Point(0, convertRowToY(index)); break; case JList.HORIZONTAL_WRAP: // determine visible...
public Point indexToLocation(JList list, int index) { int layoutOrientation = list.getLayoutOrientation(); Point loc = null; switch (layoutOrientation) { case JList.VERTICAL: loc = new Point(0, convertRowToY(index)); break; case JList.HORIZONTAL_WRAP: // determine visible...
13,809
public Point indexToLocation(JList list, int index) { int layoutOrientation = list.getLayoutOrientation(); Point loc = null; switch (layoutOrientation) { case JList.VERTICAL: loc = new Point(0, convertRowToY(index)); break; case JList.HORIZONTAL_WRAP: // determine visible...
public Point indexToLocation(JList list, int index) { int layoutOrientation = list.getLayoutOrientation(); Point loc = null; switch (layoutOrientation) { case JList.VERTICAL: loc = new Point(0, convertRowToY(index)); break; case JList.HORIZONTAL_WRAP: // determine visible...
13,810
public Point indexToLocation(JList list, int index) { int layoutOrientation = list.getLayoutOrientation(); Point loc = null; switch (layoutOrientation) { case JList.VERTICAL: loc = new Point(0, convertRowToY(index)); break; case JList.HORIZONTAL_WRAP: // determine visible...
public Point indexToLocation(JList list, int index) { int layoutOrientation = list.getLayoutOrientation(); Point loc = null; switch (layoutOrientation) { case JList.VERTICAL: loc = new Point(0, convertRowToY(index)); break; case JList.HORIZONTAL_WRAP: // determine visible...
13,811
public Point indexToLocation(JList list, int index) { int layoutOrientation = list.getLayoutOrientation(); Point loc = null; switch (layoutOrientation) { case JList.VERTICAL: loc = new Point(0, convertRowToY(index)); break; case JList.HORIZONTAL_WRAP: // determine visible...
public Point indexToLocation(JList list, int index) { int layoutOrientation = list.getLayoutOrientation(); Point loc = null; switch (layoutOrientation) { case JList.VERTICAL: loc = new Point(0, convertRowToY(index)); break; case JList.HORIZONTAL_WRAP: // determine visible...
13,812
public Point indexToLocation(JList list, int index) { int layoutOrientation = list.getLayoutOrientation(); Point loc = null; switch (layoutOrientation) { case JList.VERTICAL: loc = new Point(0, convertRowToY(index)); break; case JList.HORIZONTAL_WRAP: // determine visible...
public Point indexToLocation(JList list, int index) { int layoutOrientation = list.getLayoutOrientation(); Point loc = null; switch (layoutOrientation) { case JList.VERTICAL: loc = new Point(0, convertRowToY(index)); break; case JList.HORIZONTAL_WRAP: // determine visible...
13,813
public Point indexToLocation(JList list, int index) { int layoutOrientation = list.getLayoutOrientation(); Point loc = null; switch (layoutOrientation) { case JList.VERTICAL: loc = new Point(0, convertRowToY(index)); break; case JList.HORIZONTAL_WRAP: // determine visible...
public Point indexToLocation(JList list, int index) { int layoutOrientation = list.getLayoutOrientation(); Point loc = null; switch (layoutOrientation) { case JList.VERTICAL: loc = new Point(0, convertRowToY(index)); break; case JList.HORIZONTAL_WRAP: // determine visible...
13,814
protected void installListeners() { if (focusListener == null) focusListener = createFocusListener(); list.addFocusListener(focusListener); if (listDataListener == null) listDataListener = createListDataListener(); list.getModel().addListDataListener(listDataListener); if (listSelectionListe...
protected void installListeners() { if (focusListener == null) focusListener = createFocusListener(); list.addFocusListener(focusListener); if (listDataListener == null) listDataListener = createListDataListener(); list.getModel().addListDataListener(listDataListener); if (listSelectionListe...
13,815
public int locationToIndex(JList list, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows ...
public int locationToIndex(JList l, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows and...
13,816
public int locationToIndex(JList list, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows ...
public int locationToIndex(JList list, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows ...
13,817
public int locationToIndex(JList list, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows ...
public int locationToIndex(JList list, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows ...
13,818
public int locationToIndex(JList list, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows ...
public int locationToIndex(JList list, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows ...
13,819
public int locationToIndex(JList list, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows ...
public int locationToIndex(JList list, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows ...
13,820
public int locationToIndex(JList list, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows ...
public int locationToIndex(JList list, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows ...
13,821
public int locationToIndex(JList list, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows ...
public int locationToIndex(JList list, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows ...
13,822
protected void maybeUpdateLayoutState() { if (updateLayoutStateNeeded != 0) { updateLayoutState(); updateLayoutStateNeeded = 0; } }
protected void maybeUpdateLayoutState() { if (updateLayoutStateNeeded != 0 || !list.isValid()) { updateLayoutState(); updateLayoutStateNeeded = 0; } }
13,823
public void paint(Graphics g, JComponent c) { int nrows = list.getModel().getSize(); if (nrows == 0) return; maybeUpdateLayoutState(); ListCellRenderer render = list.getCellRenderer(); ListModel model = list.getModel(); ListSelectionModel sel = list.getSelectionModel(); int lead = sel.getLe...
public void paint(Graphics g, JComponent c) { int nrows = list.getModel().getSize(); if (nrows == 0) return; maybeUpdateLayoutState(); ListCellRenderer render = list.getCellRenderer(); ListModel model = list.getModel(); ListSelectionModel sel = list.getSelectionModel(); int lead = sel.getLe...
13,824
private static Color getColor(String s) { String s2 = (String)colorMap.get(s.toLowerCase()); if( s2 == null ) s2 = s; try { return Color.decode(s2); } catch(NumberFormatException nfe) { return null; } }
private static Color getColor(String colorName) { String s2 = (String)colorMap.get(s.toLowerCase()); if( s2 == null ) s2 = s; try { return Color.decode(s2); } catch(NumberFormatException nfe) { return null; } }
13,825
private static Color getColor(String s) { String s2 = (String)colorMap.get(s.toLowerCase()); if( s2 == null ) s2 = s; try { return Color.decode(s2); } catch(NumberFormatException nfe) { return null; } }
private static Color getColor(String s) { String s2 = (String)colorMap.get(s.toLowerCase()); if( s2 == null ) s2 = s; try { return Color.decode(s2); } catch(NumberFormatException nfe) { return null; } }
13,826
private static Color getColor(String s) { String s2 = (String)colorMap.get(s.toLowerCase()); if( s2 == null ) s2 = s; try { return Color.decode(s2); } catch(NumberFormatException nfe) { return null; } }
private static Color getColor(String s) { String s2 = (String)colorMap.get(s.toLowerCase()); if( s2 == null ) s2 = s; try { return Color.decode(s2); } } catch (Exception nex) { return null; } }
13,827
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
13,828
public DefaultTreeSelectionModel() { setSelectionMode(SINGLE_TREE_SELECTION); listenerList = new EventListenerList(); }
public DefaultTreeSelectionModel() { setSelectionMode(DISCONTIGUOUS_TREE_SELECTION); listenerList = new EventListenerList(); }
13,829
public void _read(cdrInput c) throws IOException, BAD_PARAM { int endian; endian = c.read_long(); if (endian != 0) throw new BAD_PARAM("Little endian is not yet supported", FAILED, CompletionStatus.COMPLETED_NO ); _read_no_endian(c); }
public void _read(cdrInput c) throws IOException, BAD_PARAM { int endian; endian = c.read_long(); if (endian != 0) throw new BAD_PARAM("Little endian is not yet supported", FAILED, CompletionStatus.COMPLETED_NO ); _read_no_endian(c); }
13,830
public static int[] read(InputStream input) { ULongSeqHolder h = new ULongSeqHolder(); h._read(input); return h.value; }
public static int[] read(InputStream input) { ULongSeqHolder h = new ULongSeqHolder(); h._read(input); return h.value; }
13,832