rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
bad.minor = Minor.Any;
public static TaggedProfile extract(Any any) { try { return ((TaggedProfileHolder) any.extract_Streamable()).value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("TaggedProfile expected"); bad.initCause(cex); throw bad; } }
if (href !=null) writeOut(outputstream, " href = \"" + href + "\"");
if (href !=null) { writeOut(outputstream, " href = \""); writeOutAttribute(outputstream, href); writeOut(outputstream, "\""); }
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String strIndent, boolean dontCloseNode, String newNodeNameStri...
if (checksum != null) writeOut(outputstream, " checksum = \"" + checksum.toString() + "\"");
if (checksum != null) { writeOut(outputstream, " checksum = \""); writeOutAttribute(outputstream, checksum.toString()); writeOut(outputstream, "\""); }
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String strIndent, boolean dontCloseNode, String newNodeNameStri...
Ext2Debugger.error("BLOCK FLUSHED FROM CACHE",1);
log.error("BLOCK FLUSHED FROM CACHE");
public void flush() { if(!dirty) return; //XXX... Ext2Debugger.error("BLOCK FLUSHED FROM CACHE",1); }
return target.getAlignmentX();
return 0.0F;
public float getLayoutAlignmentX(Container target) { return target.getAlignmentX(); }
return target.getAlignmentY();
return 0.0F;
public float getLayoutAlignmentY(Container target) { return target.getAlignmentY(); }
synchronized (this) { glassPaneBounds = null; layeredPaneBounds = null; contentPaneBounds = null; menuBarBounds = null; prefSize = null; }
public void invalidateLayout(Container target) { // Nothing to do here. }
Dimension menuBarSize; int containerWidth = c.getBounds().width - getInsets().left - getInsets().right; int containerHeight = c.getBounds().height - getInsets().top - getInsets().bottom; Dimension contentPaneSize = contentPane.getPreferredSize();
if (glassPaneBounds == null || layeredPaneBounds == null || contentPaneBounds == null || menuBarBounds == null) { Insets i = getInsets(); int containerWidth = c.getBounds().width - i.left - i.right; int containerHeight = c.getBounds().height - i.top - i.bottom;
public void layoutContainer(Container c) { Dimension menuBarSize; int containerWidth = c.getBounds().width - getInsets().left - getInsets().right; int containerHeight = c.getBounds().height - getInsets().top - getInsets().bottom; Dimension ...
/* if size of top-level window wasn't set then just set contentPane and menuBar to its preferred sizes. Otherwise, if the size of top-level window was specified then set menuBar to its preferred size and make content pane to fit into the remaining space
public void layoutContainer(Container c) { Dimension menuBarSize; int containerWidth = c.getBounds().width - getInsets().left - getInsets().right; int containerHeight = c.getBounds().height - getInsets().top - getInsets().bottom; Dimension ...
+-------------------------------+ | JLayeredPane | | +--------------------------+ | | | menuBar | | | +--------------------------+ | | +--------------------------+ | | |contentPane | | | | | | | | | | | | ...
public void layoutContainer(Container c) { Dimension menuBarSize; int containerWidth = c.getBounds().width - getInsets().left - getInsets().right; int containerHeight = c.getBounds().height - getInsets().top - getInsets().bottom; Dimension ...
int maxWidth; menuBarSize = menuBar.getPreferredSize(); maxWidth = Math.max(menuBarSize.width, contentPaneSize.width); menuBar.setBounds(0, 0, maxWidth, menuBarSize.height); glassPane.setBounds(0, 0, maxWidth, menuBarSize.height + contentPaneSize.height); contentPane.setBounds(0, menuBarSize.height, maxWidth, contentPa...
Dimension menuBarSize = menuBar.getPreferredSize(); if (menuBarSize.height > containerHeight) menuBarSize.height = containerHeight; menuBarBounds = new Rectangle(0, 0, containerWidth, menuBarSize.height); contentPaneBounds = new Rectangle(0, menuBarSize.height, containerWidth, containerHeight - menuBarSize.height);
public void layoutContainer(Container c) { Dimension menuBarSize; int containerWidth = c.getBounds().width - getInsets().left - getInsets().right; int containerHeight = c.getBounds().height - getInsets().top - getInsets().bottom; Dimension ...
{ glassPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); contentPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); layeredPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); }
contentPaneBounds = new Rectangle(0, 0, containerWidth, containerHeight); glassPaneBounds = new Rectangle(i.left, i.top, containerWidth, containerHeight); layeredPaneBounds = new Rectangle(i.left, i.top, containerWidth, containerHeight);
public void layoutContainer(Container c) { Dimension menuBarSize; int containerWidth = c.getBounds().width - getInsets().left - getInsets().right; int containerHeight = c.getBounds().height - getInsets().top - getInsets().bottom; Dimension ...
else { if (menuBar != null) { menuBarSize = menuBar.getPreferredSize(); if (menuBarSize.height > containerHeight) menuBarSize.height = containerHeight; menuBar.setBounds(0, 0, containerWidth, menuBarSize.height); glassPane.setBounds(0, 0, containerWidth, containerHeight); contentPane.setBounds(0, menuBarSize.height, co...
glassPane.setBounds(glassPaneBounds); layeredPane.setBounds(layeredPaneBounds); if (menuBar != null) menuBar.setBounds(menuBarBounds); contentPane.setBounds(contentPaneBounds);
public void layoutContainer(Container c) { Dimension menuBarSize; int containerWidth = c.getBounds().width - getInsets().left - getInsets().right; int containerHeight = c.getBounds().height - getInsets().top - getInsets().bottom; Dimension ...
Dimension menuBarSize; Dimension prefSize; Dimension containerSize = c.getSize(); Dimension contentPaneSize = contentPane.getPreferredSize(); if (containerSize.width == 0 && containerSize.height == 0)
synchronized (this)
public Dimension preferredLayoutSize(Container c) { Dimension menuBarSize; Dimension prefSize; Dimension containerSize = c.getSize(); Dimension contentPaneSize = contentPane.getPreferredSize(); if (containerSize.width == 0 && containerSize.height == 0) { if (menuBar != nu...
int maxWidth; menuBarSize = menuBar.getPreferredSize(); maxWidth = Math.max(menuBarSize.width, contentPaneSize.width); prefSize = new Dimension(maxWidth, contentPaneSize.height + menuBarSize.height);
Dimension menuBarSize = menuBar.getPreferredSize(); if (menuBarSize.width > contentPrefSize.width) prefSize.width += menuBarSize.width - contentPrefSize.width; prefSize.height += menuBarSize.height;
public Dimension preferredLayoutSize(Container c) { Dimension menuBarSize; Dimension prefSize; Dimension containerSize = c.getSize(); Dimension contentPaneSize = contentPane.getPreferredSize(); if (containerSize.width == 0 && containerSize.height == 0) { if (menuBar != nu...
else prefSize = contentPaneSize;
public Dimension preferredLayoutSize(Container c) { Dimension menuBarSize; Dimension prefSize; Dimension containerSize = c.getSize(); Dimension contentPaneSize = contentPane.getPreferredSize(); if (containerSize.width == 0 && containerSize.height == 0) { if (menuBar != nu...
else prefSize = c.getSize(); return prefSize;
return new Dimension(prefSize); }
public Dimension preferredLayoutSize(Container c) { Dimension menuBarSize; Dimension prefSize; Dimension containerSize = c.getSize(); Dimension contentPaneSize = contentPane.getPreferredSize(); if (containerSize.width == 0 && containerSize.height == 0) { if (menuBar != nu...
Runtime getRunTimeCodeBase();
RunTime getRunTimeCodeBase();
Runtime getRunTimeCodeBase();
String repositoryID, Runtime sender);
String repositoryID, RunTime sender);
Serializable readValue(InputStream in, int offset, Class clz, String repositoryID, Runtime sender);
firePropertyChange(CELL_RENDERER_PROPERTY_CHANGED, old, renderer);
firePropertyChange("cellRenderer", old, renderer);
public void setCellRenderer(ListCellRenderer renderer) { if (cellRenderer == renderer) return; ListCellRenderer old = cellRenderer; cellRenderer = renderer; firePropertyChange(CELL_RENDERER_PROPERTY_CHANGED, old, renderer); revalidate(); repaint(); }
firePropertyChange(FIXED_CELL_WIDTH_PROPERTY_CHANGED, old, h);
firePropertyChange("fixedCellWidth", old, h);
public void setFixedCellHeight(int h) { int old = fixedCellHeight; fixedCellHeight = h; firePropertyChange(FIXED_CELL_WIDTH_PROPERTY_CHANGED, old, h); }
public void setFixedCellWidth(int h)
public void setFixedCellWidth(int w)
public void setFixedCellWidth(int h) { int old = fixedCellHeight; fixedCellHeight = h; firePropertyChange(FIXED_CELL_HEIGHT_PROPERTY_CHANGED, old, h); }
int old = fixedCellHeight; fixedCellHeight = h; firePropertyChange(FIXED_CELL_HEIGHT_PROPERTY_CHANGED, old, h);
if (fixedCellWidth == w) return; int old = fixedCellWidth; fixedCellWidth = w; firePropertyChange("fixedCellWidth", old, w);
public void setFixedCellWidth(int h) { int old = fixedCellHeight; fixedCellHeight = h; firePropertyChange(FIXED_CELL_HEIGHT_PROPERTY_CHANGED, old, h); }
firePropertyChange(MODEL_PROPERTY_CHANGED, old, model);
firePropertyChange("model", old, model);
public void setModel(ListModel model) { if (this.model == model) return; if (this.model != null) this.model.removeListDataListener(listListener); ListModel old = this.model; this.model = model; if (this.model != null) this.model.addListDataListener(listListener); fire...
firePropertyChange(PROTOTYPE_CELL_VALUE_PROPERTY_CHANGED, old, obj);
firePropertyChange("prototypeCellValue", old, obj);
public void setPrototypeCellValue(Object obj) { Object old = prototypeCellValue; Component comp = getCellRenderer() .getListCellRendererComponent(this, obj, 0, false, false); Dimension d = comp.getPreferredSize(); fixedCellWidth = d.width; fixedCellHeight = d.height; prototypeCellValue = obj;...
firePropertyChange(SELECTION_BACKGROUND_PROPERTY_CHANGED, old, c);
firePropertyChange("selectionBackground", old, c);
public void setSelectionBackground(Color c) { Color old = selectionBackground; selectionBackground = c; firePropertyChange(SELECTION_BACKGROUND_PROPERTY_CHANGED, old, c); repaint(); }
firePropertyChange(SELECTION_FOREGROUND_PROPERTY_CHANGED, old, c);
firePropertyChange("selectionForeground", old, c);
public void setSelectionForeground(Color c) { Color old = selectionForeground; selectionForeground = c; firePropertyChange(SELECTION_FOREGROUND_PROPERTY_CHANGED, old, c); }
firePropertyChange(SELECTION_MODEL_PROPERTY_CHANGED, old, model);
firePropertyChange("selectionModel", old, model);
public void setSelectionModel(ListSelectionModel model) { if (selectionModel == model) return; if (selectionModel != null) selectionModel.removeListSelectionListener(listListener); ListSelectionModel old = selectionModel; selectionModel = model; if (selectionModel != null) s...
public PhiAssignQuad(IRBasicBlock dfb, int lhsIndex) { this(dfb.getStartPC(), dfb, lhsIndex);
public PhiAssignQuad(int address, IRBasicBlock block, int lhsIndex) { super(address, block, lhsIndex); phi = new PhiOperand();
public PhiAssignQuad(IRBasicBlock dfb, int lhsIndex) { this(dfb.getStartPC(), dfb, lhsIndex); }
System.out.println("session found and closing down " + index);
log.info("session found and closing down " + index);
public void removeSessionView(Session targetSession) { if (hideTabBar && sessionPane.getTabCount() == 0) { for (int x=0; x < getContentPane().getComponentCount(); x++) { if (getContentPane().getComponent(x) instanceof Session) { getContentPane().remove(x); } }...
item.processMouseEvent(e, path, manager);
public void processMouseEvent(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager) { // TODO: What should be done here? }
bad.minor = Minor.Any;
public static NameValuePair[] extract(Any any) { try { return ((NameValuePairSeqHolder) any.extract_Streamable()).value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("NameValuePairSeq expected"); bad.initCause(cex); throw bad; } }
desktopFrame.dispose(); desktopFrame = null;
if(desktopFrame != null) { desktopFrame.dispose(); desktopFrame = null; }
protected void onClose() { log.debug("onClose"); // Stop the repaint manager if (repaintManager != null) { repaintManager.shutdown(); repaintManager = null; } // Close the desktop desktopFrame.dispose(); desktopFrame = null; }
public void addImpl(Component comp, Object constraints, int index)
protected void addImpl(Component comp, Object constraints, int index)
public void addImpl(Component comp, Object constraints, int index) { if (getComponentCount() > 0) remove(getComponents()[0]); super.addImpl(comp, constraints, index); }
assert(mark <= gapStart || mark > gapEnd);
assert mark <= gapStart || mark > gapEnd : "mark: " + mark + ", gapStart: " + gapStart + ", gapEnd: " + gapEnd;
public int getOffset() { // Check precondition. assert(mark <= gapStart || mark > gapEnd); if (mark <= gapStart) return mark; else return mark - (gapEnd - gapStart); }
gapEnd += rmSize;
shiftGapEndUp(gapEnd + rmSize);
protected void replace(int position, int rmSize, Object addItems, int addSize) { // Remove content shiftGap(position); gapEnd += rmSize; // If gap is too small, enlarge the gap. if ((gapEnd - gapStart) < addSize) shiftEnd(addSize); // Add new items to the buffer. if ...
if ((gapEnd - gapStart) < addSize) shiftEnd(addSize);
if ((gapEnd - gapStart) <= addSize) shiftEnd((addSize - gapEnd + gapStart + 1) * 2 + gapEnd + DEFAULT_BUFSIZE);
protected void replace(int position, int rmSize, Object addItems, int addSize) { // Remove content shiftGap(position); gapEnd += rmSize; // If gap is too small, enlarge the gap. if ((gapEnd - gapStart) < addSize) shiftEnd(addSize); // Add new items to the buffer. if ...
System.arraycopy(addItems, 0, buffer, gapStart, addSize); gapStart += addSize;
System.arraycopy(addItems, 0, buffer, gapStart, addSize); gapStart += addSize; }
protected void replace(int position, int rmSize, Object addItems, int addSize) { // Remove content shiftGap(position); gapEnd += rmSize; // If gap is too small, enlarge the gap. if ((gapEnd - gapStart) < addSize) shiftEnd(addSize); // Add new items to the buffer. if ...
}
protected void replace(int position, int rmSize, Object addItems, int addSize) { // Remove content shiftGap(position); gapEnd += rmSize; // If gap is too small, enlarge the gap. if ((gapEnd - gapStart) < addSize) shiftEnd(addSize); // Add new items to the buffer. if ...
int delta = (gapEnd - gapStart) - newSize;
assert newSize > (gapEnd - gapStart) : "The new gap size must be greater " + "than the old gap size"; int delta = newSize - gapEnd + gapStart; Vector v = getPositionsInRange(null, gapEnd, buffer.length - gapEnd); for (Iterator i = v.iterator(); i.hasNext();) { GapContentPosition p = (GapContentPosition) i.next(); p.m...
protected void shiftEnd(int newSize) { int delta = (gapEnd - gapStart) - newSize; char[] newBuf = (char[]) allocateArray(length() + newSize); System.arraycopy(buffer, 0, newBuf, 0, gapStart); System.arraycopy(buffer, gapEnd, newBuf, gapStart + newSize, buffer.length - gapEnd); gapEnd = gapStart...
int index = Collections.binarySearch(positions, new GapContentPosition( gapEnd)); if (index < 0) { index = -(index + 1); } for (ListIterator i = positions.listIterator(index); i.hasNext();) { GapContentPosition p = (GapContentPosition) i.next(); p.mark += delta; }
protected void shiftEnd(int newSize) { int delta = (gapEnd - gapStart) - newSize; char[] newBuf = (char[]) allocateArray(length() + newSize); System.arraycopy(buffer, 0, newBuf, 0, gapStart); System.arraycopy(buffer, gapEnd, newBuf, gapStart + newSize, buffer.length - gapEnd); gapEnd = gapStart...
int newGapEnd = newGapStart + (gapEnd - gapStart); int index1 = Collections.binarySearch(positions, new GapContentPosition(gapEnd)); int index2 = Collections.binarySearch(positions, new GapContentPosition(newGapEnd)); if (index1 > 0 && index2 > 0) { int i1 = Math.min(index1, index2); int i2 = Math.max(index1, index2...
int newGapEnd = newGapStart + gapEnd - gapStart;
protected void shiftGap(int newGapStart) { if (newGapStart == gapStart) return; int newGapEnd = newGapStart + (gapEnd - gapStart); // Update the positions between newGapEnd and (old) gapEnd. The marks // must be shifted by (gapEnd - newGapEnd). int index1 = Collections.binarySearch(positions, ...
jComponent.getContentPane().setLayout(null);
jComponent.getContentPane().setLayout(new SwingContainerLayout(this));
public SwingDialogPeer(SwingToolkit toolkit, Dialog dialog) { super(toolkit, dialog, new SwingDialog(dialog)); jComponent.setTitle(dialog.getTitle()); jComponent.getContentPane().setLayout(null); }
{
public AccessibleContext getAccessibleContext(){ /* Create the context if this is the first request */ if (accessibleContext == null) { /* Create the context */ accessibleContext = new AccessibleAWTLabel(); } return accessibleContext;}
}
public AccessibleContext getAccessibleContext(){ /* Create the context if this is the first request */ if (accessibleContext == null) { /* Create the context */ accessibleContext = new AccessibleAWTLabel(); } return accessibleContext;}
if (File.separator.equals("/"))
public static FileSystemView getFileSystemView() { if (defaultFileSystemView == null) { if (File.separator.equals("/")) defaultFileSystemView = new UnixFileSystemView(); // FIXME: need to implement additional views // else if (File.Separator.equals("\")) // return new Win32FileSystem...
return null;
String name = null; if (f != null) name = f.getName(); return name;
public String getSystemDisplayName(File f) { return null; }
protected void fireConfigChanged() {
protected void fireConfigChanged(SessionConfigEvent sce) {
protected void fireConfigChanged() { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { SessionConfigListener target = (SessionConfigListener)listeners.elementAt(i); target.onConfigChanged(sce); } } }
public List getAxisTags() { List tags = new ArrayList();
public String[] getAxisTags() { List axisList = getParentArray().getAxisList(); int stop = axisList.size(); String[] tags = new String[stop];
public List getAxisTags() { List tags = new ArrayList(); String tag; String axisId; String tempTag; List axisList = getParentArray().getAxisList(); int counter = axisList.size(); for (int i = 0; i<axisList.size(); i++) { axisId = ((Axis)axisList.get(i)).getAxisId(); tag = "d" + counter...
List axisList = getParentArray().getAxisList(); int counter = axisList.size(); for (int i = 0; i<axisList.size(); i++) {
int counter = stop; for (int i = 0; i < stop; i++) {
public List getAxisTags() { List tags = new ArrayList(); String tag; String axisId; String tempTag; List axisList = getParentArray().getAxisList(); int counter = axisList.size(); for (int i = 0; i<axisList.size(); i++) { axisId = ((Axis)axisList.get(i)).getAxisId(); tag = "d" + counter...
tag = "d" + counter--;
counter--; tag = "d" + counter;
public List getAxisTags() { List tags = new ArrayList(); String tag; String axisId; String tempTag; List axisList = getParentArray().getAxisList(); int counter = axisList.size(); for (int i = 0; i<axisList.size(); i++) { axisId = ((Axis)axisList.get(i)).getAxisId(); tag = "d" + counter...
tags.add(tag);
tags[i] = tag;
public List getAxisTags() { List tags = new ArrayList(); String tag; String axisId; String tempTag; List axisList = getParentArray().getAxisList(); int counter = axisList.size(); for (int i = 0; i<axisList.size(); i++) { axisId = ((Axis)axisList.get(i)).getAxisId(); tag = "d" + counter...
for (int i = 0; i < attribs.size(); i++) {
int stop = attribs.size(); for (int i = 0; i < stop; i++) {
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { boolean niceOutput = super.sPrettyXDFOutput; String myIndent; if (indent!=null) myIndent = indent; ...
List tags = Collections.synchronizedList(getAxisTags());
String[] tags = getAxisTags();
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { boolean niceOutput = super.sPrettyXDFOutput; String myIndent; if (indent!=null) myIndent = indent; ...
for (int i = 0; i <axisList.size(); i++) { axisId = ((Axis) axisList.get(i)).getAxisId(); tag = (String)tags.get(i); if (niceOutput) { writeOut(outputstream, moreIndent); } writeOut(outputstream, "<" + TagToAxisNodeName + " axisIdRef=\\" + axisId + "\\" + "tag = \\" + tag + "\\/>"); if (niceOutput) { writeOut(outputstr...
int stop = axisList.size(); synchronized (axisList) { for (int i = 0; i <stop; i++) { axisId = ((Axis) axisList.get(i)).getAxisId(); tag = tags[i]; if (niceOutput) { writeOut(outputstream, moreIndent); } writeOut(outputstream, "<" + TagToAxisNodeName + " axisIdRef=\"" + axisId + "\"" + " tag = \"" + tag + "\"/>"); if (...
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { boolean niceOutput = super.sPrettyXDFOutput; String myIndent; if (indent!=null) myIndent = indent; ...
int cp = screen52.getCurrentPos();
int cp = screen52.getScreenFields().getCurrentFieldPos();
public final void saveScreen() throws IOException { ByteArrayOutputStream sc = new ByteArrayOutputStream(); sc.write(4); sc.write(0x12); // 18 sc.write(0); // 18 sc.write(0); // 18 sc.write((byte) screen52.getRows()); // store the current size sc.write((byte) screen52.getColumns()); // "" int cp = screen52....
if (pendingUnlock)
if (pendingUnlock && !screen52.isStatusErrorCode()) {
public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicel...
}
public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicel...
screen52.setPrehelpState(true);
public void sendNegResponse2(int ec) { baosp.write(0x00); baosp.write(ec); try { writeGDS(1, 0, baosp.toByteArray()); } catch (IOException ioe) { System.out.println(ioe.getMessage()); } baosp.reset(); }
screen52.setStatus(screen52.STATUS_ERROR_CODE,screen52.STATUS_VALUE_ON,null);
private final void writeErrorCode() throws Exception { screen52.goto_XY(screen52.getErrorLine(),1); // Skip the control byte screen52.saveErrorLine(); screen52.setStatus(screen52.STATUS_ERROR_CODE,screen52.STATUS_VALUE_ON,null); cursorOn = true; }
screen52.setStatus(screen52.STATUS_ERROR_CODE,screen52.STATUS_VALUE_ON,null);
private final void writeErrorCodeToWindow() throws Exception { int fromCol = bk.getNextByte() & 0xff; // from column int toCol = bk.getNextByte() & 0xff; // to column screen52.goto_XY(screen52.getErrorLine(),fromCol); // Skip the control byte screen52.saveErrorLine(); screen52.setStatus(sc...
public UnresolvedObjectRefException(String s) { super(s);
public UnresolvedObjectRefException() { super();
public UnresolvedObjectRefException(String s) { super(s); }
res.put("java.vm.version", "0.1.5");
res.put("java.vm.version", vm.getVersion());
public static Properties getInitProperties() { final String arch; arch = Unsafe.getCurrentProcessor().getArchitecture().getName(); Unsafe.debug("arch="); Unsafe.debug(arch); final Properties res = new Properties(); res.put("java.version", "1.1.0"); res.put("java.vend...
res.put("os.version", "0.1.5");
res.put("os.version", vm.getVersion());
public static Properties getInitProperties() { final String arch; arch = Unsafe.getCurrentProcessor().getArchitecture().getName(); Unsafe.debug("arch="); Unsafe.debug(arch); final Properties res = new Properties(); res.put("java.version", "1.1.0"); res.put("java.vend...
if (!initStageDone) super.addImpl(comp, constraints, index);
if (isRootPaneCheckingEnabled()) getContentPane().add(comp, constraints, index);
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()) ...
{ if (isRootPaneCheckingEnabled()) throw new Error("Do not use add() on JWindow directly. Use " + "getContentPane().add() instead"); getContentPane().add(comp, constraints, index); }
super.addImpl(comp, constraints, index);
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()) ...
initStageDone = true;
setRootPaneCheckingEnabled(true);
protected void windowInit() { super.setLayout(new BorderLayout(1, 1)); getRootPane(); // will do set/create // Now we're done init stage, adds and layouts go to content pane. initStageDone = true; }
myFrameList.add(frame);
public void addSessionView(String tabText,Session session) { MyInternalFrame frame = new MyInternalFrame(); frame.setVisible(true); desktop.add(frame); selectedIndex = desktop.getComponentCount(); frame.setContentPane(session); try { frame.setSelected(true); } catch (java.b...
myFrameList = new Vector(3);
private void jbInit() throws Exception { desktop = new JDesktopPane(); // Install our custom desktop manager desktop.setDesktopManager(new MyDesktopMgr()); setContentPane(desktop); if (sequence > 0) setTitle("tn5250j <" + sequence + ">- " + tn5250jRelease + tn5250jVersion + tn5250jSu...
for (int x = 0; x < frames.length; x++){ MyInternalFrame mif = (MyInternalFrame)frames[x]; System.out.println(" current index " + x + " count " + frames.length + " has focus " + mif.isActive() + " title " + mif.getTitle()); if (mif.getInternalId() > seq) { index = x;
for (int x = 0; x < myFrameList.size(); x++) { MyInternalFrame mif = (MyInternalFrame)myFrameList.get(x); if (mix.equals(mif)) { index = x + 1;
private void nextSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); MyInternalFrame mix = (MyInternalFrame)frames[index]; int seq = mix.getInternalId(); index = 0; fo...
System.out.println(" current index " + index + " count " + desktop.getComponentCount()); if (index < desktop.getComponentCount() - 1) { try { frames[index].setSelected(true); } catch (java.beans.PropertyVetoException e) { System.out.println(e.getMessage()); } } else { try { frames[0].setSelected(true); } catch (java.be...
if (index > myFrameList.size() - 1) { index = 0;
private void nextSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); MyInternalFrame mix = (MyInternalFrame)frames[index]; int seq = mix.getInternalId(); index = 0; fo...
try { ((MyInternalFrame)myFrameList.get(index)).setSelected(true); } catch (java.beans.PropertyVetoException e) { System.out.println(e.getMessage()); }
private void nextSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); MyInternalFrame mix = (MyInternalFrame)frames[index]; int seq = mix.getInternalId(); index = 0; fo...
JInternalFrame miv = (JInternalFrame)desktop.getSelectedFrame(); int index = selectedIndex;
JInternalFrame miv = desktop.getSelectedFrame();
private void prevSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = (JInternalFrame)desktop.getSelectedFrame();// int index = desktop.getIndexOf(miv); int index = selectedIndex; if (index == 0) {// desktop.setSelectedFrame(frames[fram...
if (index == 0) { try { frames[frames.length - 1].setSelected(true); frames[frames.length - 1].repaint(); selectedIndex = frames.length -1; } catch (java.beans.PropertyVetoException e) { System.out.println(e.getMessage());
if (miv == null) return; int index = desktop.getIndexOf(miv); if (index == -1) return; MyInternalFrame mix = (MyInternalFrame)frames[index]; int seq = mix.getInternalId(); index = 0; for (int x = 0; x < myFrameList.size(); x++) { MyInternalFrame mif = (MyInternalFrame)myFrameList.get(x); if (mix.equals(mif))...
private void prevSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = (JInternalFrame)desktop.getSelectedFrame();// int index = desktop.getIndexOf(miv); int index = selectedIndex; if (index == 0) {// desktop.setSelectedFrame(frames[fram...
else { try { frames[index - 1].setSelected(true); frames[index - 1].repaint(); selectedIndex--; } catch (java.beans.PropertyVetoException e) { System.out.println(e.getMessage()); }
private void prevSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = (JInternalFrame)desktop.getSelectedFrame();// int index = desktop.getIndexOf(miv); int index = selectedIndex; if (index == 0) {// desktop.setSelectedFrame(frames[fram...
try { ((MyInternalFrame)myFrameList.get(index)).setSelected(true); } catch (java.beans.PropertyVetoException e) { System.out.println(e.getMessage()); }
private void prevSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = (JInternalFrame)desktop.getSelectedFrame();// int index = desktop.getIndexOf(miv); int index = selectedIndex; if (index == 0) {// desktop.setSelectedFrame(frames[fram...
desktop.remove(index);
public void removeSessionView(Session targetSession) { int index = getIndexOfSession(targetSession); System.out.println("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.removeSessionJumpListener(this); desktop.remove(index); this.repai...
if (closed) throw new IllegalStateException("ZipFile has closed: " + name);
checkClosed();
private HashMap getEntries() throws IOException { synchronized(raf) { if (closed) throw new IllegalStateException("ZipFile has closed: " + name); if (entries == null) readEntries(); return entries; } }
checkClosed();
public int size() { try { return getEntries().size(); } catch (IOException ioe) { return 0; } }
int lm1 = len - 1; for (int i = off; i < len; i++)
int end = off + len; int em1 = end - 1; for (int i = off; i < end; i++)
private int indexOfCRLF(byte[] b, int off, int len) throws IOException { doReset = false; int lm1 = len - 1; for (int i = off; i < len; i++) { if (b[i] == CR) { int d; if (i == lm1) { d = in.read(); doReset = true; ...
if (i == lm1)
if (i == em1)
private int indexOfCRLF(byte[] b, int off, int len) throws IOException { doReset = false; int lm1 = len - 1; for (int i = off; i < len; i++) { if (b[i] == CR) { int d; if (i == lm1) { d = in.read(); doReset = true; ...
int oldx = this.x; int oldy = this.y; if (this.x == x && this.y == y) return; invalidate (); this.x = x; this.y = y; if (peer != null) peer.setBounds (x, y, width, height); if (isLightweight() && width != 0 && height !=0) { parent.repaint(oldx, oldy, width, height); repaint(); } if (oldx != x || oldy != y) { Compon...
setBounds(x, y, this.width, this.height);
public void move(int x, int y) { int oldx = this.x; int oldy = this.y; if (this.x == x && this.y == y) return; invalidate (); this.x = x; this.y = y; if (peer != null) peer.setBounds (x, y, width, height); // Erase old bounds and repaint new bounds for lightweights. if (isLightwe...
e.consume();
protected void processMouseEvent(MouseEvent e) { if (mouseListener == null) return; switch (e.id) { case MouseEvent.MOUSE_CLICKED: mouseListener.mouseClicked(e); break; case MouseEvent.MOUSE_ENTERED: mouseListener.mouseEntered(e); break; case MouseEvent.MOUSE_EXITED: mo...
e.consume(); }
protected void processMouseWheelEvent(MouseWheelEvent e) { if (mouseWheelListener != null && e.id == MouseEvent.MOUSE_WHEEL) mouseWheelListener.mouseWheelMoved(e); }
int oldwidth = this.width; int oldheight = this.height; if (this.width == width && this.height == height) return; invalidate (); this.width = width; this.height = height; if (peer != null) peer.setBounds (x, y, width, height); if (isLightweight()) { if (oldwidth != 0 && oldheight != 0 && parent != null) parent.repai...
setBounds(this.x, this.y, width, height);
public void resize(int width, int height) { int oldwidth = this.width; int oldheight = this.height; if (this.width == width && this.height == height) return; invalidate (); this.width = width; this.height = height; if (peer != null) peer.setBounds (x, y, width, height); // Erase old...
me.closeSession((Session)this.getContentPane());
Session s = (Session)getContentPane(); me.closeSession(s);
private void disconnectMe() { me.closeSession((Session)this.getContentPane()); }
return desktop.getIndexOf(session) >= 0;
return getIndexOfSession(session) >= 0;
public boolean containsSession(Session session) { return desktop.getIndexOf(session) >= 0; }
if (frames[idx].getContentPane().equals(session)) {
Session ses = (Session)frames[idx].getContentPane(); if (ses.equals(session)) {
public int getIndexOfSession(Session session) { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); int index = -1; for (int idx = 0; idx < frames.length; idx++) { if (frames[idx].getContentPane().equals(session)) { index = idx; return index; } ...
setContentPane(desktop);
private void jbInit() throws Exception { desktop = new JDesktopPane(); setContentPane(desktop); // Install our custom desktop manager desktop.setDesktopManager(new MyDesktopMgr()); if (sequence > 0) setTitle("tn5250j <" + sequence + ">- " + tn5250jRelease + tn5250jVersion + tn5250jSu...
setContentPane(desktop);
private void jbInit() throws Exception { desktop = new JDesktopPane(); setContentPane(desktop); // Install our custom desktop manager desktop.setDesktopManager(new MyDesktopMgr()); if (sequence > 0) setTitle("tn5250j <" + sequence + ">- " + tn5250jRelease + tn5250jVersion + tn5250jSu...
{ return new int[] { dayOfYear + fields[DAY_OF_MONTH], 0}; }
return new int[] { dayOfYear + fields[DAY_OF_MONTH], 0 };
private int[] getDayOfYear(int year) { if (isSet[MONTH]) { int dayOfYear; if (fields[MONTH] > FEBRUARY) { // The months after February are regular: // 9 is an offset found by try and error. dayOfYear = (fields[MONTH] * (31 + 30 + 31 + 30 + 31) - 9) / 5; if (isLeapYear(year)) dayOfYear++; ...
{ return new int[] {0, fields[DAY_OF_YEAR]}; }
return new int[] { 0, fields[DAY_OF_YEAR] };
private int[] getDayOfYear(int year) { if (isSet[MONTH]) { int dayOfYear; if (fields[MONTH] > FEBRUARY) { // The months after February are regular: // 9 is an offset found by try and error. dayOfYear = (fields[MONTH] * (31 + 30 + 31 + 30 + 31) - 9) / 5; if (isLeapYear(year)) dayOfYear++; ...
updateLayoutStateNeeded |= modelChanged;
public void contentsChanged(ListDataEvent e) { list.revalidate(); }
updateLayoutStateNeeded |= modelChanged;
public void intervalAdded(ListDataEvent e) { list.revalidate(); }
updateLayoutStateNeeded |= modelChanged;
public void intervalRemoved(ListDataEvent e) { list.revalidate(); }
if (e.getSource() == BasicListUI.this.list)
if (e.getPropertyName().equals("model"))
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener);
{ ListModel oldModel = (ListModel) e.getOldValue(); oldModel.removeListDataListener(listDataListener); } if (e.getNewValue() != null && e.getNewValue() instanceof ListModel) { ListModel newModel = (ListModel) e.getNewValue(); newModel.addListDataListener(BasicListUI.this.listDataListener); }
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
if (e.getNewValue() != null && e.getNewValue() instanceof ListModel) ((ListModel) e.getNewValue()).addListDataListener(BasicListUI.this.listDataListener);
updateLayoutStateNeeded |= modelChanged;
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
if (e.getPropertyName().equals("model")) updateLayoutStateNeeded |= modelChanged;
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
Rectangle bounds = new Rectangle(loc.x, loc.y, cellWidth,
int width = cellWidth; if (l.getLayoutOrientation() == JList.VERTICAL) width = l.getWidth(); Rectangle bounds = new Rectangle(loc.x, loc.y, width,
public Rectangle getCellBounds(JList l, int index1, int index2) { maybeUpdateLayoutState(); if (l != list || cellWidth == -1) return null; int minIndex = Math.min(index1, index2); int maxIndex = Math.max(index1, index2); Point loc = indexToLocation(list, minIndex); Rectangle bounds = new Recta...