rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
editorComponent = textfield; clickCountToStart = 2; | public DefaultCellEditor(JTextField textfield) { // TODO } // DefaultCellEditor() | |
delegate.cancelCellEditing(); | public void cancelCellEditing() { // TODO } // cancelCellEditing() | |
return null; | return delegate.getCellEditorValue(); | public Object getCellEditorValue() { return null; // TODO } // getCellEditorValue() |
return 0; | return clickCountToStart; | public int getClickCountToStart() { return 0; // TODO } // getClickCountToStart() |
return null; | return editorComponent; | public Component getComponent() { return null; // TODO } // getComponent() |
public Component getTableCellEditorComponent(JTable tree, Object value, | public Component getTableCellEditorComponent(JTable table, Object value, | public Component getTableCellEditorComponent(JTable tree, Object value, boolean isSelected, int row, int column) { return null; // TODO } // getTableCellEditorComponent() |
return null; | if (editorComponent instanceof JTextField) { ((JTextField)editorComponent).setText(value.toString()); delegate = new EditorDelegate(); ((JTextField)editorComponent).addActionListener(delegate); } else { } return editorComponent; | public Component getTableCellEditorComponent(JTable tree, Object value, boolean isSelected, int row, int column) { return null; // TODO } // getTableCellEditorComponent() |
return false; | return delegate.isCellEditable(event); | public boolean isCellEditable(EventObject event) { return false; // TODO } // isCellEditable() |
clickCountToStart = count; | public void setClickCountToStart(int count) { // TODO } // setClickCountToStart() | |
return false; | return delegate.shouldSelectCell(event); | public boolean shouldSelectCell(EventObject event) { return false; // TODO } // shouldSelectCell() |
return false; | return delegate.stopCellEditing(); | public boolean stopCellEditing() { return false; // TODO } // stopCellEditing() |
attribHash.put("fieldList", new XMLAttribute(Collections.synchronizedList(new ArrayList(super.sDefaultDataArraySize)), Constants.LIST_TYPE)); | attribHash.put("fieldList", new XMLAttribute(Collections.synchronizedList(new ArrayList(Specification.getInstance().getDefaultDataArraySize())), Constants.LIST_TYPE)); | private void init() { classXDFNodeName = "fieldAxis"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"fieldList"); attribOrder.add(0,"axisIdRef"); attribOrder.add(0,"axisId"); attribOrder.add(0,"align"); //not sure what it is??? attribOr... |
if (e.getKeyCode() == KeyEvent.VK_TAB) setPopupVisible(false); else if (keySelectionManager != null) { int i = keySelectionManager.selectionForKey(e.getKeyChar(), getModel()); if (i >= 0) setSelectedIndex(i); else super.processKeyEvent(e); } else super.processKeyEvent(e); | public void processKeyEvent(KeyEvent e) { } | |
if (newSelection != null) | protected void selectedItemChanged() { // Fire ItemEvent to indicated that previously selected item is now // deselected if (selectedItemReminder != null) fireItemStateChanged(new ItemEvent(this, ItemEvent.ITEM_STATE_CHANGED, selectedItemReminder, ... | |
keySelectionManager = aManager; | public void setKeySelectionManager(KeySelectionManager aManager) { } | |
selectedItemReminder = newDataModel.getSelectedItem(); | public void setModel(ComboBoxModel newDataModel) { // dataModel is null if it this method is called from inside the constructors. if (dataModel != null) { // Prevents unneccessary updates. if (dataModel == newDataModel) return; // Removes itself (as DataListener) from the to-... | |
public void checkAccess(ThreadGroup g) | public void checkAccess(Thread thread) | public void checkAccess(ThreadGroup g) { if (g.getParent() != null) checkPermission(new RuntimePermission("modifyThreadGroup")); } |
if (g.getParent() != null) checkPermission(new RuntimePermission("modifyThreadGroup")); } | if (thread.getThreadGroup() != null && thread.getThreadGroup().getParent() != null) checkPermission(new RuntimePermission("modifyThread")); } | public void checkAccess(ThreadGroup g) { if (g.getParent() != null) checkPermission(new RuntimePermission("modifyThreadGroup")); } |
screen.setVT(vt); | public Session5250 (Properties props, String configurationResource, String sessionName, SessionConfig config) { propFileName = config.getConfigurationResource(); sesConfig = config; this.configurationResource = configurationResource; this.sessionName = sess... | |
return vt.isConnected(); | if (vt == null) return false; else return vt.isConnected(); | public boolean isConnected() { return vt.isConnected(); } |
throws NotImplementedException | public String getSystemDisplayName(File f) throws NotImplementedException { // FIXME: Implement; return null; } | |
return null; | String name = null; if (f != null) { if (isRoot(f)) name = f.getAbsolutePath(); else { try { String path = f.getCanonicalPath(); name = path.substring(path.lastIndexOf(File.separator) + 1); } catch (IOException e) { name = f.getName(); } } } return name; | public String getSystemDisplayName(File f) throws NotImplementedException { // FIXME: Implement; return null; } |
return(selectedCheckbox); | return getCurrent (); | getSelectedCheckbox(){ return(selectedCheckbox);} |
setSelectedCheckbox(selectedCheckbox); | if (this.selectedCheckbox != null) { if (this.selectedCheckbox.getCheckboxGroup() != this) return; this.selectedCheckbox.setState(false); } this.selectedCheckbox = selectedCheckbox; if (selectedCheckbox != null) selectedCheckbox.setState(true); | setCurrent(Checkbox selectedCheckbox){ setSelectedCheckbox(selectedCheckbox);} |
if (this.selectedCheckbox != null) { if (this.selectedCheckbox.getCheckboxGroup() != this) return; this.selectedCheckbox.setState(false); } this.selectedCheckbox = selectedCheckbox; if (selectedCheckbox != null) selectedCheckbox.setState(true); | setCurrent (selectedCheckbox); | setSelectedCheckbox(Checkbox selectedCheckbox){ if (this.selectedCheckbox != null) { if (this.selectedCheckbox.getCheckboxGroup() != this) return; this.selectedCheckbox.setState(false); } this.selectedCheckbox = selectedCheckbox; if (selectedCheckbox != null) selectedCheckbox.setState(true)... |
setText(s); | FontMetrics fm = getToolkit().getFontMetrics(list.getFont()); int strWidth = SwingUtilities.computeStringWidth(fm, s); int cbWidth = getSize().width; if (cbWidth != 0 && strWidth > cbWidth) { char[] str = s.toCharArray(); int currWidth = 0; int i = 0; String postStr = "... "; cbWidth -= SwingUtilities.computeStringWidt... | public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String s = value.toString(); setText(s); setOpaque(true); UIDefaults defaults = UIMa... |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); if (isSelected) | if (isSelected || cellHasFocus) | public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String s = value.toString(); setText(s); setOpaque(true); UIDefaults defaults = UIMa... |
if (cellHasFocus) setBorder(UIManager.getBorder("List.focusCellHighlightBorder")); else setBorder(noFocusBorder); | public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String s = value.toString(); setText(s); setOpaque(true); UIDefaults defaults = UIMa... | |
} | public void setup(Map attributes) { // find out the modulus length Integer l = (Integer) attributes.get(MODULUS_LENGTH); L = (l == null ? DEFAULT_MODULUS_LENGTH : l.intValue()); if ((L % 64) != 0 || L < 512 || L > 1024) throw new IllegalArgumentException(MODULUS_LENGTH); // should we use the defa... | |
final VmStackFrame[] getVmStackTrace(Address argFrame, Address ip, int limit) { | final VmStackFrame[] getVmStackTrace(Address frame, Address ip, int limit) { | final VmStackFrame[] getVmStackTrace(Address argFrame, Address ip, int limit) { final Address frame = argFrame; Address f = frame; int count = 0; while (isValid(f) && (count < limit)) { count++; f = getPrevious(f); } if ((f != null) && !isStackBottom(f) && (count < limit)) { Unsafe.debug("Corrupted stack!,... |
final Address frame = argFrame; Address f = frame; | final VmStackFrameEnumerator sfEnum = new VmStackFrameEnumerator(this, frame, ip); | final VmStackFrame[] getVmStackTrace(Address argFrame, Address ip, int limit) { final Address frame = argFrame; Address f = frame; int count = 0; while (isValid(f) && (count < limit)) { count++; f = getPrevious(f); } if ((f != null) && !isStackBottom(f) && (count < limit)) { Unsafe.debug("Corrupted stack!,... |
while (isValid(f) && (count < limit)) { | while (sfEnum.isValid() && (count < limit)) { | final VmStackFrame[] getVmStackTrace(Address argFrame, Address ip, int limit) { final Address frame = argFrame; Address f = frame; int count = 0; while (isValid(f) && (count < limit)) { count++; f = getPrevious(f); } if ((f != null) && !isStackBottom(f) && (count < limit)) { Unsafe.debug("Corrupted stack!,... |
f = getPrevious(f); | sfEnum.next(); | final VmStackFrame[] getVmStackTrace(Address argFrame, Address ip, int limit) { final Address frame = argFrame; Address f = frame; int count = 0; while (isValid(f) && (count < limit)) { count++; f = getPrevious(f); } if ((f != null) && !isStackBottom(f) && (count < limit)) { Unsafe.debug("Corrupted stack!,... |
if ((f != null) && !isStackBottom(f) && (count < limit)) { Unsafe.debug("Corrupted stack!, st.length="); Unsafe.debug(count); Unsafe.debug(" f.magic="); } | final VmStackFrame[] getVmStackTrace(Address argFrame, Address ip, int limit) { final Address frame = argFrame; Address f = frame; int count = 0; while (isValid(f) && (count < limit)) { count++; f = getPrevious(f); } if ((f != null) && !isStackBottom(f) && (count < limit)) { Unsafe.debug("Corrupted stack!,... | |
f = frame; | sfEnum.reset(frame, ip); | final VmStackFrame[] getVmStackTrace(Address argFrame, Address ip, int limit) { final Address frame = argFrame; Address f = frame; int count = 0; while (isValid(f) && (count < limit)) { count++; f = getPrevious(f); } if ((f != null) && !isStackBottom(f) && (count < limit)) { Unsafe.debug("Corrupted stack!,... |
stack[i] = new VmStackFrame(f, this, ip); ip = stack[i].getReturnAddress().add(-1); f = getPrevious(f); | stack[i] = new VmStackFrame(sfEnum.getMethod(), sfEnum.getProgramCounter()); sfEnum.next(); | final VmStackFrame[] getVmStackTrace(Address argFrame, Address ip, int limit) { final Address frame = argFrame; Address f = frame; int count = 0; while (isValid(f) && (count < limit)) { count++; f = getPrevious(f); } if ((f != null) && !isStackBottom(f) && (count < limit)) { Unsafe.debug("Corrupted stack!,... |
} | if (isReadOnly()) { } else { } } | public void flush() throws IOException { //TODO: perhaps nothing todo (always readOnly ?) } |
public FSEntry getRootEntry() throws IOException { return new ISO9660Entry(volume.getVolumeDescriptor().getRootDirectoryEntry()); } | public FSEntry getRootEntry() throws IOException { return new ISO9660Entry(this, volume.getVolumeDescriptor() .getRootDirectoryEntry()); } | public FSEntry getRootEntry() throws IOException { return new ISO9660Entry(volume.getVolumeDescriptor().getRootDirectoryEntry()); } |
private Raster createCompatibleRaster(Raster raster) { | private Raster createCompatibleRaster(Raster raster, ColorModel model) { | private Raster createCompatibleRaster(Raster raster) { //todo fix gif images (index color model?), optimize final ColorModel dst_model = surface.getColorModel(); final int[] samples = new int[4]; final int w = raster.getWidth(); final int h = raster.getHeight(); final Writable... |
for (int y = 0; y < h; y++) { for (int x = 0; x < w; x++) { raster.getPixel(x, y, samples); dst_raster.setPixel(x, y, samples); | if(dst_model instanceof DirectColorModel) if(model instanceof ComponentColorModel){ for (int y = 0; y < h; y++) for (int x = 0; x < w; x++) dst_raster.setPixel(x, y, raster.getPixel(x, y, samples)); } else if(model instanceof IndexColorModel){ final IndexColorModel icm = (IndexColorModel) model; for (int y = 0; y < h; ... | private Raster createCompatibleRaster(Raster raster) { //todo fix gif images (index color model?), optimize final ColorModel dst_model = surface.getColorModel(); final int[] samples = new int[4]; final int w = raster.getWidth(); final int h = raster.getHeight(); final Writable... |
final Raster raster = ((BufferedImage) image).getRaster(); | final BufferedImage b_image = (BufferedImage) image; final Raster raster = b_image.getRaster(); | private Raster getCompatibleRaster(Image image) throws InterruptedException { final ColorModel dstModel = surface.getColorModel(); if (image instanceof BufferedImage) { // We have a direct raster final Raster raster = ((BufferedImage) image).getRaster(); if (dstModel.isCompatibleRaster(raster)) { // Raster ... |
return createCompatibleRaster(raster); | return createCompatibleRaster(raster, b_image.getColorModel()); | private Raster getCompatibleRaster(Image image) throws InterruptedException { final ColorModel dstModel = surface.getColorModel(); if (image instanceof BufferedImage) { // We have a direct raster final Raster raster = ((BufferedImage) image).getRaster(); if (dstModel.isCompatibleRaster(raster)) { // Raster ... |
final Raster raster = ((RenderedImage) image).getData(); | final RenderedImage r_image = (RenderedImage) image; final Raster raster = r_image.getData(); | private Raster getCompatibleRaster(Image image) throws InterruptedException { final ColorModel dstModel = surface.getColorModel(); if (image instanceof BufferedImage) { // We have a direct raster final Raster raster = ((BufferedImage) image).getRaster(); if (dstModel.isCompatibleRaster(raster)) { // Raster ... |
return createCompatibleRaster(raster); | return createCompatibleRaster(raster, r_image.getColorModel()); | private Raster getCompatibleRaster(Image image) throws InterruptedException { final ColorModel dstModel = surface.getColorModel(); if (image instanceof BufferedImage) { // We have a direct raster final Raster raster = ((BufferedImage) image).getRaster(); if (dstModel.isCompatibleRaster(raster)) { // Raster ... |
if (p.offset < lastOffset) { throw new VirtualMachineError( | if (p.offset < lastOffset) { throw new InternalError( | final void lock() { AddressPcEntry p = list; int count = 0; final ArrayList methods = new ArrayList(); while (p != null) { count++; final VmMethod m = p.method; if (!methods.contains(m)) { methods.add(m); } p = p.next;... |
if (lowerBound < 1) throw new IllegalArgumentException("lowerBound may not be less than 1"); | public JobMediaSheetsSupported(int lowerBound, int upperBound) { super(lowerBound, upperBound); } | |
workR.setBounds(r,c,getCol(ePos),getRow(ePos)); | workR.setBounds(r,c,c2,r2); | protected final void copyMe() { Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); StringBuffer s = new StringBuffer(); if (!gui.rubberband.isAreaSelected()) workR.setBounds(0,0,numCols,numRows); else { // lets get the bounding area using a rectangle that we have alr... |
if (tArea.contains(x,y)) { | public int getRowColFromPoint (int x, int y) { // is x,y in the drawing area // x is left to right and y is top to bottom if (tArea.contains(x,y)) {// int cols = (numCols - ((((fmWidth * numCols) - x) / fmWidth)));// System.out.println(cols); return getPos((numRows - ((((fmHeig... | |
return getPos((numRows - ((((fmHeight * (numRows)) - y) / fmHeight))), (numCols - ((((fmWidth * (numCols)) - x) / fmWidth))) ); | public int getRowColFromPoint (int x, int y) { // is x,y in the drawing area // x is left to right and y is top to bottom if (tArea.contains(x,y)) {// int cols = (numCols - ((((fmWidth * numCols) - x) / fmWidth)));// System.out.println(cols); return getPos((numRows - ((((fmHeig... | |
} | if (x > tArea.getMaxX()) x = (int)tArea.getMaxX() - 1; if (y > tArea.getMaxY()) y = (int)tArea.getMaxY() - 1; if (x < tArea.getMinX()) x = 0; if (y < tArea.getMinY()) y = 0; | public int getRowColFromPoint (int x, int y) { // is x,y in the drawing area // x is left to right and y is top to bottom if (tArea.contains(x,y)) {// int cols = (numCols - ((((fmWidth * numCols) - x) / fmWidth)));// System.out.println(cols); return getPos((numRows - ((((fmHeig... |
return 0; | int s = fmWidth * numCols; int t = s - x; int u = t / fmWidth; int v = numCols - u; int s0 = y / fmHeight; int s1 = x / fmWidth; return getPos(s0, s1 ); | public int getRowColFromPoint (int x, int y) { // is x,y in the drawing area // x is left to right and y is top to bottom if (tArea.contains(x,y)) {// int cols = (numCols - ((((fmWidth * numCols) - x) / fmWidth)));// System.out.println(cols); return getPos((numRows - ((((fmHeig... |
pos -= (numCols + 1); | public void moveCursor (MouseEvent e) { if(!keyboardLocked) { int pos = getRowColFromPoint(e.getX(),e.getY());// System.out.println((getRow(pos)) + "," + (getCol(pos)));// System.out.println(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); if (pos == 0) retur... | |
protected synchronized void paintComponent2(Graphics2D g2) { | protected void paintComponent2(Graphics2D g2) { | protected synchronized void paintComponent2(Graphics2D g2) { Rectangle r = g2.getClipBounds(); g2.setColor(colorBg);// System.out.println("PaintComponent " + r); g2.fillRect(r.x,r.y,r.width,r.height); int sPos = getRowColFromPoint(r.x, r.y); // fix me her... |
screen[lc++].drawChar(g2); | if (lc >= 0 && lc < lenScreen) screen[lc++].drawChar(g2); | protected synchronized void paintComponent2(Graphics2D g2) { Rectangle r = g2.getClipBounds(); g2.setColor(colorBg);// System.out.println("PaintComponent " + r); g2.fillRect(r.x,r.y,r.width,r.height); int sPos = getRowColFromPoint(r.x, r.y); // fix me her... |
resetError(); | setCursorActive(false); simulateMnemonic(getMnemonicValue("[reset]")); setCursorActive(true); | public void sendKeys(String text) {// if (text == null) {// return;// } if (isStatusErrorCode() && !resetRequired) { resetError();// if (!cursorActive)// setCursorOn(); } if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysr... |
setCursorActive(true); | public void sendKeys(String text) {// if (text == null) {// return;// } if (isStatusErrorCode() && !resetRequired) { resetError();// if (!cursorActive)// setCursorOn(); } if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysr... | |
int pos = getRowColFromPoint(end.x,end.y) - (numCols + 1); | int pos = getRowColFromPoint(end.x,end.y); | public Point translateEnd(Point end) { // because getRowColFromPoint returns position offset as 1,1 we need // to translate as offset 0,0 int pos = getRowColFromPoint(end.x,end.y) - (numCols + 1); int x = screen[pos].x + fmWidth - 1; int y = screen[pos].y + fmHeight - 1;// System.out.pr... |
int pos = getRowColFromPoint(start.x,start.y) - (numCols + 1); | int pos = getRowColFromPoint(start.x,start.y); | public Point translateStart(Point start) { // because getRowColFromPoint returns position offset as 1,1 we need // to translate as offset 0,0 int pos = getRowColFromPoint(start.x,start.y) - (numCols + 1); start.setLocation(screen[pos].x,screen[pos].y); return start; } |
if (gui.isVisible() && height > 0 && width > 0) { bi.drawImageBuffer(gg2d,x,y,width,height); | if (gui.isVisible()) { if (height > 0 && width > 0) { bi.drawImageBuffer(gg2d,x,y,width,height); } else { } | protected synchronized void updateImage(int x, int y , int width, int height) { if (gg2d == null) { gg2d = (Graphics2D)gui.getGraphics();// System.out.println("was null"); } if (bi == null || gg2d == null) return; g2d.setClip(x,y,width,height); if (!cursorActive && x ... |
setTitle(LangTool.getString("em.configTitle")); mainPanel.setLayout(borderLayout1); labelHost.setText(LangTool.getString("em.labelHost")); fieldHost.setColumns(20); labelPort.setText(LangTool.getString("em.labelPort")); fieldPort.setColumns(5); labelFrom.setText(LangTool.getString("em.labelFrom")); fieldFrom.setColumns... | setTitle(LangTool.getString("em.configTitle")); mainPanel.setLayout(borderLayout1); labelHost.setText(LangTool.getString("em.labelHost")); fieldHost.setColumns(20); labelPort.setText(LangTool.getString("em.labelPort")); fieldPort.setColumns(3); labelDefault.setText(LangTool.getString("em.labelDefault")); labelName.setT... | void jbInit() throws Exception { setTitle(LangTool.getString("em.configTitle")); mainPanel.setLayout(borderLayout1); labelHost.setText(LangTool.getString("em.labelHost")); fieldHost.setColumns(20); labelPort.setText(LangTool.getString("em.labelPort")); fieldPort.setColumns(5); labe... |
optCancel.setText(LangTool.getString("em.optCancelLabel")); optCancel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { optCancel_actionPerformed(e); } }); | optCancel.setPreferredSize(new Dimension(100, 27)); optCancel.setText(LangTool.getString("em.optCancelLabel")); optCancel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { optCancel_actionPerformed(e); } }); | void jbInit() throws Exception { setTitle(LangTool.getString("em.configTitle")); mainPanel.setLayout(borderLayout1); labelHost.setText(LangTool.getString("em.labelHost")); fieldHost.setColumns(20); labelPort.setText(LangTool.getString("em.labelPort")); fieldPort.setColumns(5); labe... |
labelFileName.setText(LangTool.getString("em.labelFileName")); fieldFileName.setText("tn5250j.txt"); fieldFileName.setColumns(20); optionsPanel.add(optDone, null); optionsPanel.add(optCancel, null); getContentPane().add(mainPanel); | labelFileName.setText(LangTool.getString("em.labelFileName")); fieldFileName.setText("tn5250j.txt"); fieldFileName.setColumns(20); | void jbInit() throws Exception { setTitle(LangTool.getString("em.configTitle")); mainPanel.setLayout(borderLayout1); labelHost.setText(LangTool.getString("em.labelHost")); fieldHost.setColumns(20); labelPort.setText(LangTool.getString("em.labelPort")); fieldPort.setColumns(5); labe... |
mainPanel.add(configPanel, BorderLayout.CENTER); configPanel.add(labelHost, null); mainPanel.add(optionsPanel, BorderLayout.SOUTH); configPanel.add(fieldHost, null); configPanel.add(labelPort, null); configPanel.add(fieldPort, null); configPanel.add(labelFrom, null); configPanel.add(fieldFrom, null); configPanel.add(l... | gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.insets = new Insets(10, 10, 5, 5); gbc.anchor = GridBagConstraints.WEST; configPanel.add(labelHost, gbc); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 0; gbc.gridwidth = 2; gbc.insets = new Insets(10, 5, 5, 10); gbc.anchor = GridBagConstra... | void jbInit() throws Exception { setTitle(LangTool.getString("em.configTitle")); mainPanel.setLayout(borderLayout1); labelHost.setText(LangTool.getString("em.labelHost")); fieldHost.setColumns(20); labelPort.setText(LangTool.getString("em.labelPort")); fieldPort.setColumns(5); labe... |
if (loadConfig(null)) { | mainPanel.add(configPanel, BorderLayout.NORTH); optionsPanel.add(optDone); optionsPanel.add(optCancel); mainPanel.add(optionsPanel, BorderLayout.SOUTH); | void jbInit() throws Exception { setTitle(LangTool.getString("em.configTitle")); mainPanel.setLayout(borderLayout1); labelHost.setText(LangTool.getString("em.labelHost")); fieldHost.setColumns(20); labelPort.setText(LangTool.getString("em.labelPort")); fieldPort.setColumns(5); labe... |
setProperties(); | getContentPane().add(mainPanel); | void jbInit() throws Exception { setTitle(LangTool.getString("em.configTitle")); mainPanel.setLayout(borderLayout1); labelHost.setText(LangTool.getString("em.labelHost")); fieldHost.setColumns(20); labelPort.setText(LangTool.getString("em.labelPort")); fieldPort.setColumns(5); labe... |
} | if (loadConfig(null)) { | void jbInit() throws Exception { setTitle(LangTool.getString("em.configTitle")); mainPanel.setLayout(borderLayout1); labelHost.setText(LangTool.getString("em.labelHost")); fieldHost.setColumns(20); labelPort.setText(LangTool.getString("em.labelPort")); fieldPort.setColumns(5); labe... |
centerMe(); | setProperties(); | void jbInit() throws Exception { setTitle(LangTool.getString("em.configTitle")); mainPanel.setLayout(borderLayout1); labelHost.setText(LangTool.getString("em.labelHost")); fieldHost.setColumns(20); labelPort.setText(LangTool.getString("em.labelPort")); fieldPort.setColumns(5); labe... |
} | } centerMe(); } | void jbInit() throws Exception { setTitle(LangTool.getString("em.configTitle")); mainPanel.setLayout(borderLayout1); labelHost.setText(LangTool.getString("em.labelHost")); fieldHost.setColumns(20); labelPort.setText(LangTool.getString("em.labelPort")); fieldPort.setColumns(5); labe... |
SMTPProperties.setProperty("mail.smtp.host",fieldHost.getText()); SMTPProperties.setProperty("mail.smtp.port",fieldPort.getText()); SMTPProperties.setProperty("mail.smtp.from",fieldFrom.getText()); | SMTPProperties.setProperty("mail.smtp.host", fieldHost.getText()); SMTPProperties.setProperty("mail.smtp.port", fieldPort.getText()); SMTPProperties.setProperty("mail.smtp.from", fieldFrom.getText()); SMTPProperties.setProperty("mail.smtp.realname", fieldName.getText()); | void optDone_actionPerformed(ActionEvent e) { SMTPProperties.setProperty("mail.smtp.host",fieldHost.getText()); SMTPProperties.setProperty("mail.smtp.port",fieldPort.getText()); SMTPProperties.setProperty("mail.smtp.from",fieldFrom.getText()); // file name SMTPProperties.setProperty("fileNam... |
fieldHost.setText(SMTPProperties.getProperty("mail.smtp.host")); fieldPort.setText(SMTPProperties.getProperty("mail.smtp.port")); fieldFrom.setText(SMTPProperties.getProperty("mail.smtp.from")); | fieldHost.setText(SMTPProperties.getProperty("mail.smtp.host")); fieldPort.setText(SMTPProperties.getProperty("mail.smtp.port")); fieldFrom.setText(SMTPProperties.getProperty("mail.smtp.from")); fieldName.setText(SMTPProperties.getProperty("mail.smtp.realname")); | private void setProperties() { // mail.smtp.host= Fill in the host name or ip address of your SMTP // mail server. // // mail.smtp.port= Fill in the port to use to connect // // mail.smtp.from= This is the e-mail address from. For examp... |
bad.minor = Minor.Any; | public static DynAny[] extract(Any any) { try { return ((DynAnySeqHolder) any.extract_Streamable()).value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("DynAnySeq expected"); bad.initCause(cex); throw bad; } } | |
addPropertyChangeListener(new ValuePropertyHandler(dialog)); | public JDialog createDialog(Component parentComponent, String title) { Frame toUse = getFrameForComponent(parentComponent); if (toUse == null) toUse = getRootFrame(); JDialog dialog = new JDialog(toUse, title); inputValue = UNINITIALIZED_VALUE; value = UNINITIALIZED_VALUE; dialog.getContentPan... | |
public ConfirmationCallback(String prompt, int messageType, int optionType, int defaultOption) | public ConfirmationCallback(int messageType, int optionType, int defaultOption) throws IllegalArgumentException | public ConfirmationCallback(String prompt, int messageType, int optionType, int defaultOption) { super(); setPrompt(prompt); setMessageType(messageType); setOptionType(optionType, defaultOption); this.defaultOption = defaultOption; } |
setPrompt(prompt); | public ConfirmationCallback(String prompt, int messageType, int optionType, int defaultOption) { super(); setPrompt(prompt); setMessageType(messageType); setOptionType(optionType, defaultOption); this.defaultOption = defaultOption; } | |
Thread currentThread = Thread.currentThread(); | Map map = Thread.getThreadLocals(); | public Object get() { Thread currentThread = Thread.currentThread(); // Note that we don't have to synchronize, as only this thread will // ever modify the returned value and valueMap is a synchronizedMap. Object value = valueMap.get(currentThread); if (value == null) { value = initialValue(); valu... |
Object value = valueMap.get(currentThread); | Object value = map.get(key); | public Object get() { Thread currentThread = Thread.currentThread(); // Note that we don't have to synchronize, as only this thread will // ever modify the returned value and valueMap is a synchronizedMap. Object value = valueMap.get(currentThread); if (value == null) { value = initialValue(); valu... |
valueMap.put(currentThread, value == null ? NULL : value); | map.put(key, value == null ? NULL : value); | public Object get() { Thread currentThread = Thread.currentThread(); // Note that we don't have to synchronize, as only this thread will // ever modify the returned value and valueMap is a synchronizedMap. Object value = valueMap.get(currentThread); if (value == null) { value = initialValue(); valu... |
valueMap.put(Thread.currentThread(), value == null ? NULL : value); | map.put(key, value == null ? NULL : value); | public void set(Object value) { // Note that we don't have to synchronize, as only this thread will // ever modify the returned value and valueMap is a synchronizedMap. valueMap.put(Thread.currentThread(), value == null ? NULL : value); } |
y1 = yPoints[1] + 1; x2 = xPoints[2] - 1; | y1 = yPoints[1]; x2 = xPoints[2]; | public void paintTriangle(Graphics g, int x, int y, int size, int direction, boolean isEnabled) { Polygon arrow = null; switch (direction) { case NORTH: arrow = upIcon; break; case SOUTH: arrow = downIcon; break; case EAST: case RIGHT: arrow = rightIcon; brea... |
catch (IllegalAccessException ex) {} catch (InstantiationException ex) {} catch (ClassNotFoundException ex) {} | catch (Exception ex) {} | private static ResourceBundle tryBundle(String localizedName, ClassLoader classloader) { ResourceBundle bundle = null; try { Class rbClass; if (classloader == null) rbClass = Class.forName(localizedName); else rbClass = c... |
if (config.getStringProperty("print.font").length() > 0) { font = new Font(config.getStringProperty("print.font"), Font.PLAIN, 8); } | public void run () {// Toolkit tk = Toolkit.getDefaultToolkit();//int [][] range = new int[][] {//new int[] { 1, 1 }//};// JobAttributes jobAttributes = new JobAttributes(1, JobAttributes.DefaultSelectionType.ALL, JobAttributes.DestinationType.PRINTER, JobAttributes.DialogType.NONE, "file", 1, 1, JobAttributes.Multi... | |
g.setColor(Color.BLACK); | if (c.isEnabled()) g.setColor(MetalLookAndFeel.getBlack()); else g.setColor(MetalLookAndFeel.getControlDisabled()); | protected void drawCheck(Component c, Graphics g, int x, int y) { g.setColor(Color.BLACK); g.drawLine(3 + x, 5 + y, 3 + x, 9 + y); g.drawLine(4 + x, 5 + y, 4 + x, 9 + y); g.drawLine(5 + x, 7 + y, 9 + x, 3 + y); g.drawLine(5 + x, 8 + y, 9 + x, 4 + y); } |
if ((fcw1 & 0x88) == 0x88) | if (fcw1 == 0x88) | public ScreenField setField(int attr, int row, int col, int len, int ffw1, int ffw2, int fcw1, int fcw2) { ScreenField sf = null; screenFields[nextField] = new ScreenField(screen); screenFields[nextField].setField(attr,row,col,len,ffw1,ffw2,fcw1,fcw2); sf = screenFields[... |
int stop = formatCommandList.size(); for (int i = 0; i < stop; i++) { | int stop2 = formatCommandList.size(); for (int i = 0; i < stop2; i++) { | private void nestedToXDF(OutputStream outputstream, String indent, int which, int stop) { //base condition if (which > stop) { if (sPrettyXDFOutput) { writeOut(outputstream, Constants.NEW_LINE); writeOut(outputstream, indent); } synchronized (formatCommandList) { int stop = f... |
if (isLinux && keyCode == e.VK_ALT_GRAPH) { | if (isLinux && keyCode == KeyEvent.VK_ALT_GRAPH) { | 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... |
if (keyCode == e.VK_UNDEFINED || keyCode == e.VK_CAPS_LOCK || keyCode == e.VK_SHIFT || keyCode == e.VK_ALT || keyCode == e.VK_ALT_GRAPH || keyCode == e.VK_CONTROL | if (keyCode == KeyEvent.VK_UNDEFINED || keyCode == KeyEvent.VK_CAPS_LOCK || keyCode == KeyEvent.VK_SHIFT || keyCode == KeyEvent.VK_ALT || keyCode == KeyEvent.VK_ALT_GRAPH || keyCode == KeyEvent.VK_CONTROL | 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... |
if (isLinux && e.getKeyCode() == e.VK_ALT_GRAPH) { | if (isLinux && e.getKeyCode() == KeyEvent.VK_ALT_GRAPH) { | 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... |
if (b.isSelected()) sel = b.getModel(); | public void add(AbstractButton b) { b.getModel().setGroup(this); buttons.addElement(b); } | |
log.warn("Missing static initializer in class " + vmClass.getName()); | log("Missing static initializer in class " + vmClass.getName(), Project.MSG_WARN); | protected void emitStaticInitializerCalls(NativeStream nativeOs, VmType[] bootClasses, Object clInitCaller) throws ClassNotFoundException { final X86Stream os = (X86Stream) nativeOs; X86Stream.ObjectInfo initCallerObject = os.startObject(loadClass(VmMethodCode.class)); os.setObjectRef(clInitCaller); // Call VmClas... |
log.info("Creating image"); | log("Creating image"); | protected void storeImage(NativeStream os) throws BuildException { try { log.info("Creating image"); FileOutputStream fos = new FileOutputStream(getDestFile()); fos.write(os.getBytes(), 0, os.getLength()); fos.close(); /* * log.info("Creating ELF image"); final long start = System.currentTimeMillis(); fi... |
static int nativeLoad(String filename) { | static int nativeLoad(String filename, ClassLoader loader) { | static int nativeLoad(String filename) { return 0; } |
if (Internet.version.since_inclusive(1, 1)) | public void _read_no_endian(cdrInput c) throws IOException, BAD_PARAM { Id = c.read_string(); int n_profiles = c.read_long(); for (int i = 0; i < n_profiles; i++) { int tag = c.read_long(); cdrBufInput profile = c.read_encapsulation(); if (tag == Internet_prof... | |
if (!Big_Endian) b.append(" (Little endian) "); | public String toString() { StringBuffer b = new StringBuffer(); b.append(Id); b.append(" at "); b.append(Internet); b.append(" Key "); for (int i = 0; i < key.length; i++) { b.append(Integer.toHexString(key [ i ] & 0xFF)); } b.append(" "); b.append(CodeSets); return b.toSt... | |
*/ return new JNodeGraphics(this); | public Graphics getGraphics() { final Component parent = targetComponent.getParent(); if (parent != null) { final int x = peerComponent.getX(); final int y = peerComponent.getY(); final int width = peerComponent.getWidth(); final int height = peerComponent.g... | |
this.operand = getOperand(varIndex); refs = new Operand[] { operand }; | refs = new Operand[] { getOperand(varIndex) }; | public VarReturnQuad(int address, IRBasicBlock block, int varIndex) { super(address, block); this.operand = getOperand(varIndex); refs = new Operand[] { operand }; } |
return getAddress() + ": return " + operand; | return getAddress() + ": return " + refs[0]; | public String toString() { return getAddress() + ": return " + operand; } |
return null; | return VMCompiler.command(arg); | public static Object command(Object arg) { // Our implementation defines this to a no-op. return null; } |
return false; | return VMCompiler.compileClass(oneClass); | public static boolean compileClass(Class oneClass) { // Never succeed. return false; } |
return false; | return VMCompiler.compileClasses(classNames); | public static boolean compileClasses(String classNames) { // Note the incredibly lame interface. Always fail. return false; } |
VMCompiler.disable(); | public static void disable() { } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.