bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public static void createChildren(DefaultMutableTreeNode parent, Object children) { if (children instanceof Hashtable) { Hashtable tab = (Hashtable) children; Enumeration e = tab.keys(); while (e.hasMoreElements()) { ... | public static void createChildren(DefaultMutableTreeNode parent, Object children) { if (children instanceof Hashtable) { Hashtable tab = (Hashtable) children; Enumeration e = tab.keys(); while (e.hasMoreElements()) { ... | 9,814 |
public static void createChildren(DefaultMutableTreeNode parent, Object children) { if (children instanceof Hashtable) { Hashtable tab = (Hashtable) children; Enumeration e = tab.keys(); while (e.hasMoreElements()) { ... | public static void createChildren(DefaultMutableTreeNode parent, Object children) { if (children instanceof Hashtable) { Hashtable tab = (Hashtable) children; Enumeration e = tab.keys(); while (e.hasMoreElements()) { ... | 9,815 |
public static void createChildren(DefaultMutableTreeNode parent, Object children) { if (children instanceof Hashtable) { Hashtable tab = (Hashtable) children; Enumeration e = tab.keys(); while (e.hasMoreElements()) { ... | public static void createChildren(DefaultMutableTreeNode parent, Object children) { if (children instanceof Hashtable) { Hashtable tab = (Hashtable) children; Enumeration e = tab.keys(); while (e.hasMoreElements()) { ... | 9,816 |
public static void createChildren(DefaultMutableTreeNode parent, Object children) { if (children instanceof Hashtable) { Hashtable tab = (Hashtable) children; Enumeration e = tab.keys(); while (e.hasMoreElements()) { ... | public static void createChildren(DefaultMutableTreeNode parent, Object children) { if (children instanceof Hashtable) { Hashtable tab = (Hashtable) children; Enumeration e = tab.keys(); while (e.hasMoreElements()) { ... | 9,817 |
public boolean isLeaf() { return (childValue == null || !(childValue instanceof Hashtable || childValue instanceof Vector || childValue.getClass() .isArray())); } | public boolean isLeaf() { return (childValue == null || !(childValue instanceof Hashtable || childValue instanceof Vector || childValue.getClass() .isArray())); } | 9,818 |
public boolean isLeaf() { return (childValue == null || !(childValue instanceof Hashtable || childValue instanceof Vector || childValue.getClass() .isArray())); } | public boolean isLeaf() { return (childValue == null || !(childValue instanceof Hashtable || childValue instanceof Vector || childValue.getClass() .isArray())); } | 9,819 |
public void addSelectionPaths(TreePath[] paths) { // we don't allow selections in this class } | public void addSelectionPaths(TreePath[] paths) { // we don't allow selections in this class } | 9,820 |
public void removeSelectionPaths(TreePath[] paths) { // we don't allow selections in this class } | public void removeSelectionPaths(TreePath[] paths) { // we don't allow selections in this class } | 9,821 |
public void setSelectionPaths(TreePath[] paths) { // we don't allow selections in this class } | public void setSelectionPaths(TreePath[] paths) { // we don't allow selections in this class } | 9,822 |
public void treeNodesChanged(TreeModelEvent ev) { // nothing to do here } | public void treeNodesChanged(TreeModelEvent ev) { // nothing to do here } | 9,823 |
public void treeStructureChanged(TreeModelEvent ev) { // set state of new path TreePath path = ev.getTreePath(); setExpandedState(path, isExpanded(path)); } | public void treeStructureChanged(TreeModelEvent ev) { // set state of new path TreePath path = ev.getTreePath(); setExpandedState(path, isExpanded(path)); } | 9,824 |
public void valueChanged(TreeSelectionEvent ev) { TreeSelectionEvent rewritten = (TreeSelectionEvent) ev .cloneWithSource(JTree.this); fireValueChanged(rewritten); JTree.this.repaint(); } | public void valueChanged(TreeSelectionEvent ev) { TreeSelectionEvent rewritten = (TreeSelectionEvent) ev .cloneWithSource(JTree.this); fireValueChanged(rewritten); JTree.this.repaint(); } | 9,825 |
public void valueChanged(TreeSelectionEvent ev) { TreeSelectionEvent rewritten = (TreeSelectionEvent) ev .cloneWithSource(JTree.this); fireValueChanged(rewritten); JTree.this.repaint(); } | public void valueChanged(TreeSelectionEvent ev) { TreeSelectionEvent rewritten = (TreeSelectionEvent) ev .cloneWithSource(JTree.this); fireValueChanged(rewritten); JTree.this.repaint(); } | 9,826 |
public String convertValueToText(Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { return value.toString(); } | public String convertValueToText(Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { return value.toString(); } | 9,827 |
protected static TreeModel createTreeModel(Object value) { return new DefaultTreeModel(new DynamicUtilTreeNode(value, value)); } | protected static TreeModel createTreeModel(Object value) { return new DefaultTreeModel(new DynamicUtilTreeNode(value, value)); } | 9,828 |
protected static TreeModel createTreeModel(Object value) { return new DefaultTreeModel(new DynamicUtilTreeNode(value, value)); } | protected static TreeModel createTreeModel(Object value) { return new DefaultTreeModel(new DynamicUtilTreeNode(value, value)); } | 9,829 |
private void doExpandParents(TreePath path, boolean state) { TreePath parent = path.getParentPath(); if (!isExpanded(parent) && parent != null) doExpandParents(parent, false); nodeStates.put(path, state ? EXPANDED : COLLAPSED); } | private void doExpandParents(TreePath path, boolean state) { TreePath parent = path.getParentPath(); if (!isExpanded(parent) && parent != null) doExpandParents(parent, false); nodeStates.put(path, state ? EXPANDED : COLLAPSED); } | 9,830 |
public AccessibleContext getAccessibleContext() { return null; } | public AccessibleContext getAccessibleContext() { return null; } | 9,831 |
public TreePath getClosestPathForLocation(int x, int y) { TreeUI ui = getUI(); if (ui != null) return ui.getClosestPathForLocation(this, x, y); return null; } | public TreePath getClosestPathForLocation(int x, int y) { TreeUI ui = getUI(); if (ui != null) return ui.getClosestPathForLocation(this, x, y); return null; } | 9,832 |
protected static TreeModel getDefaultTreeModel() { DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root node"); DefaultMutableTreeNode child1 = new DefaultMutableTreeNode( "Child node 1"); DefaultMutableTreeNode child11 = new DefaultMutableTreeNode( "Child node 1.1"); DefaultMutableTreeNode chi... | protected static TreeModel getDefaultTreeModel() { DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root node"); DefaultMutableTreeNode child1 = new DefaultMutableTreeNode( "Child node 1"); DefaultMutableTreeNode child11 = new DefaultMutableTreeNode( "Child node 1.1"); DefaultMutableTreeNode chi... | 9,833 |
protected static TreeModel getDefaultTreeModel() { DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root node"); DefaultMutableTreeNode child1 = new DefaultMutableTreeNode( "Child node 1"); DefaultMutableTreeNode child11 = new DefaultMutableTreeNode( "Child node 1.1"); DefaultMutableTreeNode chi... | protected static TreeModel getDefaultTreeModel() { DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root node"); DefaultMutableTreeNode child1 = new DefaultMutableTreeNode( "Child node 1"); DefaultMutableTreeNode child11 = new DefaultMutableTreeNode( "Child node 1.1"); DefaultMutableTreeNode chi... | 9,834 |
protected Enumeration getDescendantToggledPaths(TreePath parent) { if (parent == null) return null; Enumeration nodes = nodeStates.keys(); Vector result = new Vector(); while (nodes.hasMoreElements()) { TreePath path = (TreePath) nodes.nextElement(); if (path.isDescendant(parent))... | protected Enumeration getDescendantToggledPaths(TreePath parent) { if (parent == null) return null; Enumeration nodes = nodeStates.keys(); Vector result = new Vector(); while (nodes.hasMoreElements()) { TreePath path = (TreePath) nodes.nextElement(); if (path.isDescendant(parent))... | 9,835 |
public TreePath getNextMatch(String prefix, int startingRow, Position.Bias bias) { if (prefix == null) throw new IllegalArgumentException( "The argument 'prefix' must not be" + " null."); if (startingRow < 0) throw new IllegalArgumentException( "The argument 'startingR... | public TreePath getNextMatch(String prefix, int startingRow, Position.Bias bias) { if (prefix == null) throw new IllegalArgumentException( "The argument 'prefix' must not be" + " null."); if (startingRow < 0) throw new IllegalArgumentException( "The argument 'startingR... | 9,836 |
public TreePath getNextMatch(String prefix, int startingRow, Position.Bias bias) { if (prefix == null) throw new IllegalArgumentException( "The argument 'prefix' must not be" + " null."); if (startingRow < 0) throw new IllegalArgumentException( "The argument 'startingR... | public TreePath getNextMatch(String prefix, int startingRow, Position.Bias bias) { if (prefix == null) throw new IllegalArgumentException( "The argument 'prefix' must not be" + " null."); if (startingRow < 0) throw new IllegalArgumentException( "The argument 'startingR... | 9,837 |
public TreePath getNextMatch(String prefix, int startingRow, Position.Bias bias) { if (prefix == null) throw new IllegalArgumentException( "The argument 'prefix' must not be" + " null."); if (startingRow < 0) throw new IllegalArgumentException( "The argument 'startingR... | public TreePath getNextMatch(String prefix, int startingRow, Position.Bias bias) { if (prefix == null) throw new IllegalArgumentException( "The argument 'prefix' must not be" + " null."); if (startingRow < 0) throw new IllegalArgumentException( "The argument 'startingR... | 9,838 |
public TreePath getNextMatch(String prefix, int startingRow, Position.Bias bias) { if (prefix == null) throw new IllegalArgumentException( "The argument 'prefix' must not be" + " null."); if (startingRow < 0) throw new IllegalArgumentException( "The argument 'startingR... | public TreePath getNextMatch(String prefix, int startingRow, Position.Bias bias) { if (prefix == null) throw new IllegalArgumentException( "The argument 'prefix' must not be" + " null."); if (startingRow < 0) throw new IllegalArgumentException( "The argument 'startingR... | 9,839 |
public TreePath getNextMatch(String prefix, int startingRow, Position.Bias bias) { if (prefix == null) throw new IllegalArgumentException( "The argument 'prefix' must not be" + " null."); if (startingRow < 0) throw new IllegalArgumentException( "The argument 'startingR... | public TreePath getNextMatch(String prefix, int startingRow, Position.Bias bias) { if (prefix == null) throw new IllegalArgumentException( "The argument 'prefix' must not be" + " null."); if (startingRow < 0) throw new IllegalArgumentException( "The argument 'startingR... | 9,840 |
public TreePath getNextMatch(String prefix, int startingRow, Position.Bias bias) { if (prefix == null) throw new IllegalArgumentException( "The argument 'prefix' must not be" + " null."); if (startingRow < 0) throw new IllegalArgumentException( "The argument 'startingR... | public TreePath getNextMatch(String prefix, int startingRow, Position.Bias bias) { if (prefix == null) throw new IllegalArgumentException( "The argument 'prefix' must not be" + " null."); if (startingRow < 0) throw new IllegalArgumentException( "The argument 'startingR... | 9,841 |
protected TreePath[] getPathBetweenRows(int index0, int index1) { TreeUI ui = getUI(); if (ui == null) return null; int minIndex = Math.min(index0, index1); int maxIndex = Math.max(index0, index1); TreePath[] paths = new TreePath[maxIndex - minIndex + 1]; for (int i = minIndex; i <... | protected TreePath[] getPathBetweenRows(int index0, int index1) { TreeUI ui = getUI(); if (ui == null) return null; int minIndex = Math.min(index0, index1); int maxIndex = Math.max(index0, index1); TreePath[] paths = new TreePath[maxIndex - minIndex + 1]; for (int i = minIndex; i <... | 9,842 |
protected TreePath[] getPathBetweenRows(int index0, int index1) { TreeUI ui = getUI(); if (ui == null) return null; int minIndex = Math.min(index0, index1); int maxIndex = Math.max(index0, index1); TreePath[] paths = new TreePath[maxIndex - minIndex + 1]; for (int i = minIndex; i <... | protected TreePath[] getPathBetweenRows(int index0, int index1) { TreeUI ui = getUI(); if (ui == null) return null; int minIndex = Math.min(index0, index1); int maxIndex = Math.max(index0, index1); TreePath[] paths = new TreePath[maxIndex - minIndex + 1]; for (int i = minIndex; i <... | 9,843 |
protected TreePath[] getPathBetweenRows(int index0, int index1) { TreeUI ui = getUI(); if (ui == null) return null; int minIndex = Math.min(index0, index1); int maxIndex = Math.max(index0, index1); TreePath[] paths = new TreePath[maxIndex - minIndex + 1]; for (int i = minIndex; i <... | protected TreePath[] getPathBetweenRows(int index0, int index1) { TreeUI ui = getUI(); if (ui == null) return null; int minIndex = Math.min(index0, index1); int maxIndex = Math.max(index0, index1); TreePath[] paths = new TreePath[maxIndex - minIndex + 1]; for (int i = minIndex; i <... | 9,844 |
public Dimension getPreferredScrollableViewportSize() { return new Dimension (getPreferredSize().width, getVisibleRowCount()*getRowHeight()); } | public Dimension getPreferredScrollableViewportSize() { return new Dimension (getPreferredSize().width, getVisibleRowCount()*getRowHeight()); } | 9,845 |
public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) { return 1; } | public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) { return 1; } | 9,846 |
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()).getWidth() > getPreferredSize().width; return false; } | 9,847 |
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()).getWidth() > getPreferredSize().width; return false; } | 9,848 |
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()).getHeight() > getPreferredSize().height; return false; } | 9,849 |
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()).getHeight() > getPreferredSize().height; return false; } | 9,850 |
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { return 1; } | public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { return 1; } | 9,851 |
public TreeSelectionListener[] getTreeSelectionListeners() { return (TreeSelectionListener[]) getListeners(TreeSelectionListener.class); } | public TreeSelectionListener[] getTreeSelectionListeners() { return (TreeSelectionListener[]) getListeners(TreeSelectionListener.class); } | 9,852 |
public TreeWillExpandListener[] getTreeWillExpandListeners() { return (TreeWillExpandListener[]) getListeners(TreeWillExpandListener.class); } | public TreeWillExpandListener[] getTreeWillExpandListeners() { return (TreeWillExpandListener[]) getListeners(TreeWillExpandListener.class); } | 9,853 |
public TreeUI getUI() { return (TreeUI) ui; } | public TreeUI getUI() { return (TreeUI) ui; } | 9,854 |
public String getUIClassID() { return "TreeUI"; } | public String getUIClassID() { return "TreeUI"; } | 9,855 |
protected boolean removeDescendantSelectedPaths(TreePath path, boolean includeSelected) { boolean removedSomething = false; TreePath[] selected = getSelectionPaths(); for (int index = 0; index < selected.length; index++) { if ((selected[index] =... | protected boolean removeDescendantSelectedPaths(TreePath path, boolean includeSelected) { boolean removedSomething = false; TreePath[] selected = getSelectionPaths(); for (int index = 0; index < selected.length; index++) { if ((selected[index] =... | 9,856 |
public void setDragEnabled(boolean enabled) { dragEnabled = enabled; } | publicvoidsetDragEnabled(booleanenabled){dragEnabled=enabled;} | 9,857 |
public void setInvokesStopCellEditing(boolean invoke) { if (invokesStopCellEditing == invoke) return; boolean oldValue = invokesStopCellEditing; invokesStopCellEditing = invoke; firePropertyChange(INVOKES_STOP_CELL_EDITING_PROPERTY, oldValue, invoke); } | public void setInvokesStopCellEditing(boolean invoke) { if (invokesStopCellEditing == invoke) return; boolean oldValue = invokesStopCellEditing; invokesStopCellEditing = invoke; firePropertyChange(INVOKES_STOP_CELL_EDITING_PROPERTY, oldValue, invoke); } | 9,858 |
public void setInvokesStopCellEditing(boolean invoke) { if (invokesStopCellEditing == invoke) return; boolean oldValue = invokesStopCellEditing; invokesStopCellEditing = invoke; firePropertyChange(INVOKES_STOP_CELL_EDITING_PROPERTY, oldValue, invoke); } | public void setInvokesStopCellEditing(boolean invoke) { if (invokesStopCellEditing == invoke) return; boolean oldValue = invokesStopCellEditing; invokesStopCellEditing = invoke; firePropertyChange(INVOKES_STOP_CELL_EDITING_PROPERTY, oldValue, invoke); } | 9,859 |
public void setToggleClickCount(int count) { if (toggleClickCount == count) return; int oldValue = toggleClickCount; toggleClickCount = count; firePropertyChange(TOGGLE_CLICK_COUNT_PROPERTY, oldValue, count); } | public void setToggleClickCount(int count) { if (toggleClickCount == count) return; int oldValue = toggleClickCount; toggleClickCount = count; firePropertyChange(TOGGLE_CLICK_COUNT_PROPERTY, oldValue, count); } | 9,860 |
public void setUI(TreeUI ui) { super.setUI(ui); } | public void setUI(TreeUI ui) { super.setUI(ui); } | 9,861 |
public void updateUI() { setUI((TreeUI) UIManager.getUI(this)); revalidate(); repaint(); } | public void updateUI() { setUI((TreeUI) UIManager.getUI(this)); revalidate(); repaint(); } | 9,862 |
public void updateUI() { setUI((TreeUI) UIManager.getUI(this)); revalidate(); repaint(); } | public void updateUI() { setUI((TreeUI) UIManager.getUI(this)); revalidate(); repaint(); } | 9,863 |
public void setDisplayedMnemonicIndex(int index) throws IllegalArgumentException { if (index < -1 || title != null && index >= title.length()) throw new IllegalArgumentException(); if (title == null || mnemonicKey == 0 || title.charAt(index) != mnemonicKey) index = -1;... | public void setDisplayedMnemonicIndex(int index) throws IllegalArgumentException { if (index < -1 || title != null && index >= title.length()) throw new IllegalArgumentException(); if (title == null || mnemonicKey == 0 || title.charAt(index) != mnemonicKey) index = -1;... | 9,865 |
void processVTKeyPressed(KeyEvent e){ displayInfo(e); int keyCode = e.getKeyCode(); if (isLinux && keyCode == e.VK_ALT_GRAPH) { isAltGr = true; } // be careful with the control key if (keyCode == e.VK_UNDEFINED || keyCode == e.VK_CAPS_LOCK || keyCode == e.V... | void processVTKeyPressed(KeyEvent e){ displayInfo(e); int keyCode = e.getKeyCode(); if (isLinux && keyCode == KeyEvent.VK_ALT_GRAPH) { isAltGr = true; } // be careful with the control key if (keyCode == e.VK_UNDEFINED || keyCode == e.VK_CAPS_LOCK || keyCode... | 9,866 |
void processVTKeyPressed(KeyEvent e){ displayInfo(e); int keyCode = e.getKeyCode(); if (isLinux && keyCode == e.VK_ALT_GRAPH) { isAltGr = true; } // be careful with the control key if (keyCode == e.VK_UNDEFINED || keyCode == e.VK_CAPS_LOCK || keyCode == e.V... | void processVTKeyPressed(KeyEvent e){ displayInfo(e); int keyCode = e.getKeyCode(); if (isLinux && keyCode == e.VK_ALT_GRAPH) { isAltGr = true; } // be careful with the control key if (keyCode == e.VK_UNDEFINED || keyCode == e.VK_CAPS_LOCK || keyCode == e.V... | 9,867 |
void processVTKeyReleased(KeyEvent e){ displayInfo(e); if (isLinux && e.getKeyCode() == e.VK_ALT_GRAPH) { isAltGr = false; } int keycode = e.getKeyCode(); if (e.isAltDown() || e.isShiftDown() || e.isControlDown() || e.isActionKey() || keycode == Key... | void processVTKeyReleased(KeyEvent e){ displayInfo(e); if (isLinux && e.getKeyCode() == KeyEvent.VK_ALT_GRAPH) { isAltGr = false; } int keycode = e.getKeyCode(); if (e.isAltDown() || e.isShiftDown() || e.isControlDown() || e.isActionKey() || keycode... | 9,868 |
public void addText (String text) { String currentValue = getValue(); if(currentValue == null) currentValue = new String (); // yes, this can happen currentValue.concat(text); setValue(currentValue); } | public void addText (String text) { String currentValue = getValue(); if(currentValue == null) currentValue = new String (); // yes, this can happen currentValue.concat(text); setValue(currentValue); } | 9,869 |
public static void doEntry(Frame parent, String propKey, Properties props2) { props = props2; confTabs = new JTabbedPane(); ec = new JCheckBox(LangTool.getString("conf.labelEnhanced")); tc = new JCheckBox(LangTool.getString("conf.labelUseSystemName")); sdn = new JCheckBox(LangTool.getString(... | public static void doEntry(Frame parent, String propKey, Properties props2) { props = props2; confTabs = new JTabbedPane(); ec = new JCheckBox(LangTool.getString("conf.labelEnhanced")); tc = new JCheckBox(LangTool.getString("conf.labelUseSystemName")); sdn = new JCheckBox(LangTool.getString(... | 9,870 |
public InvalidOpcodeException(String s) { super(s); } | public InvalidOpcodeException(String s) { super(s); } | 9,871 |
public KeyStoreException(String msg) { super(msg); } | public KeyStoreException() { super(msg); } | 9,872 |
public KeyStoreException(String msg) { super(msg); } | public KeyStoreException(String msg) { } | 9,873 |
public void connect() throws IOException { if (connected) { return; } String protocol = url.getProtocol(); boolean secure = "https".equals(protocol); String host = url.getHost(); int port = url.getPort(); if (port < 0) { port = secure ? HTTPConnection.HTTPS_PORT : ... | public void connect() throws IOException { if (connected) { return; } String protocol = url.getProtocol(); boolean secure = "https".equals(protocol); String host = url.getHost(); int port = url.getPort(); if (port < 0) { port = secure ? HTTPConnection.HTTPS_PORT : ... | 9,875 |
public void connect() throws IOException { if (connected) { return; } String protocol = url.getProtocol(); boolean secure = "https".equals(protocol); String host = url.getHost(); int port = url.getPort(); if (port < 0) { port = secure ? HTTPConnection.HTTPS_PORT : ... | public void connect() throws IOException { if (connected) { return; } String protocol = url.getProtocol(); boolean secure = "https".equals(protocol); String host = url.getHost(); int port = url.getPort(); if (port < 0) { port = secure ? HTTPConnection.HTTPS_PORT : ... | 9,876 |
public void connect() throws IOException { if (connected) { return; } String protocol = url.getProtocol(); boolean secure = "https".equals(protocol); String host = url.getHost(); int port = url.getPort(); if (port < 0) { port = secure ? HTTPConnection.HTTPS_PORT : ... | public void connect() throws IOException { if (connected) { return; } String protocol = url.getProtocol(); boolean secure = "https".equals(protocol); String host = url.getHost(); int port = url.getPort(); if (port < 0) { port = secure ? HTTPConnection.HTTPS_PORT : ... | 9,877 |
public void setLength(long length) throws IOException { if (!canWrite()) throw new ReadOnlyFileSystemException( "FileSystem or File is readonly"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); //synchronize to the inode cache to make sure that the inod... | public void setLength(long length) throws IOException { if (!canWrite()) throw new ReadOnlyFileSystemException( "FileSystem or File is readonly"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); //synchronize to the inode cache to make sure that the inod... | 9,882 |
public void beginValidate() { jComponent.doLayout(); } | public void beginValidate() { jComponent.doLayout(); } | 9,883 |
protected synchronized void setScreenData(String text, int location) {// throws OhioException { if (location < 0 || location > lenScreen) { return;// throw new OhioException(sessionVT.getSessionConfiguration(),// OhioScreen5250.class.getNam... | protectedsynchronizedvoidsetScreenData(Stringtext,intlocation){//throwsOhioException{if(location<0||location>lenScreen){return;//thrownewOhioException(sessionVT.getSessionConfiguration(),// OhioScreen5250.class.getName(),"osohio.screen.ohio00300",1);}intpos=location;intl=text.length();booleanupdated=false;booleanfla... | 9,884 |
public void write(OutputStream out) throws IOException { PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(out, "8859_1"))); write_main_section(getMainAttributes(), pw); pw.println(); write_individual_sections(getEntries(), pw); if (pw.checkError()) { throw new JarException("Error while... | public void write(OutputStream out) throws IOException { PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(out, "8859_1"))); write_main_section(getMainAttributes(), pw); pw.println(); write_individual_sections(getEntries(), pw); if (pw.checkError()) { throw new JarException("Error while... | 9,885 |
public void write(OutputStream out) throws IOException { PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(out, "8859_1"))); write_main_section(getMainAttributes(), pw); pw.println(); write_individual_sections(getEntries(), pw); if (pw.checkError()) { throw new JarException("Error while... | public void write(OutputStream out) throws IOException { PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(out, "8859_1"))); write_main_section(getMainAttributes(), pw); pw.println(); write_individual_sections(getEntries(), pw); if (pw.checkError()) { throw new JarException("Error while... | 9,886 |
public SwingCanvasPeer(SwingToolkit toolkit, Canvas canvas) { super(toolkit, canvas, new JCanvas()); this.canvas = canvas; SwingToolkit.add(canvas, jComponent); SwingToolkit.copyAwtProperties(canvas, jComponent); } | public SwingCanvasPeer(SwingToolkit toolkit, Canvas canvas) { super(toolkit, canvas, new JCanvas()); this.canvas = canvas; SwingToolkit.add(canvas, jComponent); SwingToolkit.copyAwtProperties(canvas, jComponent); } | 9,887 |
public static void insertSystemProperties(Properties res) { final Vm vm = Vm.getVm(); final VmArchitecture arch = vm.getArch(); // Java properties res.put("java.version", "1.1.0"); res.put("java.vendor", "JNode.org"); res.put("java.vendor.url", "http://jnode.org"); r... | res.put("gnu.classpath.home.url", "system: res.put("gnu.classpath.vm.shortname", "jnode"); public static void insertSystemProperties(Properties res) {res.put("gnu.classpath.home.url", "system: res.put("gnu.classpath.vm.shortname", "jnode"); res.put("gnu.classpath.home.url", "system: res.put("gnu.classpath.vm.shortname... | 9,888 |
protected Point getPopupMenuOrigin() { // The menu's screen location and size. Point screenLoc = getLocationOnScreen(); Dimension size = getSize(); // Determine the popup's size. JPopupMenu popup = getPopupMenu(); Dimension popupSize = popup.getSize(); if (popupSize.width == 0 || popupSize.heigh... | protected Point getPopupMenuOrigin() { // The menu's screen location and size. Point screenLoc = getLocationOnScreen(); Dimension size = getSize(); // Determine the popup's size. JPopupMenu popup = getPopupMenu(); Dimension popupSize = popup.getSize(); if (popupSize.width == 0 || popupSize.heigh... | 9,890 |
protected Point getPopupMenuOrigin() { // The menu's screen location and size. Point screenLoc = getLocationOnScreen(); Dimension size = getSize(); // Determine the popup's size. JPopupMenu popup = getPopupMenu(); Dimension popupSize = popup.getSize(); if (popupSize.width == 0 || popupSize.heigh... | protected Point getPopupMenuOrigin() { // The menu's screen location and size. Point screenLoc = getLocationOnScreen(); Dimension size = getSize(); // Determine the popup's size. JPopupMenu popup = getPopupMenu(); Dimension popupSize = popup.getSize(); if (popupSize.width == 0 || popupSize.heigh... | 9,891 |
public AttributeSet getAttributes() { return elt.getAttributes(); } | public AttributeSet getAttributes() { return getElement().getAttributes(); } | 9,892 |
public int getEndOffset() { return elt.getEndOffset(); } | public int getEndOffset() { return getElement().getEndOffset(); } | 9,894 |
public int getStartOffset() { return elt.getStartOffset(); } | public int getStartOffset() { return getElement().getStartOffset(); } | 9,895 |
public void setParent(View a) { parent = a; } | public void setParent(View parent) { parent = a; } | 9,897 |
public void setParent(View a) { parent = a; } | public void setParent(View a) { this.parent = parent; } | 9,898 |
public void setSize(int w, int h) { width = w; height = h; } | public void setSize(int w, int h) { width = w; height = h; } | 9,899 |
public void scrollPathToVisible(TreePath path) { if (path == null) return; Rectangle rect = getPathBounds(path); if (rect == null) return; scrollRectToVisible(rect); } | public void scrollPathToVisible(TreePath path) { if (path == null) return; Rectangle rect = getPathBounds(path); if (rect == null) return; scrollRectToVisible(rect); } | 9,905 |
public void updateUI() { setUI((TreeUI) UIManager.getUI(this)); revalidate(); repaint(); } | public void updateUI() { setUI((TreeUI) UIManager.getUI(this)); revalidate(); repaint(); } | 9,907 |
public void sendKeys(String text) { if (text == null) { return; } if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { simulateMnemonic(getMnemonicValue(text)); } else { if (isStatu... | public void sendKeys(String text) { if (text == null) { return; } if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { simulateMnemonic(getMnemonicValue(text)); } else { if (isStatu... | 9,908 |
protected boolean simulateKeyStroke(char c){ if (isStatusErrorCode() && !Character.isISOControl(c) && !keyProcessed) { return false; } boolean updateField = false; boolean numericError = false; boolean updatePos = false; boolean autoEnter = false; if (!Character.isISOContro... | protected boolean simulateKeyStroke(char c){ if (isStatusErrorCode() && !Character.isISOControl(c) && !keyProcessed) { return false; } boolean updateField = false; boolean numericError = false; boolean updatePos = false; boolean autoEnter = false; if (!Character.isISOContro... | 9,909 |
protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | 9,910 |
public int getNativeFD() { NIODatagramSocket socket = (NIODatagramSocket) ((DatagramChannelImpl) ch).socket(); return socket.getPlainDatagramSocketImpl().getNativeFD(); } | public int getNativeFD() { NIODatagramSocket socket = (NIODatagramSocket) ((DatagramChannelImpl) ch).socket(); return socket.getPlainDatagramSocketImpl().getNativeFD(); } | 9,911 |
protected void setXMLAttributes (AttributeList attrs) { // set object attributes from an AttributeList if (attrs != null) { // whip thru the list, setting each value int size = attrs.getLength(); for (int i = 0; i < size; i++) { String name = attrs.getName(i); String v... | protected void setXMLAttributes (AttributeList attrs) { // set object attributes from an AttributeList if (attrs != null) { // whip thru the list, setting each value int size = attrs.getLength(); for (int i = 0; i < size; i++) { String name = attrs.getName(i); String v... | 9,912 |
protected void installDefaults(JRootPane rp) { // Is this ok? rp.setBackground(UIManager.getColor("control")); } | protected void installDefaults(JRootPane rp) { // Is this ok? } | 9,913 |
public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ... | public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ... | 9,914 |
public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ... | public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ... | 9,915 |
public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ... | public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ... | 9,916 |
public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ... | public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ... | 9,917 |
public static Icon getHorizontalSliderThumbIcon() { return new HorizontalSliderThumbIcon(); } | public static Icon getHorizontalSliderThumbIcon() { if (horizontalSliderThumbIcon == null) horizontalSliderThumbIcon = new HorizontalSliderThumbIcon(); return horizontalSliderThumbIcon; } | 9,918 |
public static Icon getVerticalSliderThumbIcon() { return new VerticalSliderThumbIcon(); } | public static Icon getVerticalSliderThumbIcon() { if (verticalSliderThumbIcon == null) verticalSliderThumbIcon = new VerticalSliderThumbIcon(); return verticalSliderThumbIcon; } | 9,919 |
public void writePrivateKey(PrivateKey k) throws KeyAgreementException { IKeyPairCodec kpc = KeyPairCodecFactory.getInstance(k); if (kpc == null) { throw new KeyAgreementException(""); } byte[] b = kpc.encodePrivateKey(k); int length = b.length; if (length > Registry.SASL_FOUR_BYTE_MA... | public void writePrivateKey(PrivateKey k) throws KeyAgreementException { IKeyPairCodec kpc = KeyPairCodecFactory.getInstance(k); if (kpc == null) { throw new KeyAgreementException(""); } byte[] b = kpc.encodePrivateKey(k); int length = b.length; if (length > Registry.SASL_FOUR_BYTE_MA... | 9,920 |
public void writePublicKey(PublicKey k) throws KeyAgreementException { IKeyPairCodec kpc = KeyPairCodecFactory.getInstance(k); if (kpc == null) { throw new KeyAgreementException(""); } byte[] b = kpc.encodePublicKey(k); int length = b.length; if (length > Registry.SASL_FOUR_BYTE_MAX_L... | public void writePublicKey(PublicKey k) throws KeyAgreementException { IKeyPairCodec kpc = KeyPairCodecFactory.getInstance(k); if (kpc == null) { throw new KeyAgreementException(""); } byte[] b = kpc.encodePublicKey(k); int length = b.length; if (length > Registry.SASL_FOUR_BYTE_MAX_L... | 9,921 |
public void paint(Graphics g, Shape s) { // Ensure metrics are up-to-date. updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); g.setFont(textComponent.getFont()); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getFo... | public void paint(Graphics g, Shape s) { // Ensure metrics are up-to-date. updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); g.setFont(textComponent.getFont()); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getFo... | 9,922 |
private void fillQueryTextArea() { queryTextArea.append(queryBuilder.getQuery()); this.hide(); this.dispose(); } | private void fillQueryTextArea() { queryTextArea.append(queryBuilder.getQuery()); this.setVisible(false); this.dispose(); } | 9,923 |
protected StyleSheet getStyleSheet() { // FIXME: Not implemented properly. return new StyleSheet(); } | protected StyleSheet getStyleSheet() { // FIXME: Not implemented properly. StyleSheet styleSheet = new StyleSheet(); styleSheet.importStyleSheet(getClass().getResource(HTMLEditorKit.DEFAULT_CSS)); return styleSheet; } | 9,924 |
public void installUI(JComponent c) { if (c instanceof JTerminal) { this.terminal = (JTerminal)c; boolean graphicsDebugMode = false; if (graphicsDebugMode) { javax.swing.RepaintManager repaintManager = javax.swing.RepaintManager.currentManager(terminal); repaintManager.setDoub... | public void installUI(JComponent c) { if (c instanceof JTerminal) { this.terminal = (JTerminal)c; if (graphicsDebugMode) { javax.swing.RepaintManager repaintManager = javax.swing.RepaintManager.currentManager(terminal); repaintManager.setDoubleBufferingEnabled(false); t... | 9,925 |
public int getStyle (){ return peer.getStyle (this);} | public int getStyle (){ return peer.getStyle (this);} | 9,926 |
public Argument(String name, String description, boolean multi) { super(name, description); this.multi = multi; } | public Argument(String name, String description, boolean multi) { super(name, description); this.multi = multi; } | 9,927 |
protected final void clear() { this.values = new String[0]; setSatisfied(false); } | protected final void clear() { this.values = new String[0]; setSatisfied(false); } | 9,928 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.