Entry(JTextComponent component, int offset, Entry last) throws BadLocationException { componentID = Registry.getID(component); posID = ((BaseDocument) component.getDocument()).storePosition(offset); if (last != null) { // apend after the last entry last.next = this; this.prev = last; } }
Entry(JTextComponent component, int offset, Entry last) throws BadLocationException { componentID = Registry.getID(component); posID = ((BaseDocument)component.getDocument()).storePosition(offset); if (last != null) { // apend after the last entry last.next = this; this.prev = last; } }