bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public void setNextFocusableComponent(Component aComponent) { }
public void setNextFocusableComponent(Component aComponent) { }
14,032
public void setOpaque(boolean isOpaque) { boolean oldOpaque = opaque; opaque = isOpaque; firePropertyChange("opaque", oldOpaque, opaque); }
public void setOpaque(boolean isOpaque) { boolean oldOpaque = opaque; opaque = isOpaque; firePropertyChange("opaque", oldOpaque, opaque); }
14,033
public void setOpaque(boolean isOpaque) { boolean oldOpaque = opaque; opaque = isOpaque; firePropertyChange("opaque", oldOpaque, opaque); }
public void setOpaque(boolean isOpaque) { boolean oldOpaque = opaque; opaque = isOpaque; firePropertyChange("opaque", oldOpaque, opaque); }
14,034
public void setPreferredSize(Dimension pref) { Dimension oldPreferredSize = preferredSize; preferredSize = pref; firePropertyChange("preferredSize", oldPreferredSize, preferredSize); }
public void setPreferredSize(Dimension pref) { Dimension oldPreferredSize = preferredSize; preferredSize = pref; firePropertyChange("preferredSize", oldPreferredSize, preferredSize); }
14,035
public void setPreferredSize(Dimension pref) { Dimension oldPreferredSize = preferredSize; preferredSize = pref; firePropertyChange("preferredSize", oldPreferredSize, preferredSize); }
public void setPreferredSize(Dimension pref) { Dimension oldPreferredSize = preferredSize; preferredSize = pref; firePropertyChange("preferredSize", oldPreferredSize, preferredSize); }
14,036
public void setRequestFocusEnabled(boolean e) { requestFocusEnabled = e; }
public void setRequestFocusEnabled(boolean e) { requestFocusEnabled = e; }
14,037
public void setRequestFocusEnabled(boolean e) { requestFocusEnabled = e; }
public void setRequestFocusEnabled(boolean e) { requestFocusEnabled = e; }
14,038
public void setToolTipText(String text) { if (text == null) { ToolTipManager.sharedInstance().unregisterComponent(this); toolTipText = null; return; } // XXX: The tip text doesn't get updated unless you set it to null // and then to something not-null. This is consistent with the behav...
public void setToolTipText(String text) { if (text == null) { ToolTipManager.sharedInstance().unregisterComponent(this); toolTipText = null; return; } // XXX: The tip text doesn't get updated unless you set it to null // and then to something not-null. This is consistent with the behav...
14,039
public void setToolTipText(String text) { if (text == null) { ToolTipManager.sharedInstance().unregisterComponent(this); toolTipText = null; return; } // XXX: The tip text doesn't get updated unless you set it to null // and then to something not-null. This is consistent with the behav...
public void setToolTipText(String text) { if (text == null) { ToolTipManager.sharedInstance().unregisterComponent(this); toolTipText = null; return; } // XXX: The tip text doesn't get updated unless you set it to null // and then to something not-null. This is consistent with the behav...
14,040
public void setToolTipText(String text) { if (text == null) { ToolTipManager.sharedInstance().unregisterComponent(this); toolTipText = null; return; } // XXX: The tip text doesn't get updated unless you set it to null // and then to something not-null. This is consistent with the behav...
public void setToolTipText(String text) { if (text == null) { ToolTipManager.sharedInstance().unregisterComponent(this); toolTipText = null; return; } // XXX: The tip text doesn't get updated unless you set it to null // and then to something not-null. This is consistent with the behav...
14,041
protected void setUI(ComponentUI newUI) { if (ui != null) ui.uninstallUI(this); ComponentUI oldUI = ui; ui = newUI; if (ui != null) ui.installUI(this); firePropertyChange("UI", oldUI, newUI); }
protected void setUI(ComponentUI newUI) { if (ui != null) ui.uninstallUI(this); ComponentUI oldUI = ui; ui = newUI; if (ui != null) ui.installUI(this); firePropertyChange("UI", oldUI, newUI); }
14,042
protected void setUI(ComponentUI newUI) { if (ui != null) ui.uninstallUI(this); ComponentUI oldUI = ui; ui = newUI; if (ui != null) ui.installUI(this); firePropertyChange("UI", oldUI, newUI); }
protected void setUI(ComponentUI newUI) { if (ui != null) ui.uninstallUI(this); ComponentUI oldUI = ui; ui = newUI; if (ui != null) ui.installUI(this); firePropertyChange("UI", oldUI, newUI); }
14,043
protected void setUI(ComponentUI newUI) { if (ui != null) ui.uninstallUI(this); ComponentUI oldUI = ui; ui = newUI; if (ui != null) ui.installUI(this); firePropertyChange("UI", oldUI, newUI); }
protected void setUI(ComponentUI newUI) { if (ui != null) ui.uninstallUI(this); ComponentUI oldUI = ui; ui = newUI; if (ui != null) ui.installUI(this); firePropertyChange("UI", oldUI, newUI); }
14,044
protected void setUI(ComponentUI newUI) { if (ui != null) ui.uninstallUI(this); ComponentUI oldUI = ui; ui = newUI; if (ui != null) ui.installUI(this); firePropertyChange("UI", oldUI, newUI); }
protected void setUI(ComponentUI newUI) { if (ui != null) ui.uninstallUI(this); ComponentUI oldUI = ui; ui = newUI; if (ui != null) ui.installUI(this); firePropertyChange("UI", oldUI, newUI); }
14,045
public void setVerifyInputWhenFocusTarget(boolean verifyInputWhenFocusTarget) { if (this.verifyInputWhenFocusTarget == verifyInputWhenFocusTarget) return; this.verifyInputWhenFocusTarget = verifyInputWhenFocusTarget; firePropertyChange("verifyInputWhenFocusTarget", ! verifyInputWhenFocusTarget,...
public void setVerifyInputWhenFocusTarget(boolean verifyInputWhenFocusTarget) { if (this.verifyInputWhenFocusTarget == verifyInputWhenFocusTarget) return; this.verifyInputWhenFocusTarget = verifyInputWhenFocusTarget; firePropertyChange("verifyInputWhenFocusTarget", ! verifyInputWhenFocusTarget,...
14,046
public void unregisterKeyboardAction(KeyStroke aKeyStroke) { // FIXME: Must be implemented. }
public void unregisterKeyboardAction(KeyStroke aKeyStroke) { // FIXME: Must be implemented. }
14,047
public void unregisterKeyboardAction(KeyStroke aKeyStroke) { // FIXME: Must be implemented. }
public void unregisterKeyboardAction(KeyStroke aKeyStroke) { // FIXME: Must be implemented. }
14,048
public void update(Graphics g) { paint(g); }
public void update(Graphics g) { paint(g); }
14,049
public void updateUI() { System.out.println("update UI not overwritten in class: " + this); }
public void updateUI() { System.out.println("update UI not overwritten in class: " + this); }
14,050
public JRootPane createRootPane() { return new JRootPane(); }
protected JRootPane createRootPane() { return new JRootPane(); }
14,051
protected boolean isRootPaneCheckingEnabled() { return checking; }
protected boolean isRootPaneCheckingEnabled() { return rootPaneCheckingEnabled; }
14,052
public void setRootPane(JRootPane root) { if (rootPane != null) remove(rootPane); rootPane = root; add(rootPane, BorderLayout.CENTER); }
protected void setRootPane(JRootPane root) { if (rootPane != null) remove(rootPane); rootPane = root; add(rootPane, BorderLayout.CENTER); }
14,053
protected void setRootPaneCheckingEnabled(boolean enabled) { checking = enabled; }
protected void setRootPaneCheckingEnabled(boolean enabled) { rootPaneCheckingEnabled = enabled; }
14,054
public void run() {// if (parent == null)// parent = new JFrame(); try { if (sendEMail.send()) {// JOptionPane.showMessageDialog(// parent,// LangTool.getString("em.confirmationMessage")// + " "// + (String) toAddress.getSelectedItem(),// LangTool.getString("em.titleConfirmation"),// ...
sendEMail.release(); sendEMail = null; sendEMail.release(); sendEMail = null; sendEMail.release(); sendEMail = null; publicsendEMail.release(); sendEMail = null; voidsendEMail.release(); sendEMail = null; run()sendEMail.release(); sendEMail = null; {// ifsendEMail.release(); sendEMail = null; (parentsendEMail.release(...
14,056
private void sendIt(Frame parent, SendEMail sem) { setSendEMail(sem); new Thread(this).start();// if (parent == null)// parent = new JFrame();//// try {// if (sem.send()) {//// JOptionPane.showMessageDialog(// parent,// LangTool.getString("em.confirmationMessage")// + " "// + (Stri...
private void sendIt(Frame parent, SendEMail sem) { setSendEMail(sem); new Thread(this).start();// if (parent == null)// parent = new JFrame();//// try {// if (sem.send()) {//// JOptionPane.showMessageDialog(// parent,// LangTool.getString("em.confirmationMessage")// + " "// + (Stri...
14,057
private JPanel setupMailPanel(String fileName) { JPanel semp = new JPanel(); semp.setLayout(new GridBagLayout()); text = new JRadioButton(LangTool.getString("em.text")); graphic = new JRadioButton(LangTool.getString("em.graphic")); normal = new JRadioButton(LangTool.getString("em.normalmail"),true); screenshot =...
private JPanel setupMailPanel(String fileName) { JPanel semp = new JPanel(); semp.setLayout(new GridBagLayout()); text = new JRadioButton(LangTool.getString("em.text")); graphic = new JRadioButton(LangTool.getString("em.graphic")); normal = new JRadioButton(LangTool.getString("em.normalmail"),true); screenshot =...
14,058
public byte[] getEncoded() { return getEncoded(IKeyPairCodec.RAW_FORMAT); }
public byte[] getEncoded() { return getEncoded(defaultFormat); }
14,059
public String getFormat() { return KeyPairCodecFactory.getEncodingShortName(defaultFormat); }
public String getFormat() { return FormatUtil.getEncodingShortName(defaultFormat); }
14,060
public boolean isEqual(AttributeSet attr) { return attr != null && attr.containsAttributes(this) && this.containsAttributes(attr); }
public boolean isEqual(AttributeSet attr) { return attr != null && attr.containsAttributes(this) && this.containsAttributes(attr); }
14,061
public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals(JInternalFrame.IS_MAXIMUM_PROPERTY)) { if (frame.isMaximum()) maximizeFrame(frame); else minimizeFrame(frame); } else if (evt.getPropertyName().equals(JInternalFrame.IS_CLOSED_PROPERTY)) clo...
public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals(JInternalFrame.IS_MAXIMUM_PROPERTY)) { if (frame.isMaximum()) maximizeFrame(frame); else minimizeFrame(frame); } else if (evt.getPropertyName().equals(JInternalFrame.IS_CLOSED_PROPERTY)) clo...
14,063
protected DesktopManager getDesktopManager() { DesktopManager value = frame.getDesktopPane().getDesktopManager(); if (value == null) value = createDesktopManager(); return value; }
protected DesktopManager getDesktopManager() { DesktopManager value = null; JDesktopPane pane = frame.getDesktopPane(); if (pane != null) value = frame.getDesktopPane().getDesktopManager(); if (value == null) value = createDesktopManager(); return value; }
14,064
public void mouseClicked(MouseEvent event) { // TODO: Implement double- and triple-click behaviour here. }
int count = event.getClickCount(); if (count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) t.select(Utilities.getRowStart(t, newDot), Utilities.getRowEnd(t, newDot)); else { int nextWord = Utilities.getNextWord(t, newDot); if (newDot =...
14,065
public void paint(Graphics g) { JTextComponent comp = getComponent(); if (comp == null) return; int dot = getDot(); Rectangle rect = null; try { rect = textComponent.modelToView(dot); } catch (BadLocationException e) { AssertionError ae; ae = new AssertionError("Unexpecte...
public void paint(Graphics g) { JTextComponent comp = getComponent(); if (comp == null) return; dot = Math.min(dot, textComponent.getDocument().getLength()); dot = Math.max(dot, 0); Rectangle rect = null; try { rect = textComponent.modelToView(dot); } catch (BadLocationException e)...
14,067
public WordBreakIterator() { iter = null; }
public WordBreakIterator() { iter = null; }
14,068
public Object clone() { return new WordBreakIterator(this); }
public Object clone() { return new WordBreakIterator(this); }
14,069
private final boolean isHan(char c) { return c >= 0x4e00 && c <= 0x9fff; }
private final boolean isHan(char c) { return c >= 0x4e00 && c <= 0x9fff; }
14,070
private final boolean isHira(char c) { return c >= 0x3040 && c <= 0x309f; }
private final boolean isHira(char c) { return c >= 0x3040 && c <= 0x309f; }
14,071
private final boolean isKata(char c) { return c >= 0x30a0 && c <= 0x30ff; }
private final boolean isKata(char c) { return c >= 0x30a0 && c <= 0x30ff; }
14,072
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Break afte...
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Break afte...
14,073
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Break afte...
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Break afte...
14,074
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Break afte...
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Break afte...
14,075
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Break afte...
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Break afte...
14,076
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Break afte...
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Break afte...
14,077
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Break afte...
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Break afte...
14,078
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Break afte...
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Break afte...
14,079
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Break afte...
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Break afte...
14,080
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Break afte...
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Break afte...
14,081
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Break afte...
public int next() { int end = iter.getEndIndex(); if (iter.getIndex() == end) return DONE; while (iter.getIndex() < end) { char c = iter.current(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); char n = iter.next(); if (n == CharacterIterator.DONE) break; // Break afte...
14,082
public int previous() { int start = iter.getBeginIndex(); if (iter.getIndex() == start) return DONE; while (iter.getIndex() >= start) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; boolean is_hira = isHira(c); boolean is_kata = isKata(c); boolean is_han = isHan(c); boolean is_l...
public int previous() { int start = iter.getBeginIndex(); if (iter.getIndex() == start) return DONE; while (iter.getIndex() >= start) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; boolean is_hira = isHira(c); boolean is_kata = isKata(c); boolean is_han = isHan(c); boolean is_l...
14,083
public int previous() { int start = iter.getBeginIndex(); if (iter.getIndex() == start) return DONE; while (iter.getIndex() >= start) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; boolean is_hira = isHira(c); boolean is_kata = isKata(c); boolean is_han = isHan(c); boolean is_l...
public int previous() { int start = iter.getBeginIndex(); if (iter.getIndex() == start) return DONE; while (iter.getIndex() >= start) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; boolean is_hira = isHira(c); boolean is_kata = isKata(c); boolean is_han = isHan(c); boolean is_l...
14,084
public int previous() { int start = iter.getBeginIndex(); if (iter.getIndex() == start) return DONE; while (iter.getIndex() >= start) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; boolean is_hira = isHira(c); boolean is_kata = isKata(c); boolean is_han = isHan(c); boolean is_l...
public int previous() { int start = iter.getBeginIndex(); if (iter.getIndex() == start) return DONE; while (iter.getIndex() >= start) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; boolean is_hira = isHira(c); boolean is_kata = isKata(c); boolean is_han = isHan(c); boolean is_l...
14,085
public int previous() { int start = iter.getBeginIndex(); if (iter.getIndex() == start) return DONE; while (iter.getIndex() >= start) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; boolean is_hira = isHira(c); boolean is_kata = isKata(c); boolean is_han = isHan(c); boolean is_l...
public int previous() { int start = iter.getBeginIndex(); if (iter.getIndex() == start) return DONE; while (iter.getIndex() >= start) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; boolean is_hira = isHira(c); boolean is_kata = isKata(c); boolean is_han = isHan(c); boolean is_l...
14,086
public int previous() { int start = iter.getBeginIndex(); if (iter.getIndex() == start) return DONE; while (iter.getIndex() >= start) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; boolean is_hira = isHira(c); boolean is_kata = isKata(c); boolean is_han = isHan(c); boolean is_l...
public int previous() { int start = iter.getBeginIndex(); if (iter.getIndex() == start) return DONE; while (iter.getIndex() >= start) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; boolean is_hira = isHira(c); boolean is_kata = isKata(c); boolean is_han = isHan(c); boolean is_l...
14,087
public int previous() { int start = iter.getBeginIndex(); if (iter.getIndex() == start) return DONE; while (iter.getIndex() >= start) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; boolean is_hira = isHira(c); boolean is_kata = isKata(c); boolean is_han = isHan(c); boolean is_l...
public int previous() { int start = iter.getBeginIndex(); if (iter.getIndex() == start) return DONE; while (iter.getIndex() >= start) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; boolean is_hira = isHira(c); boolean is_kata = isKata(c); boolean is_han = isHan(c); boolean is_l...
14,088
public int previous() { int start = iter.getBeginIndex(); if (iter.getIndex() == start) return DONE; while (iter.getIndex() >= start) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; boolean is_hira = isHira(c); boolean is_kata = isKata(c); boolean is_han = isHan(c); boolean is_l...
public int previous() { int start = iter.getBeginIndex(); if (iter.getIndex() == start) return DONE; while (iter.getIndex() >= start) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; boolean is_hira = isHira(c); boolean is_kata = isKata(c); boolean is_han = isHan(c); boolean is_l...
14,089
public int previous() { int start = iter.getBeginIndex(); if (iter.getIndex() == start) return DONE; while (iter.getIndex() >= start) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; boolean is_hira = isHira(c); boolean is_kata = isKata(c); boolean is_han = isHan(c); boolean is_l...
public int previous() { int start = iter.getBeginIndex(); if (iter.getIndex() == start) return DONE; while (iter.getIndex() >= start) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; boolean is_hira = isHira(c); boolean is_kata = isKata(c); boolean is_han = isHan(c); boolean is_l...
14,090
public int previous() { int start = iter.getBeginIndex(); if (iter.getIndex() == start) return DONE; while (iter.getIndex() >= start) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; boolean is_hira = isHira(c); boolean is_kata = isKata(c); boolean is_han = isHan(c); boolean is_l...
public int previous() { int start = iter.getBeginIndex(); if (iter.getIndex() == start) return DONE; while (iter.getIndex() >= start) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; boolean is_hira = isHira(c); boolean is_kata = isKata(c); boolean is_han = isHan(c); boolean is_l...
14,091
public int previous() { int start = iter.getBeginIndex(); if (iter.getIndex() == start) return DONE; while (iter.getIndex() >= start) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; boolean is_hira = isHira(c); boolean is_kata = isKata(c); boolean is_han = isHan(c); boolean is_l...
public int previous() { int start = iter.getBeginIndex(); if (iter.getIndex() == start) return DONE; while (iter.getIndex() >= start) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; boolean is_hira = isHira(c); boolean is_kata = isKata(c); boolean is_han = isHan(c); boolean is_l...
14,092
public JApplet() { super.setLayout(new BorderLayout(1, 1)); getRootPane(); // Will do set/create. initStageDone = true; // Init stage is now over. }
public JApplet() { super.setLayout(new BorderLayout(1, 1)); getRootPane(); // Will do set/create. setRootPaneCheckingEnabled(true); // Init stage is now over. }
14,093
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) ...
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // Otherwise pass the add onto the content pane. if (isRootPaneCheckingEnabled()) getContentPane().add(comp, constraints, index); else super.addImpl(comp, constraints, i...
14,094
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) ...
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) ...
14,095
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayou...
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayou...
14,096
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayou...
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayou...
14,097
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayou...
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayou...
14,098
public TaggedXMLDataIOStyle(Array parentArray) { Log.debug("in TaggedXMLDataIOStyle, constructor"); this.parentArray = parentArray; }
public TaggedXMLDataIOStyle(Array parentArray) { this.parentArray = parentArray; }
14,099
protected void specificIOStyleToXDF( OutputStream outputstream,String indent) { boolean niceOutput = Specification.getInstance().isPrettyXDFOutput(); //write out the tags info String[] tags = getAxisTags(); List axisList = parentArray.getAxisList(); String axisId; String tag; int stop = axisList...
protected void specificIOStyleToXDF( OutputStream outputstream,String indent) { boolean niceOutput = Specification.getInstance().isPrettyXDFOutput(); //write out the tags info String[] tags = getAxisTags(); List axisList = parentArray.getAxisList(); String axisId; String tag; int stop = axisList...
14,100
private void addByteDataToCurrentArray ( Locator location, byte[] data, int startByte, int endByte, int amount, ...
String strValue = new String(data, bytes_added, bytes_to_add); Log.debugln("AddByteData READCELL string(off:"+bytes_added+" len:"+bytes_to_add+") => ["+strValue+"]"); String strValue = new String(data, bytes_added, bytes_to_add); Log.debugln("AddByteData READCELL string(off:"+bytes_added+" len:"+bytes_to_add+") => ["+s...
14,101
public final void printMe() { Thread printerThread = new PrinterThread(screen,font,numCols,numRows,colorBg); printerThread.start(); }
public final void printMe() { Thread printerThread = new PrinterThread(screen, font, numCols, numRows, colorBg, (Session)gui); printerThread.start(); }
14,103
public void sendKeys(String text) {// if (text == null) {// return;// } if (isStatusErrorCode() && !resetRequired) { resetError(); if (!cursorActive) setCursorOn(); } if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]"...
publicvoidsendKeys(Stringtext){//if(text==null){//return;//}if(isStatusErrorCode()&&!resetRequired){resetError();if(!cursorActive)setCursorOn();}if(keyboardLocked){if(text.equals("[reset]")||text.equals("[sysreq]")||text.equals("[attn]")){simulateMnemonic(getMnemonicValue(text));}else{if(isStatusErrorCode()){Toolkit.ge...
14,104
public void layoutContainer(Container parent) { // Position editor component to the left of arrow button if combo box is // editable int editorWidth = comboBox.getBounds().width - arrowButtonWidth - 2; if (comboBox.isEditable()) editor.setBounds(borderInsets.left, borderInsets.top, editorWid...
public void layoutContainer(Container parent) { // Position editor component to the left of arrow button if combo box is // editable int arrowSize = comboBox.getHeight(); int editorWidth = comboBox.getBounds().width - arrowSize; if (comboBox.isEditable()) editor.setBounds(borderInsets.left, ...
14,107
public void layoutContainer(Container parent) { // Position editor component to the left of arrow button if combo box is // editable int editorWidth = comboBox.getBounds().width - arrowButtonWidth - 2; if (comboBox.isEditable()) editor.setBounds(borderInsets.left, borderInsets.top, editorWid...
public void layoutContainer(Container parent) { // Position editor component to the left of arrow button if combo box is // editable int editorWidth = comboBox.getBounds().width - arrowButtonWidth - 2; if (comboBox.isEditable()) editor.setBounds(borderInsets.left, borderInsets.top, editorWid...
14,108
public Dimension preferredLayoutSize(Container parent) { Dimension d = new Dimension(0, 0); if (largestItemSize == null) largestItemSize = getLargestItemSize(); // add size for the area that will display selected item d.width += largestItemSize.getWidth(); d.height += largestItemSize.get...
public Dimension preferredLayoutSize(Container parent) { Dimension d = new Dimension(0, 0); if (largestItemSize == null) largestItemSize = getLargestItemSize(); // add size for the area that will display selected item d.width += largestItemSize.getWidth(); d.height += largestItemSize.get...
14,109
public void intervalAdded(ListDataEvent e) { // must determine if the size of the combo box should change int start = e.getIndex0(); int end = e.getIndex1(); ComboBoxModel model = comboBox.getModel(); ListCellRenderer renderer = comboBox.getRenderer(); if (largestItemSize == null) l...
public void intervalAdded(ListDataEvent e) { // must determine if the size of the combo box should change int start = e.getIndex0(); int end = e.getIndex1(); ComboBoxModel model = comboBox.getModel(); ListCellRenderer renderer = comboBox.getRenderer(); if (largestItemSize == null) l...
14,110
public void intervalAdded(ListDataEvent e) { // must determine if the size of the combo box should change int start = e.getIndex0(); int end = e.getIndex1(); ComboBoxModel model = comboBox.getModel(); ListCellRenderer renderer = comboBox.getRenderer(); if (largestItemSize == null) l...
public void intervalAdded(ListDataEvent e) { // must determine if the size of the combo box should change int start = e.getIndex0(); int end = e.getIndex1(); ComboBoxModel model = comboBox.getModel(); ListCellRenderer renderer = comboBox.getRenderer(); if (largestItemSize == null) l...
14,111
public void intervalAdded(ListDataEvent e) { // must determine if the size of the combo box should change int start = e.getIndex0(); int end = e.getIndex1(); ComboBoxModel model = comboBox.getModel(); ListCellRenderer renderer = comboBox.getRenderer(); if (largestItemSize == null) l...
public void intervalAdded(ListDataEvent e) { // must determine if the size of the combo box should change int start = e.getIndex0(); int end = e.getIndex1(); ComboBoxModel model = comboBox.getModel(); ListCellRenderer renderer = comboBox.getRenderer(); if (largestItemSize == null) l...
14,112
public void intervalRemoved(ListDataEvent e) { // recalculate display size of the JComboBox. largestItemSize = getLargestItemSize(); comboBox.repaint(); }
public void intervalRemoved(ListDataEvent e) { // recalculate display size of the JComboBox. displaySize = getDisplaySize(); comboBox.repaint(); }
14,113
public void mousePressed(MouseEvent e) { if (comboBox.isEnabled()) { if (e.getSource() instanceof JComboBox) { arrowButton.getModel().setPressed(true); arrowButton.getModel().setArmed(true); } comboBox.repaint(); if (e.getSource() instanceof BasicArrowButton) toggleOpenC...
public void mousePressed(MouseEvent e) { if (comboBox.isEnabled()) { if (e.getSource() instanceof JComboBox) { arrowButton.getModel().setPressed(true); arrowButton.getModel().setArmed(true); } comboBox.repaint(); if (e.getSource() instanceof BasicArrowButton) toggleOpenC...
14,114
public void configureArrowButton() { arrowButton.addMouseListener(mouseListener); }
public void configureArrowButton() { arrowButton.setEnabled(comboBox.isEnabled()); arrowButton.setFont(comboBox.getFont()); arrowButton.setMargin(new Insets(0, 0, 0, 0)); }
14,116
protected Dimension getDefaultSize() { return new Dimension(6, 17); }
protected Dimension getDefaultSize() { return new Dimension(100, 5); }
14,118
public Dimension getMaximumSize(JComponent c) { return null; }
public Dimension getMaximumSize(JComponent c) { return MAXIMUM_SIZE; }
14,119
public Dimension getMinimumSize(JComponent c) { return null; }
public Dimension getMinimumSize(JComponent c) { Dimension d = getDisplaySize(); Dimension arrowDim = arrowButton.getPreferredSize(); Dimension result = new Dimension(d.width + arrowDim.width, Math.max(d.height, arrowDim.height)); return result; }
14,120
public Dimension getPreferredSize(JComponent c) { // return null to indicate that combo box's layout will determin its // preferred size return null; }
public Dimension getPreferredSize(JComponent c) { // return null to indicate that combo box's layout will determin its // preferred size return getMinimumSize(c); }
14,121
protected void installComponents() { // create and install arrow button arrowButton = createArrowButton(); comboBox.add(arrowButton); // Set list that will be used by BasicComboBoxRender // in order to determine the right colors when rendering listBox = new JList(); Color background = arrowButt...
configureArrowButton(); configureArrowButton(); protectedconfigureArrowButton(); voidconfigureArrowButton(); installComponents()configureArrowButton(); configureArrowButton(); {configureArrowButton(); configureArrowButton(); configureArrowButton(); configureArrowButton(); //configureArrowButton(); createconfigureArrowB...
14,122
protected void installComponents() { // create and install arrow button arrowButton = createArrowButton(); comboBox.add(arrowButton); // Set list that will be used by BasicComboBoxRender // in order to determine the right colors when rendering listBox = new JList(); Color background = arrowButt...
protected void installComponents() { // create and install arrow button arrowButton = createArrowButton(); comboBox.add(arrowButton); // Set list that will be used by BasicComboBoxRender // in order to determine the right colors when rendering listBox = new JList(); Color background = arrowButt...
14,123
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); comboBox.setBackground(defaults.getColor("ComboBox.background")); comboBox.setFont(defaults.getFont("ComboBox.font")); comboBox.setForeground(defaults.getColor("ComboBox.foreground")); // Set default color tha...
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); comboBox.setBackground(defaults.getColor("ComboBox.background")); comboBox.setFont(defaults.getFont("ComboBox.font")); comboBox.setForeground(defaults.getColor("ComboBox.foreground")); // Set default color tha...
14,124
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); comboBox.setBackground(defaults.getColor("ComboBox.background")); comboBox.setFont(defaults.getFont("ComboBox.font")); comboBox.setForeground(defaults.getColor("ComboBox.foreground")); // Set default color tha...
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); comboBox.setBackground(defaults.getColor("ComboBox.background")); comboBox.setFont(defaults.getFont("ComboBox.font")); comboBox.setForeground(defaults.getColor("ComboBox.foreground")); // Set default color tha...
14,125
protected void installListeners() { // install combo box's listeners propertyChangeListener = createPropertyChangeListener(); comboBox.addPropertyChangeListener(propertyChangeListener); focusListener = createFocusListener(); comboBox.addFocusListener(focusListener); itemListener = createItemListene...
protected void installListeners() { // install combo box's listeners propertyChangeListener = createPropertyChangeListener(); comboBox.addPropertyChangeListener(propertyChangeListener); focusListener = createFocusListener(); comboBox.addFocusListener(focusListener); itemListener = createItemListene...
14,126
protected void installListeners() { // install combo box's listeners propertyChangeListener = createPropertyChangeListener(); comboBox.addPropertyChangeListener(propertyChangeListener); focusListener = createFocusListener(); comboBox.addFocusListener(focusListener); itemListener = createItemListene...
protected void installListeners() { // install combo box's listeners propertyChangeListener = createPropertyChangeListener(); comboBox.addPropertyChangeListener(propertyChangeListener); focusListener = createFocusListener(); comboBox.addFocusListener(focusListener); itemListener = createItemListene...
14,127
public boolean isFocusTraversable(JComboBox c) { if (comboBox.isEditable()) return true; return false; }
public boolean isFocusTraversable(JComboBox c) { if (!comboBox.isEditable()) return true; return false; }
14,128
public void paint(Graphics g, JComponent c) { if (c instanceof JComboBox) { JComboBox cb = (JComboBox) c; paintBorder(g, comboBox.getBounds(), hasFocus); Rectangle rect = rectangleForCurrentValue(); paintCurrentValueBackground(g, rect, hasFocus); paintCurrentValue(g, rect, hasFocus); } }
public void paint(Graphics g, JComponent c) { if (c instanceof JComboBox) { JComboBox cb = (JComboBox) c; paintBorder(g, comboBox.getBounds(), hasFocus); Rectangle rect = rectangleForCurrentValue(); paintCurrentValueBackground(g, rect, hasFocus); paintCurrentValue(g, rect, hasFocus); } }
14,129
public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { if (! comboBox.isEditable()) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); /* Gets the component to be drawn for the current value. * If there is currently no selecte...
public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { if (! comboBox.isEditable()) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); /* Gets the component to be drawn for the current value. * If there is currently no selecte...
14,130
protected Rectangle rectangleForCurrentValue() { Rectangle cbBounds = comboBox.getBounds(); // Subtract width or the arrow button and border insets Rectangle rectForCurrentValue = new Rectangle(cbBounds.x + borderInsets.left, ...
protected Rectangle rectangleForCurrentValue() { Rectangle cbBounds = comboBox.getBounds(); // Subtract width or the arrow button and border insets Rectangle rectForCurrentValue = new Rectangle(cbBounds.x + borderInsets.left, ...
14,131
public void unconfigureArrowButton() { arrowButton.removeMouseListener(mouseListener); }
public void unconfigureArrowButton() { }
14,132
protected void uninstallDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); comboBox.setBackground(null); comboBox.setFont(null); comboBox.setForeground(null); shadow = null; darkShadow = null; lightHighlight = null; highlight = null; }
protected void uninstallDefaults() { if (comboBox.getFont() instanceof UIResource) comboBox.setFont(null); comboBox.setBackground(null); comboBox.setFont(null); comboBox.setForeground(null); shadow = null; darkShadow = null; lightHighlight = null; highlight = null; }
14,133
protected void uninstallDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); comboBox.setBackground(null); comboBox.setFont(null); comboBox.setForeground(null); shadow = null; darkShadow = null; lightHighlight = null; highlight = null; }
protected void uninstallDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); comboBox.setBackground(null); comboBox.setFont(null); comboBox.setForeground(null); shadow = null; darkShadow = null; lightHighlight = null; highlight = null; }
14,134
protected void uninstallDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); comboBox.setBackground(null); comboBox.setFont(null); comboBox.setForeground(null); shadow = null; darkShadow = null; lightHighlight = null; highlight = null; }
protected void uninstallDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); comboBox.setBackground(null); comboBox.setFont(null); comboBox.setForeground(null); shadow = null; darkShadow = null; highlight = null; }
14,135
protected void uninstallListeners() { comboBox.removePropertyChangeListener(propertyChangeListener); propertyChangeListener = null; comboBox.removeFocusListener(focusListener); focusListener = null; comboBox.removeItemListener(itemListener); itemListener = null; comboBox.removeKeyListener(keyLis...
protected void uninstallListeners() { comboBox.removePropertyChangeListener(propertyChangeListener); propertyChangeListener = null; comboBox.removeFocusListener(focusListener); focusListener = null; comboBox.removeItemListener(itemListener); itemListener = null; comboBox.removeKeyListener(keyLis...
14,136
protected void uninstallListeners() { comboBox.removePropertyChangeListener(propertyChangeListener); propertyChangeListener = null; comboBox.removeFocusListener(focusListener); focusListener = null; comboBox.removeItemListener(itemListener); itemListener = null; comboBox.removeKeyListener(keyLis...
protected void uninstallListeners() { comboBox.removePropertyChangeListener(propertyChangeListener); propertyChangeListener = null; comboBox.removeFocusListener(focusListener); focusListener = null; comboBox.removeItemListener(itemListener); itemListener = null; comboBox.removeKeyListener(keyLis...
14,137
public Object createValue(UIDefaults table) { InputMap im = new InputMap (); for (int i = 0; 2*i+1 < bind.length; ++i) { im.put (KeyStroke.getKeyStroke ((String) bind[2*i]), bind[2*i+1]); } return im; }
public Object createValue(UIDefaults table) { InputMapUIResource im = new InputMapUIResource (); for (int i = 0; 2*i+1 < bind.length; ++i) { im.put (KeyStroke.getKeyStroke ((String) bind[2*i]), bind[2*i+1]); } return im; }
14,138
public Object createValue(UIDefaults table) { InputMap im = new InputMap (); for (int i = 0; 2*i+1 < bind.length; ++i) { im.put (KeyStroke.getKeyStroke ((String) bind[2*i]), bind[2*i+1]); } return im; }
public Object createValue(UIDefaults table) { InputMap im = new InputMap (); for (int i = 0; 2*i+1 < bind.length; ++i) { Object curr = bind[2*i]; if (curr instanceof KeyStroke) im.put((KeyStroke) curr, bind[2*i+1]); else im.put(KeyStroke.getKeyStroke((String) curr), bin...
14,139