bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public Toolkit() { } | public Toolkit() { } | 37,239 |
public void addAWTEventListener(AWTEventListener listener, long eventMask) { // SecurityManager s = System.getSecurityManager(); // if (s != null) // s.checkPermission(AWTPermission("listenToAllAWTEvents")); // FIXME } | public void addAWTEventListener(AWTEventListener listener, long eventMask) { // SecurityManager s = System.getSecurityManager(); // if (s != null) // s.checkPermission(AWTPermission("listenToAllAWTEvents")); // FIXME } | 37,240 |
public void addPropertyChangeListener(String name, PropertyChangeListener pcl) { desktopPropsSupport.addPropertyChangeListener(name, pcl); } | public void addPropertyChangeListener(String name, PropertyChangeListener pcl) { desktopPropsSupport.addPropertyChangeListener(name, pcl); } | 37,241 |
public abstract int checkImage(Image image, int width, int height, ImageObserver observer); | public abstract int checkImage(Image image, int width, int height, ImageObserver observer); | 37,242 |
protected abstract CheckboxMenuItemPeer createCheckboxMenuItem(CheckboxMenuItem target); | protected abstract CheckboxMenuItemPeer createCheckboxMenuItem(CheckboxMenuItem target); | 37,243 |
protected LightweightPeer createComponent(Component target) { return null; } | protected LightweightPeer createComponent(Component target) { return null; } | 37,244 |
public Cursor createCustomCursor(Image cursor, Point hotSpot, String name) { // Presumably the only reason this isn't abstract is for backwards // compatibility? FIXME? return null; } | public Cursor createCustomCursor(Image cursor, Point hotSpot, String name) { // Presumably the only reason this isn't abstract is for backwards // compatibility? FIXME? return null; } | 37,245 |
public DragGestureRecognizer createDragGestureRecognizer(Class recognizer, DragSource ds, Component comp, int actions, DragGestureListener l) { return null; } | public DragGestureRecognizer createDragGestureRecognizer(Class recognizer, DragSource ds, Component comp, int actions, DragGestureListener l) { return null; } | 37,246 |
public abstract DragSourceContextPeer createDragSourceContextPeer(DragGestureEvent e); | public abstract DragSourceContextPeer createDragSourceContextPeer(DragGestureEvent e); | 37,247 |
public AWTEventListener[] getAWTEventListeners() { return null; } | public AWTEventListener[] getAWTEventListeners() { return null; } | 37,248 |
public Dimension getBestCursorSize(int preferredWidth, int preferredHeight) { return new Dimension(0, 0); } | public Dimension getBestCursorSize(int preferredWidth, int preferredHeight) { return new Dimension(0, 0); } | 37,249 |
public static Toolkit getDefaultToolkit() { if (toolkit != null) return toolkit; //final String toolkit_name = (String)AccessController.doPrivileged(new GetPropertyAction("awt.toolkit", default_toolkit_name)); final String toolkit_name = "org.jnode.awt.peer.JNodeToolkit"; //final String toolkit_name ... | public static Toolkit getDefaultToolkit() { if (toolkit != null) return toolkit; //final String toolkit_name = (String)AccessController.doPrivileged(new GetPropertyAction("awt.toolkit", default_toolkit_name)); final String toolkit_name = "org.jnode.awt.peer.JNodeToolkit"; //final String toolkit_name ... | 37,250 |
public static Toolkit getDefaultToolkit() { if (toolkit != null) return toolkit; //final String toolkit_name = (String)AccessController.doPrivileged(new GetPropertyAction("awt.toolkit", default_toolkit_name)); final String toolkit_name = "org.jnode.awt.peer.JNodeToolkit"; //final String toolkit_name ... | public static Toolkit getDefaultToolkit() { if (toolkit != null) return toolkit; //final String toolkit_name = (String)AccessController.doPrivileged(new GetPropertyAction("awt.toolkit", default_toolkit_name)); final String toolkit_name = "org.jnode.awt.peer.JNodeToolkit"; //final String toolkit_name ... | 37,251 |
public static Toolkit getDefaultToolkit() { if (toolkit != null) return toolkit; //final String toolkit_name = (String)AccessController.doPrivileged(new GetPropertyAction("awt.toolkit", default_toolkit_name)); final String toolkit_name = "org.jnode.awt.peer.JNodeToolkit"; //final String toolkit_name ... | public static Toolkit getDefaultToolkit() { if (toolkit != null) return toolkit; //final String toolkit_name = (String)AccessController.doPrivileged(new GetPropertyAction("awt.toolkit", default_toolkit_name)); final String toolkit_name = "org.jnode.awt.peer.JNodeToolkit"; //final String toolkit_name ... | 37,252 |
public static Toolkit getDefaultToolkit() { if (toolkit != null) return toolkit; //final String toolkit_name = (String)AccessController.doPrivileged(new GetPropertyAction("awt.toolkit", default_toolkit_name)); final String toolkit_name = "org.jnode.awt.peer.JNodeToolkit"; //final String toolkit_name ... | public static Toolkit getDefaultToolkit() { if (toolkit != null) return toolkit; //final String toolkit_name = (String)AccessController.doPrivileged(new GetPropertyAction("awt.toolkit", default_toolkit_name)); final String toolkit_name = "org.jnode.awt.peer.JNodeToolkit"; //final String toolkit_name ... | 37,253 |
public final Object getDesktopProperty(String propertyName) { return desktopProperties.get(propertyName); } | public final Object getDesktopProperty(String propertyName) { return desktopProperties.get(propertyName); } | 37,254 |
public boolean getLockingKeyState(int keyCode) { if (keyCode != KeyEvent.VK_CAPS_LOCK && keyCode != KeyEvent.VK_NUM_LOCK && keyCode != KeyEvent.VK_SCROLL_LOCK) throw new IllegalArgumentException(); throw new UnsupportedOperationException(); } | public boolean getLockingKeyState(int keyCode) { if (keyCode != KeyEvent.VK_CAPS_LOCK && keyCode != KeyEvent.VK_NUM_LOCK && keyCode != KeyEvent.VK_SCROLL_LOCK) throw new IllegalArgumentException(); throw new UnsupportedOperationException(); } | 37,255 |
public int getMaximumCursorColors() { return 0; } | public int getMaximumCursorColors() { return 0; } | 37,257 |
public int getMenuShortcutKeyMask() { return Event.CTRL_MASK; } | public int getMenuShortcutKeyMask() { return Event.CTRL_MASK; } | 37,258 |
protected static Container getNativeContainer(Component component) { component = component.getParent(); while (true) { if (component == null) return null; if (!(component instanceof Container)) { component = component.getParent(); continue; } if (component.getPeer() instanceof LightweightPeer) { ... | protected static Container getNativeContainer(Component component) { component = component.getParent(); while (true) { if (component == null) return null; if (!(component instanceof Container)) { component = component.getParent(); continue; } if (component.getPeer() instanceof LightweightPeer) { ... | 37,259 |
protected static Container getNativeContainer(Component component) { component = component.getParent(); while (true) { if (component == null) return null; if (!(component instanceof Container)) { component = component.getParent(); continue; } if (component.getPeer() instanceof LightweightPeer) { ... | protected static Container getNativeContainer(Component component) { component = component.getParent(); while (true) { if (component == null) return null; if (!(component instanceof Container)) { component = component.getParent(); continue; } if (component.getPeer() instanceof LightweightPeer) { ... | 37,260 |
protected static Container getNativeContainer(Component component) { component = component.getParent(); while (true) { if (component == null) return null; if (!(component instanceof Container)) { component = component.getParent(); continue; } if (component.getPeer() instanceof LightweightPeer) { ... | protected static Container getNativeContainer(Component component) { component = component.getParent(); while (true) { if (component == null) return null; if (!(component instanceof Container)) { component = component.getParent(); continue; } if (component.getPeer() instanceof LightweightPeer) { ... | 37,261 |
protected static Container getNativeContainer(Component component) { component = component.getParent(); while (true) { if (component == null) return null; if (!(component instanceof Container)) { component = component.getParent(); continue; } if (component.getPeer() instanceof LightweightPeer) { ... | protected static Container getNativeContainer(Component component) { component = component.getParent(); while (true) { if (component == null) return null; if (!(component instanceof Container)) { component = component.getParent(); continue; } if (component.getPeer() instanceof LightweightPeer) { ... | 37,262 |
public abstract PrintJob getPrintJob(Frame frame, String title, Properties props); | public abstract PrintJob getPrintJob(Frame frame, String title, Properties props); | 37,263 |
public static String getProperty(String key, String def) { return props.getProperty(key, def); } | public static String getProperty(String key, String def) { return props.getProperty(key, def); } | 37,264 |
public PropertyChangeListener[] getPropertyChangeListeners() { return desktopPropsSupport.getPropertyChangeListeners(); } | public PropertyChangeListener[] getPropertyChangeListeners() { return desktopPropsSupport.getPropertyChangeListeners(); } | 37,265 |
public Insets getScreenInsets(GraphicsConfiguration gc) { return null; } | public Insets getScreenInsets(GraphicsConfiguration gc) { return null; } | 37,266 |
public final EventQueue getSystemEventQueue() { return getSystemEventQueueImpl(); } | public final EventQueue getSystemEventQueue() { return getSystemEventQueueImpl(); } | 37,267 |
public Clipboard getSystemSelection() { return null; } | public Clipboard getSystemSelection() { return null; } | 37,268 |
protected void initializeDesktopProperties() { // Overridden by toolkit implementation? } | protected void initializeDesktopProperties() { // Overridden by toolkit implementation? } | 37,269 |
public boolean isDynamicLayoutActive() { return false; } | public boolean isDynamicLayoutActive() { return false; } | 37,270 |
protected boolean isDynamicLayoutSet() { return false; } | protected boolean isDynamicLayoutSet() { return false; } | 37,271 |
public boolean isFrameStateSupported(int state) { return false; } | public boolean isFrameStateSupported(int state) { return false; } | 37,272 |
protected Object lazilyLoadDesktopProperty(String name) { // FIXME - what is this?? return null; } | protected Object lazilyLoadDesktopProperty(String name) { // FIXME - what is this?? return null; } | 37,273 |
protected void loadSystemColors(int systemColors[]) { // XXX Implement. } | protected void loadSystemColors(int systemColors[]) { // XXX Implement. } | 37,274 |
public abstract boolean prepareImage(Image image, int width, int height, ImageObserver observer); | public abstract boolean prepareImage(Image image, int width, int height, ImageObserver observer); | 37,275 |
public void removeAWTEventListener(AWTEventListener listener) { // FIXME } | public void removeAWTEventListener(AWTEventListener listener) { // FIXME } | 37,276 |
public void removePropertyChangeListener(String name, PropertyChangeListener pcl) { desktopPropsSupport.removePropertyChangeListener(name, pcl); } | public void removePropertyChangeListener(String name, PropertyChangeListener pcl) { desktopPropsSupport.removePropertyChangeListener(name, pcl); } | 37,277 |
protected final void setDesktopProperty(String name, Object newValue) { Object oldValue = getDesktopProperty(name); desktopProperties.put(name, newValue); desktopPropsSupport.firePropertyChange(name, oldValue, newValue); } | protected final void setDesktopProperty(String name, Object newValue) { Object oldValue = getDesktopProperty(name); desktopProperties.put(name, newValue); desktopPropsSupport.firePropertyChange(name, oldValue, newValue); } | 37,278 |
public void setDynamicLayout(boolean dynamic) { } | public void setDynamicLayout(boolean dynamic) { } | 37,279 |
public void setLockingKeyState(int keyCode, boolean on) { if (keyCode != KeyEvent.VK_CAPS_LOCK && keyCode != KeyEvent.VK_NUM_LOCK && keyCode != KeyEvent.VK_SCROLL_LOCK) throw new IllegalArgumentException(); throw new UnsupportedOperationException(); } | public void setLockingKeyState(int keyCode, boolean on) { if (keyCode != KeyEvent.VK_CAPS_LOCK && keyCode != KeyEvent.VK_NUM_LOCK && keyCode != KeyEvent.VK_SCROLL_LOCK) throw new IllegalArgumentException(); throw new UnsupportedOperationException(); } | 37,280 |
public Enumeration children(); | public Enumeration children(); | 37,282 |
public abstract boolean getAllowsChildren(); | public abstract boolean getAllowsChildren(); | 37,283 |
public TreeNode getChildAt(int index); | public TreeNode getChildAt(int index); | 37,284 |
public int getChildCount(); | public int getChildCount(); | 37,285 |
public int getIndex(TreeNode node); | public int getIndex(TreeNode node); | 37,286 |
public TreeNode getParent(); | public TreeNode getParent(); | 37,287 |
public boolean isLeaf(); | public boolean isLeaf(); | 37,288 |
protected int elementCountToTag(HTMLDocument doc, int offset, HTML.Tag tag) { // FIXME: Not implemented. return -1; } | protected int elementCountToTag(HTMLDocument doc, int offset, HTML.Tag tag) { // FIXME: Not implemented. Element root = doc.getDefaultRootElement(); int num = -1; Element next = root.getElement(root.getElementIndex(offset)); while (!next.isLeaf()) { num++; i... | 37,289 |
protected Element findElementMatchingTag(HTMLDocument doc, int offset, HTML.Tag tag) { // FIXME: Not implemented. return null; } | protected Element findElementMatchingTag(HTMLDocument doc, int offset, HTML.Tag tag) { // FIXME: Not implemented. Element element = doc.getDefaultRootElement(); Element tagElement = null; while (element != null) { Object otag = element.getAttributes... | 37,290 |
protected Element[] getElementsAt(HTMLDocument doc, int offset) { // More efficent than using a Vector Element[] roots = doc.getRootElements(); int size = 0; int rootSize = roots.length; // Get total size for (int i = 0;... | protected Element[] getElementsAt(HTMLDocument doc, int offset) { // More efficent than using a Vector Element[] roots = doc.getRootElements(); int size = 0; int rootSize = roots.length; // Get total size for (int i = 0;... | 37,291 |
protected HTMLDocument getHTMLDocument(JEditorPane e) { return (HTMLDocument) e.getDocument(); } | protected HTMLDocument getHTMLDocument(JEditorPane e) { Document d = e.getDocument(); if (d instanceof HTMLDocument) return (HTMLDocument) d; throw new IllegalArgumentException("Document is not a HTMLDocument."); } | 37,292 |
protected HTMLEditorKit getHTMLEditorKit(JEditorPane e) { return (HTMLEditorKit) e.getEditorKit(); } | protected HTMLEditorKit getHTMLEditorKit(JEditorPane e) { EditorKit d = e.getEditorKit(); if (d instanceof HTMLEditorKit) return (HTMLEditorKit) d; throw new IllegalArgumentException("EditorKit is not a HTMLEditorKit."); } | 37,293 |
public void actionPerformed(ActionEvent ae) { // FIXME: Not implemented. } | Object source = ae.getSource(); if (source instanceof JEditorPane) { JEditorPane pane = ((JEditorPane) source); Document d = pane.getDocument(); if (d instanceof HTMLDocument) insertHTML(pane, (HTMLDocument) d, 0, html, 0, 0, addTag); } Object source = ae.getSource(); if (source instanceof JEditorPane) { JEditorPane ... | 37,294 |
protected void insertAtBoundary(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag) { ... | /* As its name implies, this protected method is used when HTML is inserted at a boundary. (A boundary in this case is an offset in doc that exactly matches the beginning offset of the parentTag.) It performs the extra work required to keep the tag stack in shape and then calls insertHTML(). The editor and doc argu- me... | 37,295 |
protected void insertHTML(JEditorPane editor, HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag addTag) { try { super.getHTMLEditorKit(editor).insertHTML(doc, of... | protected void insertHTML(JEditorPane editor, HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag addTag) { try { super.getHTMLEditorKit(editor).insertHTML(doc, of... | 37,296 |
protected void insertHTML(JEditorPane editor, HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag addTag) { try { super.getHTMLEditorKit(editor).insertHTML(doc, of... | protected void insertHTML(JEditorPane editor, HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag addTag) { try { super.getHTMLEditorKit(editor).insertHTML(doc, of... | 37,297 |
protected void insertHTML(JEditorPane editor, HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag addTag) { try { super.getHTMLEditorKit(editor).insertHTML(doc, of... | protected void insertHTML(JEditorPane editor, HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag addTag) { try { super.getHTMLEditorKit(editor).insertHTML(doc, of... | 37,298 |
public LinkController() { // FIXME: Anything to do here? } | super(); super(); super(); super(); super(); super(); publicsuper(); LinkController()super(); super(); super(); super(); super(); super(); super(); {super(); super(); super(); super(); super(); super(); super(); super(); //super(); FIXME:super(); Anythingsuper(); tosuper(); dosuper(); here?super(); super(); super(); su... | 37,299 |
public ParserCallback() { // TODO: What to do here, if anything? } | public ParserCallback() { // TODO: What to do here, if anything? } | 37,304 |
public void flush() throws BadLocationException { // TODO: What to do here, if anything? } | public void flush() throws BadLocationException { // TODO: What to do here, if anything? } | 37,305 |
public void handleComment(char[] comment, int position) { // TODO: What to do here, if anything? } | public void handleComment(char[] comment, int position) { // TODO: What to do here, if anything? } | 37,306 |
public void handleEndOfLineString(String end_of_line) { // TODO: What to do here, if anything? } | public void handleEndOfLineString(String end_of_line) { // TODO: What to do here, if anything? } | 37,307 |
public void handleEndTag(HTML.Tag tag, int position) { // TODO: What to do here, if anything? } | public void handleEndTag(HTML.Tag tag, int position) { // TODO: What to do here, if anything? } | 37,308 |
public void handleError(String message, int position) { // TODO: What to do here, if anything? } | public void handleError(String message, int position) { // TODO: What to do here, if anything? } | 37,309 |
public void handleSimpleTag(HTML.Tag tag, MutableAttributeSet attributes, int position) { // TODO: What to do here, if anything? } | public void handleSimpleTag(HTML.Tag tag, MutableAttributeSet attributes, int position) { // TODO: What to do here, if anything? } | 37,310 |
public void handleStartTag(HTML.Tag tag, MutableAttributeSet attributes, int position) { // TODO: What to do here, if anything? } | public void handleStartTag(HTML.Tag tag, MutableAttributeSet attributes, int position) { // TODO: What to do here, if anything? } | 37,311 |
public void handleText(char[] text, int position) { // TODO: What to do here, if anything? } | public void handleText(char[] text, int position) { // TODO: What to do here, if anything? } | 37,312 |
protected void createInputAttributes(Element element, MutableAttributeSet set) { // FIXME: Not implemented. super.createInputAttributes(element, set); } | protected void createInputAttributes(Element element, MutableAttributeSet set) { // FIXME: Not implemented. set.addAttributes(element.getAttributes()); } | 37,314 |
public void deinstall(JEditorPane c) { // FIXME: Need to uninstall all listeners attached. super.deinstall(c); } | publicvoiddeinstall(JEditorPanec){//FIXME:Needtouninstallalllistenersattached.super.deinstall(c);} | 37,315 |
public Action[] getActions() { // FIXME: should return different actions? return super.getActions(); } | public Action[] getActions() { // FIXME: should return different actions? return TextAction.augmentList(super.getActions(), defaultActions); } | 37,317 |
public String getContentType() { return "text/html"; } | public String getContentType() { return contentType; } | 37,318 |
public MutableAttributeSet getInputAttributes() { // FIXME: Anything else to do here? return super.getInputAttributes(); } | public MutableAttributeSet getInputAttributes() { // FIXME: Anything else to do here? return inputAttributes; } | 37,319 |
protected Parser getParser() { return new ParserDelegator(); } | protected Parser getParser() { if (parser == null) parser = new ParserDelegator(); return parser; } | 37,320 |
public void insertHTML(HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag insertTag) throws BadLocationException, IOException { // FIXME: Not implemented. } | Parser parser = getParser(); if (offset < 0 || offset > doc.getLength()) throw new BadLocationException("Bad location", offset); if (parser == null) throw new IOException("Parser is null."); ParserCallback pc = ((HTMLDocument) doc).getReader (offset, popDepth, pushDepth, insertTag); parser.parse(new StringReader(h... | 37,321 |
public void install(JEditorPane c) { // FIXME: Anything else to do here? super.install(c); } | publicvoidinstall(JEditorPanec){//FIXME:Anythingelsetodohere?super.install(c);} | 37,322 |
public void read(Reader in, Document doc, int pos) throws IOException, BadLocationException { // FIXME: Not implemented. } | if (doc instanceof HTMLDocument) { Parser parser = getParser(); if (pos < 0 || pos > doc.getLength()) throw new BadLocationException("Bad location", pos); if (parser == null) throw new IOException("Parser is null."); HTMLDocument hd = ((HTMLDocument) doc); hd.setBase(editorPane.getPage()); ParserCallback pc = hd.getRe... | 37,324 |
public void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationException { // FIXME: Not implemented. } | if (doc instanceof HTMLDocument) { out.write(doc.getText(pos, len)); } else super.write(out, doc, pos, len); if (doc instanceof HTMLDocument) { out.write(doc.getText(pos, len)); } else super.write(out, doc, pos, len); publicif (doc instanceof HTMLDocument) { out.write(doc.getText(pos, len)); } else super.write(out, ... | 37,325 |
public Dimension getMinimumSize(JComponent c) { Dimension d = getDisplaySize(); int arrowButtonWidth = d.height; Dimension result = new Dimension(d.width + arrowButtonWidth, d.height); return result; } | public Dimension getMinimumSize(JComponent c) { Dimension d = getDisplaySize(); int arrowButtonWidth = d.height; Dimension result = new Dimension(d.width + arrowButtonWidth, d.height); return result; } | 37,334 |
public static Binding[] extract(Any a) { try { return ((BindingListHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION("Binding list expected"); } } | public static Binding[] extract(Any a) { try { return ((BindingListHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION("Binding list expected"); bad.initCause(ex); throw bad; } } | 37,336 |
public PrivateKey decodePrivateKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger version, p, q, g, x; DERReader der = new DERReader(input); try { DERValue derPKI = der.read(); DerUtil.checkIsConstructed(derPKI, "... | public PrivateKey decodePrivateKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger version, p, q, g, x; DERReader der = new DERReader(input); try { DERValue derPKI = der.read(); DerUtil.checkIsConstructed(derPKI, "... | 37,337 |
public byte[] encodePrivateKey(PrivateKey key) { if (! (key instanceof DSSPrivateKey)) throw new InvalidParameterException("Wrong key type"); DERValue derVersion = new DERValue(DER.INTEGER, BigInteger.ZERO); DERValue derOID = new DERValue(DER.OBJECT_IDENTIFIER, DSA_ALG_OID); DSSPrivateKey pk = (DSSP... | public byte[] encodePrivateKey(PrivateKey key) { if (! (key instanceof DSSPrivateKey)) throw new InvalidParameterException("Wrong key type"); DERValue derVersion = new DERValue(DER.INTEGER, BigInteger.ZERO); DERValue derOID = new DERValue(DER.OBJECT_IDENTIFIER, DSA_ALG_OID); DSSPrivateKey pk = (DSSP... | 37,339 |
public DragSourceDropEvent (DragSourceContext context) { super (context); this.dropAction = 0; this.success = false; } | public DragSourceDropEvent (DragSourceContext context) { super (context); this.dropAction = 0; this.dropSuccess = false; } | 37,342 |
public boolean getDropSuccess() { return success; } | public boolean getDropSuccess() { return dropSuccess; } | 37,343 |
public final Class getCategory() { return JobKOctetsSupported.class; } | public Class getCategory() { return JobKOctetsSupported.class; } | 37,345 |
public final String getName() { return "job-k-octets-supported"; } | public String getName() { return "job-k-octets-supported"; } | 37,346 |
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, X.509 Certificates"); // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Sig... | public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores"); // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provi... | 37,347 |
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, X.509 Certificates"); // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Sig... | public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, X.509 Certificates"); // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Sig... | 37,348 |
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, X.509 Certificates"); // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Sig... | public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, X.509 Certificates"); // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Sig... | 37,349 |
public JComboBox(ComboBoxModel model) { setEditable(false); setEnabled(true); setMaximumRowCount(DEFAULT_MAXIMUM_ROW_COUNT); setModel(model); setActionCommand("comboBoxChanged"); // by default set selected item to the first element in the combo box if (getItemCount() != 0) setSelectedIt... | public JComboBox(ComboBoxModel model) { setEditable(false); setEnabled(true); setMaximumRowCount(DEFAULT_MAXIMUM_ROW_COUNT); setModel(model); setActionCommand("comboBoxChanged"); // by default set selected item to the first element in the combo box if (getItemCount() != 0) setSelectedIt... | 37,350 |
public Object getItemAt(int index) { return ((MutableComboBoxModel) dataModel).getElementAt(index); } | public Object getItemAt(int index) { return dataModel.getElementAt(index); } | 37,352 |
public int getItemCount() { return ((DefaultComboBoxModel) dataModel).getSize(); } | public int getItemCount() { return dataModel.getSize(); } | 37,353 |
public int getSelectedIndex() { Object selectedItem = getSelectedItem(); if (selectedItem != null && (dataModel instanceof DefaultComboBoxModel)) return ((DefaultComboBoxModel) dataModel).getIndexOf(selectedItem); return -1; } | public int getSelectedIndex() { Object selectedItem = getSelectedItem(); if (selectedItem != null) { if(dataModel instanceof DefaultComboBoxModel) { return ((DefaultComboBoxModel) dataModel).getIndexOf(selectedItem); return -1; } | 37,354 |
public Object getSelectedItem() { Object item = dataModel.getSelectedItem(); if (item == null && getItemCount() != 0) item = getItemAt(0); return item; } | public Object getSelectedItem() { Object item = dataModel.getSelectedItem(); if (item == null && getItemCount() != 0) item = getItemAt(0); return item; } | 37,356 |
public Object[] getSelectedObjects() { Object selectedObject = getSelectedItem(); return new Object[] { selectedObject }; } | public Object[] getSelectedObjects() { Object selectedObject = getSelectedItem(); return new Object[] { selectedObject }; } | 37,357 |
public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) ((DefaultComboBoxModel) dataModel).removeAllElements(); } | public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) { ((DefaultComboBoxModel) dataModel).removeAllElements(); } | 37,359 |
public void setEditable(boolean editable) { if (this.isEditable != editable) { this.isEditable = editable; firePropertyChange(EDITABLE_CHANGED_PROPERTY, ! isEditable, isEditable); } } | public void setEditable(boolean editable) { if (isEditable != editable) { this.isEditable = editable; firePropertyChange(EDITABLE_CHANGED_PROPERTY, ! isEditable, isEditable); } } | 37,363 |
public void setEditable(boolean editable) { if (this.isEditable != editable) { this.isEditable = editable; firePropertyChange(EDITABLE_CHANGED_PROPERTY, ! isEditable, isEditable); } } | public void setEditable(boolean editable) { if (this.isEditable != editable) { this.isEditable = editable; firePropertyChange(EDITABLE_CHANGED_PROPERTY, ! isEditable, isEditable); } } | 37,364 |
public void setLightWeightPopupEnabled(boolean enabled) { this.lightWeightPopupEnabled = enabled; } | public void setLightWeightPopupEnabled(boolean enabled) { lightWeightPopupEnabled = enabled; } | 37,365 |
public void setMaximumRowCount(int rowCount) { if (maximumRowCount != rowCount) { int oldMaximumRowCount = this.maximumRowCount; this.maximumRowCount = rowCount; firePropertyChange(MAXIMUM_ROW_COUNT_CHANGED_PROPERTY, oldMaximumRowCount, this.maximumRowCount); } } | public void setMaximumRowCount(int rowCount) { if (maximumRowCount != rowCount) { int oldMaximumRowCount = this.maximumRowCount; this.maximumRowCount = rowCount; firePropertyChange(MAXIMUM_ROW_COUNT_CHANGED_PROPERTY, oldMaximumRowCount, this.maximumRowCount); } } | 37,366 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.