Re: Swing and Memory Issues

2003-03-05 Thread Christian Pesch
, but why do you take the extra effort to pass all your data through a Map? An even if you do it, isn't a Set the better structure than a Map? -- Christian Pesch - Product Maturity Manager CoreMedia AG - http://www.coremedia.com - 0700-COREMEDIA __

Re: knowing when JComboBox's data has changed

2003-01-28 Thread Christian Pesch
changed in number of elements? You should wrap a ComboBoxModel around your Vector or subclass DefaultComboBoxModel. As ComboBoxModel is a ListModel, it informs about changes. So if you populate your Vector later, you have to fire (at least) intervalAdded() notifications. -- Christian Pesch

Re: JTextArea is a memory hog!

2003-01-13 Thread Christian Pesch
document. The the default document is not used anymore. Use a constructor which immediately sets your document. Shouldn't it create them and hang onto them while the JTextArea is in use? IMHO it does until the document changes. See scenario above -- Christian Pesch - Product Matur

Re: JTextArea is a memory hog!

2003-01-09 Thread Christian Pesch
or ages. Until WebStart, one could patch the classes and remove the finalize() methods. That has some legal implications if you distribute, but customers do not care, if their product runs. -- Christian Pesch - Product Maturity Manager CoreMedia A

Re: JTabbedPane repaint

2002-08-28 Thread Christian Pesch
that it has the >updated data). Any suggestions? > There is JTabbedPane#addChangeListener. As far as the API docs say, it fires a ChangeEvent every time a tab is selected. -- Christian Pesch - Product Maturity Manager CoreMedia AG - http://www.coremedia

Re: Connection from one tree node to another

2002-08-28 Thread Christian Pesch
ods to convert from rows/paths to graphical positions: Rectangle getRowBounds(int row) Rectangle getPathBounds(TreePath path) int getRowForLocation(int x, int y) -- Christian Pesch - Product Maturity Manager CoreMedia AG - http://www.coreme

Re: Automated Testing

2002-04-02 Thread Christian Pesch
Sean McCauliff wrote: > What version are you using? > 7.0.1 with appropriate Java Add-in for JDK 1.3.1 > >-Original Message- >From: Christian Pesch >To: Sean McCauliff; [EMAIL PROTECTED] >Sent: 3/28/02 11:37 AM >Subject: Re: Automated Testing > >Sean McCau

Re: Automated Testing

2002-03-28 Thread Christian Pesch
onalized gui applications. May you need an updated version. -- Christian Pesch - Software Engineer CoreMedia AG - http://www.coremedia.com - 0700-COREMEDIA ___ Advanced-swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/advanced-swing

Re: Design guidelines

2002-02-13 Thread Christian Pesch
er memory > utilization? - Do not assume, memory gets freed automatically - Always remove your listeners - Finalizers are not the way to free memory - Put long-lasting actions into separate threads - Never forget to switch to the AWT Eventqueue before modifying the GUI. -- Christian Pesch - Softw

Re: Design guidelines

2002-02-12 Thread Christian Pesch
er memory > utilization? - Do not assume, memory gets freed automatically - Always remove your listeners - Finalizers are not the way to free memory - Put long-lasting actions into separate threads - Never forget to switch to the AWT Eventqueue before modifying the GUI. -- Christian Pesch - Softw

Re: [Advanced-java] Create javadocs

2001-06-18 Thread Christian Pesch
es. Converts # the name of the directories into Java package names. # # @author Christian Pesch DIRS=`find $INSTALL_DIR/classes -type d` for i in $DIRS; do # gnu find: FILES=`find $i -name \*.java -type f -maxdepth 1` FILES=`find $i/* -type d -prune -o -name \*.java -type f -print` if [ -n "$

Re: Help with JTable column width

2001-04-25 Thread Christian Pesch
it is not allowed to resize but the container of the JTable donates it more spaces. Thus the JTable streches the columns on its own. -- Christian Pesch - Software Engineer [EMAIL PROTECTED] - fon +49.40.325587.505 fax .999 CoreMedia AG - www.coremedia.com - 0700-COREMEDIA Erste Brunnenstraß