rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
Rectangle r = a != null && isAllocationValid() ? getInsideAllocation(a) : null; View v = getViewAtPosition(e.getOffset(), r); if (v != null) v.removeUpdate(e, r, f);
public void removeUpdate (DocumentEvent e, Shape a, ViewFactory f) { super.removeUpdate(e, a, viewFactory); // No repaint needed, as this is done by the WrappedLine instances. }
tabSize = getTabSize()* metrics.charWidth('m');
void updateMetrics() { Container component = getContainer(); metrics = component.getFontMetrics(component.getFont()); }
return width;
return span[X_AXIS];
public int getWidth() { return width; }
return height;
return span[Y_AXIS];
public int getHeight() { return height; }
if (this.width != (int) width) layoutChanged(X_AXIS); if (this.height != (int) height) layoutChanged(Y_AXIS); this.width = (int) width; this.height = (int) height; Rectangle outside = new Rectangle(0, 0, this.width, this.height); Rectangle inside = getInsideAllocation(outside); if (!isAllocationValid()) layout(inside...
layout((int) width, (int) height);
public void setSize(float width, float height) { if (this.width != (int) width) layoutChanged(X_AXIS); if (this.height != (int) height) layoutChanged(Y_AXIS); this.width = (int) width; this.height = (int) height; Rectangle outside = new Rectangle(0, 0, this.width, this.height); Rectangle ...
xLayoutValid = false;
layoutValid[X_AXIS] = false;
public void preferenceChanged (View child, boolean width, boolean height) { if (width) xLayoutValid = false; if (height) yLayoutValid = false; super.preferenceChanged(child, width, height); }
yLayoutValid = false;
layoutValid[Y_AXIS] = false;
public void preferenceChanged (View child, boolean width, boolean height) { if (width) xLayoutValid = false; if (height) yLayoutValid = false; super.preferenceChanged(child, width, height); }
throws NotImplementedException
public void caretUpdate(CaretEvent e) { // TODO: fire appropriate event. dot = e.getDot(); }
throws NotImplementedException
public void changedUpdate(DocumentEvent e) { // TODO }
throws NotImplementedException
public boolean doAccessibleAction(int i) { return false; // TODO }
throws NotImplementedException
public int getAccessibleActionCount() { return 0; // TODO }
throws NotImplementedException
public String getAccessibleActionDescription(int i) { // TODO: Not implemented fully return super.getAccessibleDescription(); }
throws NotImplementedException
public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet state = super.getAccessibleStateSet(); // TODO: Figure out what state must be added here to the super's state. return state; }
throws NotImplementedException
public String getAfterIndex(int part, int index) { return null; // TODO }
throws NotImplementedException
public String getAtIndex(int part, int index) { return null; // TODO }
throws NotImplementedException
public String getBeforeIndex(int part, int index) { return null; // TODO }
throws NotImplementedException
public AttributeSet getCharacterAttribute(int index) { return null; // TODO }
throws NotImplementedException
public Rectangle getCharacterBounds(int index) { return null; // TODO }
throws NotImplementedException
public int getIndexAtPoint(Point p) { return 0; // TODO }
throws NotImplementedException
public void insertTextAtIndex(int index, String s) { replaceText(index, index, s); }
throws NotImplementedException
public void insertUpdate(DocumentEvent e) { // TODO }
throws NotImplementedException
public void removeUpdate(DocumentEvent e) { // TODO }
throws NotImplementedException
public void setAttributes(int start, int end, AttributeSet s) { // TODO }
throws NotImplementedException
public void setTextContents(String s) { // TODO }
if (isEnabled())
public void copy() { doTransferAction("copy", TransferHandler.getCopyAction()); }
if (editable && isEnabled())
public void cut() { doTransferAction("cut", TransferHandler.getCutAction()); }
if (editable && isEnabled())
public void paste() { doTransferAction("paste", TransferHandler.getPasteAction()); }
component.addMouseListener (this); component.addMouseMotionListener (this);
protected void registerListeners () { // FIXME: implement this }
component.removeMouseListener (this); component.removeMouseMotionListener (this);
protected void unregisterListeners () { // FIXME: implement this }
ref.invoke(this, $method_clean_0, new java.lang.Object[] {$param_0, new java.lang.Long($param_1), $param_2, new java.lang.Boolean($param_3)}, -5803803475088455571L);
ref.invoke(this, $method_clean_0, new java.lang.Object[] {$param_0, new java.lang.Long($param_1), $param_2, Boolean.valueOf($param_3)}, -5803803475088455571L);
public void clean(java.rmi.server.ObjID[] $param_0, long $param_1, java.rmi.dgc.VMID $param_2, boolean $param_3) throws java.rmi.RemoteException { try { if (useNewInvoke) { ref.invoke(this, $method_clean_0, new java.lang.Object[] {$param_0, new java.lang.Long($param_1), $param_2, ne...
RandomAccessFile raf = this.raf; if (raf == null) return;
public void close() throws IOException { synchronized (raf) { closed = true; entries = null; raf.close(); } }
String name = new String(buffer, 0, 0, nameLen);
String name; try { name = new String(buffer, 0, nameLen, "UTF-8"); } catch (UnsupportedEncodingException uee) { throw new AssertionError(uee); }
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
entry.setComment(new String(buffer, 0, commentLen));
try { entry.setComment(new String(buffer, 0, commentLen, "UTF-8")); } catch (UnsupportedEncodingException uee) { throw new AssertionError(uee); }
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
public Formatter(Appendable app, Locale loc)
public Formatter()
public Formatter(Appendable app, Locale loc) { this.out = app == null ? new StringBuilder() : app; this.locale = loc; }
this.out = app == null ? new StringBuilder() : app; this.locale = loc;
this(null, Locale.getDefault());
public Formatter(Appendable app, Locale loc) { this.out = app == null ? new StringBuilder() : app; this.locale = loc; }
public Formatter format(String format, Object... args)
public Formatter format(Locale loc, String fmt, Object... args)
public Formatter format(String format, Object... args) { return format(locale, format, args); }
return format(locale, format, args);
if (closed) throw new FormatterClosedException(); int implicitArgumentIndex = 1; int previousArgumentIndex = 0; try { fmtLocale = loc; format = fmt; length = format.length(); for (index = 0; index < length; ++index) { char c = format.charAt(index); if (c != '%') { out.append(c); continue; } int start = index; advan...
public Formatter format(String format, Object... args) { return format(locale, format, args); }
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, ColorModel cm, byte pix[], int off, int scan) { this ( w, h, cm, 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); }
return context.addStyle(nm, parent);
Style newStyle = context.addStyle(nm, parent); if (styleChangeListener == null) styleChangeListener = new StyleChangeListener(); newStyle.addChangeListener(styleChangeListener); return newStyle;
public Style addStyle(String nm, Style parent) { StyleContext context = (StyleContext) getAttributeContext(); return context.addStyle(nm, parent); }
throw new AssertionError("BadLocationException must not be thrown " + "here.");
AssertionError ae = new AssertionError("Unexpected bad location"); ae.initCause(ex); throw ae;
protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offset + length; Segment txt = new Segment(); try { getText(offset, length, txt); } catch (BadLocatio...
abstract void dump(boolean dumpStack, VmStackReader stackReader);
final void dump(boolean dumpStack, VmStackReader stackReader) { Unsafe.debug(name); Unsafe.debug("-queue:\n"); VmThreadQueueEntry e = first; if (e == null) { Unsafe.debug("Empty\n"); } else { while (e != null) { Unsafe.debug(e.thread.getName()); Unsafe.debug(" id0x"); Unsafe.debug(e.thread.getId()); Unsafe.debug(" s0x"...
abstract void dump(boolean dumpStack, VmStackReader stackReader);
public void setSample(int x, int y, int b, double s) { sampleModel.setSample(x - sampleModelTranslateX, y - sampleModelTranslateY, b, s, dataBuffer);
public void setSample(int x, int y, int b, int s) { sampleModel.setSample(x-sampleModelTranslateX, y-sampleModelTranslateY, b, s, dataBuffer);
public void setSample(int x, int y, int b, double s) { sampleModel.setSample(x - sampleModelTranslateX, y - sampleModelTranslateY, b, s, dataBuffer); }
VMChannel.close(native_fd);
VmChannel.close(native_fd);
public void close() throws IOException { if (!valid) throw new IOException("invalid file descriptor"); try { VMChannel.close(native_fd); } finally { valid = false; closed = true; } }
int new_fd = accept(nfd.getNativeFD());
int new_fd = VmChannel.accept(nfd.getNativeFD());
public VMChannel accept() throws IOException { int new_fd = accept(nfd.getNativeFD()); if (new_fd == -1) // non-blocking accept had no pending connection return null; return new VMChannel(new_fd); }
return available(nfd.getNativeFD());
return VmChannel.available(nfd.getNativeFD());
public int available() throws IOException { return available(nfd.getNativeFD()); }
return connect(fd, addr.getAddress(), saddr.getPort(),
return VmChannel.connect(fd, addr.getAddress(), saddr.getPort(),
public boolean connect(InetSocketAddress saddr, int timeout) throws SocketException { int fd; InetAddress addr = saddr.getAddress(); // Translates an IOException into a SocketException to conform // to the throws clause. try { fd = nfd.getNativeFD(); } catch (IOException ioe) ...
return connect6(fd, addr.getAddress(), saddr.getPort(),
return VmChannel.connect6(fd, addr.getAddress(), saddr.getPort(),
public boolean connect(InetSocketAddress saddr, int timeout) throws SocketException { int fd; InetAddress addr = saddr.getAddress(); // Translates an IOException into a SocketException to conform // to the throws clause. try { fd = nfd.getNativeFD(); } catch (IOException ioe) ...
disconnect(nfd.getNativeFD());
VmChannel.disconnect(nfd.getNativeFD());
public void disconnect() throws IOException { if (kind != Kind.SOCK_DGRAM) throw new IOException("can only disconnect datagram channels"); disconnect(nfd.getNativeFD()); }
return flush(nfd.getNativeFD(), metadata);
return VmChannel.flush(nfd.getNativeFD(), metadata);
public boolean flush(boolean metadata) throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); return flush(nfd.getNativeFD(), metadata); }
int namelen = getsockname(nfd.getNativeFD(), name);
int namelen = VmChannel.getsockname(nfd.getNativeFD(), name);
public InetSocketAddress getLocalAddress() throws IOException { if (!nfd.isValid()) return null; ByteBuffer name = ByteBuffer.allocateDirect(18); int namelen = getsockname(nfd.getNativeFD(), name); if (namelen == 0) // not bound return null; // XXX return some wildcard? if (namelen == 4) ...
int namelen = getpeername (nfd.getNativeFD(), name);
int namelen = VmChannel.getpeername (nfd.getNativeFD(), name);
public InetSocketAddress getPeerAddress() throws IOException { if (!nfd.isValid()) return null; ByteBuffer name = ByteBuffer.allocateDirect(18); int namelen = getpeername (nfd.getNativeFD(), name); if (namelen == 0) // not connected yet return null; if (namelen == 4) // IPv4 { by...
return new VMChannel(stderr_fd());
return new VMChannel(VmChannel.stderr_fd());
public static VMChannel getStderr() throws IOException { return new VMChannel(stderr_fd()); }
return new VMChannel(stdin_fd());
return new VMChannel(VmChannel.stdin_fd());
public static VMChannel getStdin() throws IOException { return new VMChannel(stdin_fd()); }
return new VMChannel(stdout_fd());
return new VMChannel(VmChannel.stdout_fd());
public static VMChannel getStdout() throws IOException { return new VMChannel(stdout_fd()); }
nfd.setNativeFD(socket(stream));
nfd.setNativeFD(VmChannel.socket(stream));
public void initSocket(boolean stream) throws IOException { if (nfd.isValid()) throw new IOException("native FD already initialized"); if (stream) kind = Kind.SOCK_STREAM; else kind = Kind.SOCK_DGRAM; nfd.setNativeFD(socket(stream)); }
return lock(nfd.getNativeFD(), pos, len, shared, wait);
return VmChannel.lock(nfd.getNativeFD(), pos, len, shared, wait);
public boolean lock(long pos, long len, boolean shared, boolean wait) throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); return lock(nfd.getNativeFD(), pos, len, shared, wait); }
return map(nfd.getNativeFD(), mode, position, size);
return VmChannel.map(nfd.getNativeFD(), mode, position, size);
public MappedByteBuffer map(char mode, long position, int size) throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); return map(nfd.getNativeFD(), mode, position, size); }
int fd = open(path, mode);
int fd = VmChannel.open(path, mode);
public void openFile(String path, int mode) throws IOException { if (nfd.isValid() || nfd.isClosed()) throw new IOException("can't reinitialize this channel"); int fd = open(path, mode); nfd.setNativeFD(fd); kind = Kind.FILE; }
return position(nfd.getNativeFD());
return VmChannel.position(nfd.getNativeFD());
public long position() throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); return position(nfd.getNativeFD()); }
return read(nfd.getNativeFD(), dst);
return VmChannel.read(nfd.getNativeFD(), dst);
public int read(ByteBuffer dst) throws IOException { return read(nfd.getNativeFD(), dst); }
return readScattering(nfd.getNativeFD(), dsts, offset, length);
return VmChannel.readScattering(nfd.getNativeFD(), dsts, offset, length);
public long readScattering(ByteBuffer[] dsts, int offset, int length) throws IOException { if (offset + length > dsts.length) throw new IndexOutOfBoundsException("offset + length > dsts.length"); return readScattering(nfd.getNativeFD(), dsts, offset, length); }
int hostlen = receive(nfd.getNativeFD(), dst, hostPort);
int hostlen = VmChannel.receive(nfd.getNativeFD(), dst, hostPort);
public SocketAddress receive(ByteBuffer dst) throws IOException { if (kind != Kind.SOCK_DGRAM) throw new SocketException("not a datagram socket"); ByteBuffer hostPort = ByteBuffer.allocateDirect(18); int hostlen = receive(nfd.getNativeFD(), dst, hostPort); if (hostlen == 0) return null; if (...
seek(nfd.getNativeFD(), pos);
VmChannel.seek(nfd.getNativeFD(), pos);
public void seek(long pos) throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); seek(nfd.getNativeFD(), pos); }
return send(nfd.getNativeFD(), src, addr.getAddress(), dst.getPort());
return VmChannel.send(nfd.getNativeFD(), src, addr.getAddress(), dst.getPort());
public int send(ByteBuffer src, InetSocketAddress dst) throws IOException { InetAddress addr = dst.getAddress(); if (addr == null) throw new NullPointerException(); if (addr instanceof Inet4Address) return send(nfd.getNativeFD(), src, addr.getAddress(), dst.getPort()); else if (addr instance...
return send6(nfd.getNativeFD(), src, addr.getAddress(), dst.getPort());
return VmChannel.send6(nfd.getNativeFD(), src, addr.getAddress(), dst.getPort());
public int send(ByteBuffer src, InetSocketAddress dst) throws IOException { InetAddress addr = dst.getAddress(); if (addr == null) throw new NullPointerException(); if (addr instanceof Inet4Address) return send(nfd.getNativeFD(), src, addr.getAddress(), dst.getPort()); else if (addr instance...
setBlocking(nfd.getNativeFD(), blocking);
VmChannel.setBlocking(nfd.getNativeFD(), blocking);
public void setBlocking(boolean blocking) throws IOException { setBlocking(nfd.getNativeFD(), blocking); }
return size(nfd.getNativeFD());
return VmChannel.size(nfd.getNativeFD());
public long size() throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); return size(nfd.getNativeFD()); }
truncate(nfd.getNativeFD(), length);
VmChannel.truncate(nfd.getNativeFD(), length);
public void truncate(long length) throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); truncate(nfd.getNativeFD(), length); }
unlock(nfd.getNativeFD(), pos, len);
VmChannel.unlock(nfd.getNativeFD(), pos, len);
public void unlock(long pos, long len) throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); unlock(nfd.getNativeFD(), pos, len); }
return write(nfd.getNativeFD(), src);
return VmChannel.write(nfd.getNativeFD(), src);
public int write(ByteBuffer src) throws IOException { return write(nfd.getNativeFD(), src); }
return writeGathering(nfd.getNativeFD(), srcs, offset, length);
return VmChannel.writeGathering(nfd.getNativeFD(), srcs, offset, length);
public long writeGathering(ByteBuffer[] srcs, int offset, int length) throws IOException { if (offset + length > srcs.length) throw new IndexOutOfBoundsException("offset + length > srcs.length"); // A gathering write is limited to 16 buffers; when writing, ensure // that we have at least one buf...
} else { method.getDeclaringClass().initialize();
public static Object invoke(VmMethod method, Object o, Object[] args) throws InvocationTargetException { int argCount = method.getNoArguments(); int argsLength = (args == null) ? 0 : args.length; if (argCount != argsLength) { throw new IllegalArgumentException("Invalid number of arguments"); } if (!method.is...
default : throw new IllegalStateException("unknown transfer type " + getTransferType());
default: throw new IllegalStateException("unknown transfer type " + getTransferType()); }
public Object getDataElements(int x, int y, Object obj, DataBuffer data) { int xyOffset = pixelStride * x + scanlineStride * y; int[] totalBandDataOffsets = new int[numBands]; /* Notice that band and bank offsets are different. Band offsets are managed by the sample model, and bank offsets are managed by th...
} catch (ArrayIndexOutOfBoundsException aioobe) { String msg = "While reading data elements, " + "x=" + x + ", y=" + y + ", " + ", xyOffset=" + xyOffset + ", data.getSize()=" + data.getSize() + ": " + aioobe;
catch (ArrayIndexOutOfBoundsException aioobe) { String msg = "While reading data elements, " + "x=" + x + ", y=" + y +", " + ", xyOffset=" + xyOffset + ", data.getSize()=" + data.getSize() + ": " + aioobe;
public Object getDataElements(int x, int y, Object obj, DataBuffer data) { int xyOffset = pixelStride * x + scanlineStride * y; int[] totalBandDataOffsets = new int[numBands]; /* Notice that band and bank offsets are different. Band offsets are managed by the sample model, and bank offsets are managed by th...
int rowSize = w * numBands;
int rowSize = w*numBands; int dataSize = rowSize*h;
public void setDataElements(int x, int y, int w, int h, Object obj, DataBuffer data) { if (!tightPixelPacking) { super.setDataElements(x, y, w, h, obj, data); return; } // using set speedup, we can copy whole rows int rowSize = w * numBands; //int dataSize = rowSize * h; //DataBuffer transferBuffer = Buffers...
DataBuffer transferBuffer = Buffers.createBufferFromData(getTransferType(), obj, dataSize);
public void setDataElements(int x, int y, int w, int h, Object obj, DataBuffer data) { if (!tightPixelPacking) { super.setDataElements(x, y, w, h, obj, data); return; } // using set speedup, we can copy whole rows int rowSize = w * numBands; //int dataSize = rowSize * h; //DataBuffer transferBuffer = Buffers...
scanlineStride = rowSize *= h;
rowSize *= h;
public void setDataElements(int x, int y, int w, int h, Object obj, DataBuffer data) { if (!tightPixelPacking) { super.setDataElements(x, y, w, h, obj, data); return; } // using set speedup, we can copy whole rows int rowSize = w * numBands; //int dataSize = rowSize * h; //DataBuffer transferBuffer = Buffers...
protected AccessibleJMenu(JMenu component)
protected AccessibleJMenu()
protected AccessibleJMenu(JMenu component) { super(component); }
super(component);
protected AccessibleJMenu(JMenu component) { super(component); }
public WinListener(JMenu value0, JPopupMenu value1)
public WinListener(JPopupMenu popup)
public WinListener(JMenu value0, JPopupMenu value1) { }
public void windowClosing(WindowEvent value0)
public void windowClosing(WindowEvent event)
public void windowClosing(WindowEvent value0) { }
menuChangeListener = createMenuChangeListener(); getModel().addChangeListener(menuChangeListener);
public JMenu() { super(); }
getPopupMenu().addSeparator();
public void addSeparator() { }
return null;
return new ActionChangedListener(item);
protected PropertyChangeListener createActionChangeListener(JMenuItem item) { return null; }
return null;
return new JMenuItem(action);
protected JMenuItem createActionComponent(Action action) { return null; }
return null;
return new MenuChangeListener();
private ChangeListener createMenuChangeListener() { return null; }
protected JMenu.WinListener createWinListener(JPopupMenu popup)
protected WinListener createWinListener(JPopupMenu popup)
protected JMenu.WinListener createWinListener(JPopupMenu popup) { return null; }
return null;
return new WinListener(popup);
protected JMenu.WinListener createWinListener(JPopupMenu popup) { return null; }
getModel().setArmed(true); getModel().setPressed(true); try { java.lang.Thread.sleep(time); } catch (java.lang.InterruptedException e) { } getModel().setPressed(false); getModel().setArmed(false); popupMenu.show(this, this.getWidth(), 0);
public void doClick(int time) { }
((MenuListener) ll[i]).menuCanceled(new MenuEvent(this));
((MenuListener) ll[i]).menuCanceled(menuEvent);
protected void fireMenuCanceled() { EventListener[] ll = listenerList.getListeners(MenuListener.class); for (int i = 0; i < ll.length; i++) ((MenuListener) ll[i]).menuCanceled(new MenuEvent(this)); }
((MenuListener) ll[i]).menuDeselected(new MenuEvent(this));
((MenuListener) ll[i]).menuDeselected(menuEvent);
protected void fireMenuDeselected() { EventListener[] ll = listenerList.getListeners(MenuListener.class); for (int i = 0; i < ll.length; i++) ((MenuListener) ll[i]).menuDeselected(new MenuEvent(this)); }
((MenuListener) ll[i]).menuSelected(new MenuEvent(this));
((MenuListener) ll[i]).menuSelected(menuEvent);
protected void fireMenuSelected() { EventListener[] ll = listenerList.getListeners(MenuListener.class); for (int i = 0; i < ll.length; i++) ((MenuListener) ll[i]).menuSelected(new MenuEvent(this)); }
accessibleContext = new AccessibleJMenu(this);
accessibleContext = new AccessibleJMenu();
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJMenu(this); return accessibleContext; }
if (index < 0) throw new IllegalArgumentException("index less than 0");
public JMenuItem getItem(int index) { Component c = popupMenu.getComponentAtIndex(index); if (c instanceof JMenuItem) return (JMenuItem) c; else return null; }
return 0;
return getComponents().length;
public int getItemCount() { return 0; }
popupMenu.insert(new JMenuItem(text), index);
this.insert(new JMenuItem(text), index);
public void insert(String text, int index) { popupMenu.insert(new JMenuItem(text), index); }
if (index < 0) throw new IllegalArgumentException("index less than 0"); getPopupMenu().insert(new JPopupMenu.Separator(), index);
public void insertSeparator(int index) { }
return super.isSelected();
return super.isArmed();
public boolean isSelected() { return super.isSelected(); }
if (changed) { setArmed(true); fireMenuSelected(); int x = 0; int y = 0; if (menuLocation == null) { if (isTopLevelMenu()) y = this.getHeight(); else x = this.getWidth(); getPopupMenu().show(this, x, y); } else getPopupMenu().show(this, menuLocation.x, menuLocation.y); } else { fireMenuDeselected(); popupMenu.setV...
public void menuSelectionChanged(boolean changed) { }
super.setAccelerator(keystroke);
throw new Error("setAccelerator() is not defined for JMenu. Use setMnemonic() instead.");
public void setAccelerator(KeyStroke keystroke) { super.setAccelerator(keystroke); }