rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
public JTable (TableModel dm)
public JTable ()
public JTable (TableModel dm) { this(dm, null, null); }
this(dm, null, null);
this(null, null, null);
public JTable (TableModel dm) { this(dm, null, null); }
throws NotImplementedException
protected void installKeyboardActions() throws NotImplementedException { // TODO: Implement this properly. }
throws NotImplementedException
protected void uninstallKeyboardActions() throws NotImplementedException { // TODO: Implement this properly. }
int prefWidth = resizingColumn.getPreferredWidth(); resizingColumn.setWidth(prefWidth);
public void doLayout() { TableColumn resizingColumn = null; int ncols = getColumnCount(); if (ncols < 1) return; int[] pref = new int[ncols]; int prefSum = 0; int rCol = -1; if (tableHeader != null) resizingColumn = tableHeader.getResizingColumn(); for (int i = 0; i < ncols; ++i) ...
throw new FactoryConfigurationError();
return new gnu.xml.stream.XMLOutputFactoryImpl();
public static XMLOutputFactory newInstance() throws FactoryConfigurationError { ClassLoader loader = Thread.currentThread().getContextClassLoader(); if (loader == null) { loader = XMLOutputFactory.class.getClassLoader(); } String className = null; int count = 0; do { cl...
public abstract XMLStreamWriter createXMLStreamWriter(OutputStream stream)
public abstract XMLStreamWriter createXMLStreamWriter(Writer stream)
public abstract XMLStreamWriter createXMLStreamWriter(OutputStream stream) throws XMLStreamException;
if ( !(DataIOStyleAttribs.isEmpty()) ) {
if ( CurrentArray.getXMLDataIOStyle() instanceof TaggedXMLDataIOStyle ) {
public Object action (SaxDocumentHandler handler, Attributes attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Formatte...
FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle (CurrentArray, DataIOStyleAttribs); CurrentArray.setXMLDataIOStyle(readObj);
XMLDataIOStyle readObj = createFormattedReadObj(DataIOStyleAttribs);
public Object action (SaxDocumentHandler handler, Attributes attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Formatte...
String readId = readObj.getReadId();
CurrentArray.setXMLDataIOStyle(readObj);
public Object action (SaxDocumentHandler handler, Attributes attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Formatte...
if (readId != null) { if (ReadObj.containsKey(readId)) Log.warnln("More than one read node with readId=\""+readId+"\", using latest node." ); ReadObj.put(readId, readObj); } DataIOStyleAttribs.clear();
public Object action (SaxDocumentHandler handler, Attributes attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Formatte...
DataIOStyleAttribs.clear();
public Object action (SaxDocumentHandler handler, Attributes attrs) { // save these for later, when we know what kind of dataIOstyle we got // Argh we really need a clone on Attributes. Just dumb copy for now. DataIOStyleAttribs.clear(); // all old values cleared DataIOStyleAt...
XMLDataIOStyle readObj = null;
public Object action (SaxDocumentHandler handler, Attributes attrs) { // save these for later, when we know what kind of dataIOstyle we got // Argh we really need a clone on Attributes. Just dumb copy for now. DataIOStyleAttribs.clear(); // all old values cleared DataIOStyleAt...
CurrentArray.setXMLDataIOStyle(readObj); DataIOStyleAttribs.clear(); CurrentFormatObjectList.add(readObj);
public Object action (SaxDocumentHandler handler, Attributes attrs) { // save these for later, when we know what kind of dataIOstyle we got // Argh we really need a clone on Attributes. Just dumb copy for now. DataIOStyleAttribs.clear(); // all old values cleared DataIOStyleAt...
if ( !DataIOStyleAttribs.isEmpty()) {
if ( CurrentArray.getXMLDataIOStyle() instanceof TaggedXMLDataIOStyle ) {
public Object action (SaxDocumentHandler handler, Attributes attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // must be formatted style, thats the only style that has ...
FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle (CurrentArray, DataIOStyleAttribs);
XMLDataIOStyle readObj = createFormattedReadObj(DataIOStyleAttribs);
public Object action (SaxDocumentHandler handler, Attributes attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // must be formatted style, thats the only style that has ...
String readId = readObj.getReadId(); if (readId != null) {
public Object action (SaxDocumentHandler handler, Attributes attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // must be formatted style, thats the only style that has ...
if (ReadObj.containsKey(readId)) Log.warnln("More than one read node with readId=\""+readId+"\", using latest node." ); ReadObj.put(readId, readObj); } DataIOStyleAttribs.clear();
public Object action (SaxDocumentHandler handler, Attributes attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // must be formatted style, thats the only style that has ...
if ( !DataIOStyleAttribs.isEmpty()) {
if ( CurrentArray.getXMLDataIOStyle() instanceof TaggedXMLDataIOStyle ) {
public Object action (SaxDocumentHandler handler, Attributes attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // If we see a skipChar command, then we must have Formatt...
FormattedXMLDataIOStyle readObj = new FormattedXMLDataIOStyle (CurrentArray, DataIOStyleAttribs);
XMLDataIOStyle readObj = createFormattedReadObj(DataIOStyleAttribs);
public Object action (SaxDocumentHandler handler, Attributes attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // If we see a skipChar command, then we must have Formatt...
String readId = readObj.getReadId(); if (readId != null) { if (ReadObj.containsKey(readId)) Log.warnln("More than one read node with readId=\""+readId+"\", using latest node." ); ReadObj.put(readId, readObj); } DataIOStyleAttribs.clear();
public Object action (SaxDocumentHandler handler, Attributes attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // If we see a skipChar command, then we must have Formatt...
/*
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat, int intRadix ) {Log.debug("Add Data:["+thisS...
Iterator<FSEntry> rootIterator;
Iterator<? extends FSEntry> rootIterator;
public void iterateRoot(FSDirectory root) { try { Iterator<FSEntry> rootIterator; rootIterator = root.iterator(); while(rootIterator.hasNext()) { FSEntry entry=rootIterator.next(); System.out.println(entry.getName()); } } catch (IOException e) { // TODO Auto-generated catch block e.printSt...
for (Iterator<FSEntry> i = entry.getDirectory().iterator(); i.hasNext();) {
for (Iterator<? extends FSEntry> i = entry.getDirectory().iterator(); i.hasNext();) {
public String[] list(File directory, FilenameFilter filter) throws IOException { final FSEntry entry = NTFSfs.getRootEntry(); if (entry == null) { throw new FileNotFoundException(directory.getAbsolutePath()); } if (!entry.isDirectory()) { throw new IOException("Cannot list on non-directories " + directory); }...
this.hide();
this.setVisible(false);
public void canceled(WizardEvent e) {// System.out.println("It is canceled!"); if (workingThread != null) { workingThread.interrupt(); workingThread = null; } this.hide(); this.dispose(); }
public void add(int pc, int offset) { addressTable.add(pc, offset);
public final void add(VmMethod method, int pc, int offset) { addressTable.add(method, pc, offset);
public void add(int pc, int offset) { addressTable.add(pc, offset); }
if (table != null) { throw new RuntimeException("Address table is locked"); } final AddressPcEntry entry = new AddressPcEntry(pc, offset); if (list == null) { list = entry; } else { AddressPcEntry p = list; while (p.next != null) { p = p.next; } p.next = entry; } }
if (table != null) { throw new RuntimeException( "Address table is locked"); } final AddressPcEntry entry = new AddressPcEntry(pc, offset); if (list == null) { list = entry; } else { if (offset < list.offset) { entry.next = list; list = entry; } else { AddressPcEntry p = list; while ((p.next != null) && (offset > p.ne...
public void add(int pc, int offset) { if (table != null) { throw new RuntimeException("Address table is locked"); } final AddressPcEntry entry = new AddressPcEntry(pc, offset); if (list == null) { list = entry; } else { AddressPcEntry p = list; while (p.next != null) { p = p.next; } p.next = entry;...
return media;
return mediaName;
public MediaSizeName getMediaSizeName() { return media; }
Connect sc = new Connect(frame,LangTool.getString("ss.title"),sessions);
Connect sc = new Connect(frame1,LangTool.getString("ss.title"),sessions);
private String getConnectSession () { Connect sc = new Connect(frame,LangTool.getString("ss.title"),sessions); // load the new session information from the session property file loadSessions(); return sc.getConnectKey(); }
int width = m.frame.getWidth(); int height = m.frame.getHeight();
int width = m.frame1.getWidth(); int height = m.frame1.getHeight();
static public void main(String[] args) { if (!isSpecified("-nc",args)) { if (!checkBootStrapper(args)) { // if we did not find a running instance and the -d options is // specified start up the bootstrap deamon to allow checking // for running instances ...
m.frame.setSize(width,height); m.frame.centerFrame();
m.frame1.setSize(width,height); m.frame1.centerFrame();
static public void main(String[] args) { if (!isSpecified("-nc",args)) { if (!checkBootStrapper(args)) { // if we did not find a running instance and the -d options is // specified start up the bootstrap deamon to allow checking // for running instances ...
m.frame.setVisible(true);
m.frame1.setVisible(true);
static public void main(String[] args) { if (!isSpecified("-nc",args)) { if (!checkBootStrapper(args)) { // if we did not find a running instance and the -d options is // specified start up the bootstrap deamon to allow checking // for running instances ...
if (!m.frame.isVisible()) m.frame.setVisible(true);
if (!m.frame1.isVisible()) m.frame1.setVisible(true);
static public void main(String[] args) { if (!isSpecified("-nc",args)) { if (!checkBootStrapper(args)) { // if we did not find a running instance and the -d options is // specified start up the bootstrap deamon to allow checking // for running instances ...
if (!frame.isVisible()) frame.setVisible(true);
if (!frame1.isVisible()) frame1.setVisible(true);
synchronized void newSession(String sel,String[] args) { Properties sesProps = new Properties(); String propFileName = null; String session = args[0]; // Start loading properties sesProps.put(SESSION_HOST,session); if (isSpecified("-e",args)) sesProps.put(SESSION_TN_ENHANCED,"1"...
frame.setVisible(true);
frame1.setVisible(true);
synchronized void newSession(String sel,String[] args) { Properties sesProps = new Properties(); String propFileName = null; String session = args[0]; // Start loading properties sesProps.put(SESSION_HOST,session); if (isSpecified("-e",args)) sesProps.put(SESSION_TN_ENHANCED,"1"...
frame.addSessionView(sel,s);
frame1.addSessionView(sel,s);
synchronized void newSession(String sel,String[] args) { Properties sesProps = new Properties(); String propFileName = null; String session = args[0]; // Start loading properties sesProps.put(SESSION_HOST,session); if (isSpecified("-e",args)) sesProps.put(SESSION_TN_ENHANCED,"1"...
frame.addSessionView(session,s);
frame1.addSessionView(session,s);
synchronized void newSession(String sel,String[] args) { Properties sesProps = new Properties(); String propFileName = null; String session = args[0]; // Start loading properties sesProps.put(SESSION_HOST,session); if (isSpecified("-e",args)) sesProps.put(SESSION_TN_ENHANCED,"1"...
frame = new Gui5250Frame(this, frames.size()); frame.setSize(width,height); frame.centerFrame(); frame.setIconImage(tnicon.getImage()); frame.setIcons(focused,unfocused);
frame1 = new Gui5250Frame(this, frames.size()); frame1.setSize(width,height); frame1.centerFrame(); frame1.setIconImage(tnicon.getImage()); frame1.setIcons(focused,unfocused);
void newView() { int width = 600; int height = 500; if (sessions.containsKey("emul.width")) width = Integer.parseInt(sessions.getProperty("emul.width")); if (sessions.containsKey("emul.height")) height = Integer.parseInt(sessions.getProperty("emul.height")); frame = new Gui52...
frames.add(frame);
frames.add(frame1);
void newView() { int width = 600; int height = 500; if (sessions.containsKey("emul.width")) width = Integer.parseInt(sessions.getProperty("emul.width")); if (sessions.containsKey("emul.height")) height = Integer.parseInt(sessions.getProperty("emul.height")); frame = new Gui52...
public void closeSession(Session sessionObject) {
public void closeSession(String sessionName) {
public void closeSession(Session sessionObject) { sessionObject.closeDown(); sessions.removeSession((Session)sessionObject); }
sessionObject.closeDown(); sessions.removeSession((Session)sessionObject);
Session session = (Session)sessions.item(sessionName); if (session != null) closeSession(session);
public void closeSession(Session sessionObject) { sessionObject.closeDown(); sessions.removeSession((Session)sessionObject); }
return t_object;
return ObjectHelper.type();
public TypeCode _type() { return t_object; }
if(!f.exists()) continue;
private void printList(File[] list, PrintStream out) { if (list != null) { for (int i = 0; i < list.length; i++) { File f = list[i]; if (f.isDirectory()) { out.print("[" + f.getName() + "]"); } else { out.print(f.getName() + " " + f.length()); } out.println(); } out.println(); } }
int result = JOptionPane.showConfirmDialog(this,message);
int result = JOptionPane.showConfirmDialog(getParent(),message);
public void closeDown() { if (defaultProps.containsKey("saveme")) { defaultProps.remove("saveme"); Object[] args = {propFileName}; String message = MessageFormat.format( LangTool.getString("messages.saveSettings"), args); int re...
me.frame,
this.getParent(),
private void closeSession() { Object[] message = new Object[1]; message[0] = LangTool.getString("cs.message"); String[] options = {LangTool.getString("cs.optThis"), LangTool.getString("cs.optAll"), LangTool.getString("cs.optCancel")}; int r...
me.closingDown();
me.closingDown((Session)this);
private void closeSession() { Object[] message = new Object[1]; message[0] = LangTool.getString("cs.message"); String[] options = {LangTool.getString("cs.optThis"), LangTool.getString("cs.optAll"), LangTool.getString("cs.optCancel")}; int r...
me.frame);
(Frame)me.frame);
private void doAttributes() { SessionAttributes sa = new SessionAttributes(propFileName, defaultProps, me.frame); sa.addPropertyChangeListener(screen); sa.addPropertyChangeListener(this); sa.showIt(); defaultProps = ...
jumpEvent = new SessionJumpEvent(this);
private void jbInit() throws Exception { this.setLayout(borderLayout1);// this.setOpaque(false); setDoubleBuffered(true); s.setOpaque(false); s.setDoubleBuffered(true); loadProps(); screen = new Screen5250(this,defaultProps); this.addComponentListener(this); if (!defaultP...
me.nextSession();
fireSessionJump(JUMP_NEXT);
protected void nextSession() { me.nextSession(); }
me.prevSession();
fireSessionJump(JUMP_PREVIOUS);
protected void prevSession() { me.prevSession(); }
me.frame,
this.getParent(),
private void sendScreenEMail() { JPanel semp = new JPanel(); semp.setLayout(new AlignLayout(2,5,5)); JLabel tol = new JLabel(LangTool.getString("em.to")); JTextField tot = new JTextField(30); JLabel subl = new JLabel(LangTool.getString("em.subject")); JTextField subt =...
null,
me.frame,
private void showHexMap() { JPanel srp = new JPanel(); srp.setLayout(new BorderLayout()); DefaultListModel listModel = new DefaultListModel(); StringBuffer sb = new StringBuffer(); // we will use a collator here so that we can take advantage of the locales Collator collator = Collator.g...
URL url = getClass().getResource(image_location);
URL file=null; try { file = My5250.classLoader.getResource(image_location);
public TN5250jSplashScreen(String image_location) { // get the URL given the image location URL url = getClass().getResource(image_location); if (url == null) { throw new IllegalArgumentException("Image could not be found: " + image_location); } // ...
if (url == null) { throw new IllegalArgumentException("Image could not be found: " + image_location);
public TN5250jSplashScreen(String image_location) { // get the URL given the image location URL url = getClass().getResource(image_location); if (url == null) { throw new IllegalArgumentException("Image could not be found: " + image_location); } // ...
ImageIcon image = new ImageIcon(url);
catch (Exception e) { System.err.println(e); } ImageIcon image = new ImageIcon(file);
public TN5250jSplashScreen(String image_location) { // get the URL given the image location URL url = getClass().getResource(image_location); if (url == null) { throw new IllegalArgumentException("Image could not be found: " + image_location); } // ...
public final void writeTo(SocketBuffer skbuf, int skbufOffset) { skbuf.set(skbufOffset, address, 0, length);
public static void writeTo(SocketBuffer skbuf, int skbufOffset, Inet4Address address) { skbuf.set(skbufOffset, address.getAddress(), 0, length);
public final void writeTo(SocketBuffer skbuf, int skbufOffset) { skbuf.set(skbufOffset, address, 0, length); }
if(dataModel instanceof MutableComboBoxModel) {
if (dataModel instanceof MutableComboBoxModel)
public void insertItemAt(Object element, int index) { if(dataModel instanceof MutableComboBoxModel) { ((MutableComboBoxModel) dataModel).insertElementAt(element, index); } else { throw new RuntimeException("Unable to insert the item because the data model it is not an instance of MutableComboBoxModel."); } }
} else { throw new RuntimeException("Unable to insert the item because the data model it is not an instance of MutableComboBoxModel."); }
else throw new RuntimeException("Unable to insert the item because the data " + "model it is not an instance of " + "MutableComboBoxModel.");
public void insertItemAt(Object element, int index) { if(dataModel instanceof MutableComboBoxModel) { ((MutableComboBoxModel) dataModel).insertElementAt(element, index); } else { throw new RuntimeException("Unable to insert the item because the data model it is not an instance of MutableComboBoxModel."); } }
if(dataModel instanceof MutableComboBoxModel) {
if (dataModel instanceof MutableComboBoxModel)
public void removeItem(Object element) { if(dataModel instanceof MutableComboBoxModel) { ((MutableComboBoxModel) dataModel).removeElement(element); } else { throw new RuntimeException("Unable to remove the item because the data model it is not an instance of MutableComboBoxModel."); } }
} else { throw new RuntimeException("Unable to remove the item because the data model it is not an instance of MutableComboBoxModel."); }
else throw new RuntimeException("Unable to remove the item because the data " + "model it is not an instance of " + "MutableComboBoxModel.");
public void removeItem(Object element) { if(dataModel instanceof MutableComboBoxModel) { ((MutableComboBoxModel) dataModel).removeElement(element); } else { throw new RuntimeException("Unable to remove the item because the data model it is not an instance of MutableComboBoxModel."); } }
if(dataModel instanceof MutableComboBoxModel) {
if (dataModel instanceof MutableComboBoxModel)
public void removeItemAt(int index) { if(dataModel instanceof MutableComboBoxModel) { ((MutableComboBoxModel) dataModel).removeElementAt(index); } else { throw new RuntimeException("Unable to remove the item because the data model it is not an instance of MutableComboBoxModel."); } }
} else { throw new RuntimeException("Unable to remove the item because the data model it is not an instance of MutableComboBoxModel."); }
else throw new RuntimeException("Unable to remove the item because the data " + "model it is not an instance of " + "MutableComboBoxModel.");
public void removeItemAt(int index) { if(dataModel instanceof MutableComboBoxModel) { ((MutableComboBoxModel) dataModel).removeElementAt(index); } else { throw new RuntimeException("Unable to remove the item because the data model it is not an instance of MutableComboBoxModel."); } }
storeTargetName(target);
public Statement(Object target, String methodName, Object[] arguments) { this.target = target; this.methodName = methodName; this.arguments = (arguments != null) ? arguments : new Object[0]; storeTargetName(target); }
if (args[i] == null) continue;
private boolean compatible(Class[] params, Class[] args) { for (int i = 0; i < params.length; i++) { // Treat Integer like int if appropriate Class nativeType = unwrap(args[i]); if (nativeType != null && params[i].isPrimitive() && params[i].isAssignableFrom(nativeType)) continue; if (params[i].isAssign...
argTypes[i] = args[i].getClass();
argTypes[i] = (args[i] != null) ? args[i].getClass() : null;
final Object doExecute() throws Exception { Class klazz = (target instanceof Class) ? (Class) target : target.getClass(); Object args[] = (arguments == null) ? new Object[0] : arguments; Class argTypes[] = new Class[args.length]; for (int i = 0; i < args.length; i++) argTypes[i] = args[i].getClass()...
} catch(IllegalArgumentException iae){ System.err.println("method: " + method); for(int i=0;i<args.length;i++){ System.err.println("args[" + i + "]: " + args[i]); } throw iae; }
final Object doExecute() throws Exception { Class klazz = (target instanceof Class) ? (Class) target : target.getClass(); Object args[] = (arguments == null) ? new Object[0] : arguments; Class argTypes[] = new Class[args.length]; for (int i = 0; i < args.length; i++) argTypes[i] = args[i].getClass()...
Class klass = target.getClass();
String targetName = target.getClass().getName(); if ( targetName.startsWith("java")) { targetName = targetName.substring(targetName.lastIndexOf('.') + 1); }
public String toString() { StringBuffer result = new StringBuffer(); Class klass = target.getClass(); result.append( ((WeakHashMap) classMaps.get(klass)).get(target)); result.append("."); result.append(methodName); result.append("("); String sep = ""; for (int i = 0; i < arguments.length; i+...
result.append( ((WeakHashMap) classMaps.get(klass)).get(target));
result.append(targetName);
public String toString() { StringBuffer result = new StringBuffer(); Class klass = target.getClass(); result.append( ((WeakHashMap) classMaps.get(klass)).get(target)); result.append("."); result.append(methodName); result.append("("); String sep = ""; for (int i = 0; i < arguments.length; i+...
result.append(arguments[i].getClass().getName());
result.append( ( arguments[i] == null ) ? "null" : ( arguments[i] instanceof String ) ? "\"" + arguments[i] + "\"" : arguments[i].getClass().getName());
public String toString() { StringBuffer result = new StringBuffer(); Class klass = target.getClass(); result.append( ((WeakHashMap) classMaps.get(klass)).get(target)); result.append("."); result.append(methodName); result.append("("); String sep = ""; for (int i = 0; i < arguments.length; i+...
"ToolBar.border", new MetalBorders.ToolBarBorder(),
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
new SecureRandom ().nextBytes(buffer);
getDefaultPRNG().nextBytes(buffer);
protected void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else if (irnd != null) { try { irnd.nextBytes(buffer, 0, buffer.length); } catch (LimitReachedException lre) { irnd = null; ...
{ new SecureRandom ().nextBytes(buffer);
getDefaultPRNG().nextBytes(buffer);
protected void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else if (irnd != null) { try { irnd.nextBytes(buffer, 0, buffer.length); } catch (LimitReachedException lre) { irnd = null; ...
}
protected void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else if (irnd != null) { try { irnd.nextBytes(buffer, 0, buffer.length); } catch (LimitReachedException lre) { irnd = null; ...
providers.remove(className);
FontProvider prv = providers.remove(className); if(firstProvider == prv) { firstProvider = null; }
public void extensionRemoved(ExtensionPoint point, Extension extension) { final ConfigurationElement[] elements = extension.getConfigurationElements(); for (int j = 0; j < elements.length; j++) { final String className = elements[j].getAttribute("class"); log.debug("Removed provi...
if(firstProviderName.equals(prv.getName())) continue;
private FontProvider getProvider(Font font) { log.debug("getProvider for "+font.getName()+ " ("+providers.size()+" availables)"); for (FontProvider prv : providers.values()) { log.debug("font="+font+" provider="+prv); if (prv.provides(font)) { log.debug("prov...
firePropertyChange(DISABLED_ICON_CHANGED_PROPERTY, oldIcon, newIcon);
firePropertyChange("disabledIcon", oldIcon, newIcon);
public void setDisabledIcon(Icon newIcon) { if (disabledIcon != newIcon) { Icon oldIcon = disabledIcon; disabledIcon = newIcon; firePropertyChange(DISABLED_ICON_CHANGED_PROPERTY, oldIcon, newIcon); } }
firePropertyChange(DISPLAYED_MNEMONIC_CHANGED_PROPERTY,
firePropertyChange("displayedMnemonic",
public void setDisplayedMnemonic(int mnemonic) { if (displayedMnemonic != mnemonic) { firePropertyChange(DISPLAYED_MNEMONIC_CHANGED_PROPERTY, displayedMnemonic, mnemonic); displayedMnemonic = mnemonic; if (text != null) setDisplayedMnemonicIndex(text.toUpperCase().indexOf(mnemonic)); ...
firePropertyChange(DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY,
firePropertyChange("displayedMnemonicIndex",
public void setDisplayedMnemonicIndex(int newIndex) throws IllegalArgumentException { if (newIndex < -1 || (text != null && newIndex >= text.length())) throw new IllegalArgumentException(); if (newIndex == -1 || text == null || text.charAt(newIndex) != displaye...
firePropertyChange(HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, oldAlignment,
firePropertyChange("horizontalAlignment", oldAlignment,
public void setHorizontalAlignment(int alignment) { if (horizontalAlignment == alignment) return; int oldAlignment = horizontalAlignment; horizontalAlignment = checkHorizontalKey(alignment, "horizontalAlignment"); firePropertyChange(HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, oldAlignment, ...
firePropertyChange(HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY, oldPos,
firePropertyChange("horizontalTextPosition", oldPos,
public void setHorizontalTextPosition(int textPosition) { if (textPosition != horizontalTextPosition) { int oldPos = horizontalTextPosition; horizontalTextPosition = checkHorizontalKey(textPosition, "horizontalTextPosition"); firePropertyChange(HORIZONTAL_TEXT_POSI...
firePropertyChange(ICON_CHANGED_PROPERTY, oldIcon, newIcon);
firePropertyChange("icon", oldIcon, newIcon);
public void setIcon(Icon newIcon) { if (icon != newIcon) { Icon oldIcon = icon; icon = newIcon; firePropertyChange(ICON_CHANGED_PROPERTY, oldIcon, newIcon); } }
firePropertyChange(ICON_TEXT_GAP_CHANGED_PROPERTY, iconTextGap, newGap);
firePropertyChange("iconTextGap", iconTextGap, newGap);
public void setIconTextGap(int newGap) { if (iconTextGap != newGap) { firePropertyChange(ICON_TEXT_GAP_CHANGED_PROPERTY, iconTextGap, newGap); iconTextGap = newGap; } }
firePropertyChange(LABEL_FOR_CHANGED_PROPERTY, labelFor, c);
Component oldLabelFor = labelFor;
public void setLabelFor(Component c) { if (c != labelFor) { firePropertyChange(LABEL_FOR_CHANGED_PROPERTY, labelFor, c); labelFor = c; } }
firePropertyChange("labelFor", oldLabelFor, labelFor);
public void setLabelFor(Component c) { if (c != labelFor) { firePropertyChange(LABEL_FOR_CHANGED_PROPERTY, labelFor, c); labelFor = c; } }
firePropertyChange(TEXT_CHANGED_PROPERTY, oldText, newText);
firePropertyChange("text", oldText, newText);
public void setText(String newText) { if (text != newText) { String oldText = text; text = newText; firePropertyChange(TEXT_CHANGED_PROPERTY, oldText, newText); if (text != null && text.length() <= displayedMnemonicIndex) setDisplayedMnemonicIndex(text.length() - 1); } }
firePropertyChange(VERTICAL_ALIGNMENT_CHANGED_PROPERTY, oldAlignment, verticalAlignment);
firePropertyChange("verticalAlignment", oldAlignment, verticalAlignment);
public void setVerticalAlignment(int alignment) { if (alignment == verticalAlignment) return; int oldAlignment = verticalAlignment; verticalAlignment = checkVerticalKey(alignment, "verticalAlignment"); firePropertyChange(VERTICAL_ALIGNMENT_CHANGED_PROPERTY, oldAlignment, verticalAlignment); }
firePropertyChange(VERTICAL_TEXT_POSITION_CHANGED_PROPERTY, oldPos,
firePropertyChange("verticalTextPosition", oldPos,
public void setVerticalTextPosition(int textPosition) { if (textPosition != verticalTextPosition) { int oldPos = verticalTextPosition; verticalTextPosition = checkVerticalKey(textPosition, "verticalTextPosition"); firePropertyChange(VERTICAL_TEXT_POSITION_CHANGED_PROPE...
this.currentMethod = previousMethod;
public void endInlinedMethod(VmMethod previousMethod) { helper.setMethod(previousMethod); os.setObjectRef(endOfInlineLabel); }
this.currentMethod = inlinedMethod;
public void startInlinedMethod(VmMethod inlinedMethod, int newMaxLocals) { //TODO: check whether this is really needed vstack.push(eContext); maxLocals = newMaxLocals; endOfInlineLabel = new Label(curInstrLabel + "_end_of_inline"); helper.startInlinedMethod(inlinedMethod, curInstr...
cm.add(address, offset);
cm.add(currentMethod, address, offset);
public void startInstruction(int address) { this.curInstrLabel = helper.getInstrLabel(address); if (startOfBB) { os.setObjectRef(curInstrLabel); startOfBB = false; } final int offset = os.getLength() - startOffset; cm.add(address, offset); }
this.currentMethod = method;
public void startMethod(VmMethod method) { this.maxLocals = method.getBytecode().getNoLocals(); this.loader = method.getDeclaringClass().getLoader(); helper.setMethod(method); this.startOffset = os.getLength(); this.stackFrame = new X86StackFrame(os, helper, method, context, cm); ...
super();
public StringIndexOutOfBoundsException() { super(); }
System.out.println(" we are adjusting ");
public void setBoundsForFrame(JComponent f, int x, int y, int w, int h) { if (f instanceof JInternalFrame == false) { super.setBoundsForFrame(f, x, y, w, h); // only deal w/internal frames } else { JInternalFrame frame = (JInternalFrame)f; // Figure out if we...
repaint();
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable internalId = openFrameCount; //...Create the GUI and put it in the window... //...Then set the w...
repaint();
public void internalFrameDeiconified(InternalFrameEvent e) {// displayMessage("Internal frame deiconified", e); }
if (mif.isIcon()) mif.setIcon(false);
private void nextSession() { MyInternalFrame mif = getNextInternalFrame(); if (mif != null) { try { mif.setSelected(true); } catch (java.beans.PropertyVetoException e) { System.out.println(e.getMessage()); } }// System.out.println(" current in...
if (((MyInternalFrame)myFrameList.get(index)).isIcon()) ((MyInternalFrame)myFrameList.get(index)).setIcon(false);
private void prevSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); if (miv == null) return; int index = desktop.getIndexOf(miv); if (index == -1) return; MyInternalFrame mix = (MyInternalFrame...
System.out.println(devName);
protected final boolean negotiate(byte abyte0[]) throws IOException { int i = 0; // from server negotiations if(abyte0[i] == IAC) { // -1 while(i < abyte0.length && abyte0[i++] == -1)// while(i < abyte0.length && (abyte0[i] == -1 || abyte0[i++] == 0x20)) switch(abyte0[i++]) ...
Properties props = controller.getConfiguration().getProperties(); if (user == null && props.containsKey("connect.user")) { user = props.getProperty("connect.user"); if (props.containsKey("connect.password")) password = props.getProperty("connect.password"); if (props.containsKey("connect.library")) library = props.getP...
public void setController(Session c) { controller = c; }
bk.getNextByte(); int j = bk.getNextByte(); while (j-- > 0) bk.getNextByte();
int j = (bk.getNextByte() & 0xff) << 8 | bk.getNextByte() & 0xff;
private boolean writeToDisplay(boolean controlsExist) { int pos = 0; boolean error=false; boolean done=false; int attr; byte nextOne; byte control0 = 0; byte control1 = 0; int saRows = screen52.getRows(); int saCols = screen52.getCols(); try { if (controlsExi...