Re: Trees, Files and renaming

2003-03-28 Thread Christian Pesch
Taylor, Lynn wrote: I'm looking for an example or suggestion on where to start to change the name of a file that has been displayed in a JTree. On the File object that has been used in the TreeModel? -- Christian Pesch Product Maturity Manager tel +49.40.325587.505

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 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 Maturity Manager CoreMedia AG - http

Re: JTextArea is a memory hog!

2003-01-09 Thread Christian Pesch
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 AG - http://www.coremedia.com - 0700-COREMEDIA

Re: JTabbedPane repaint

2002-08-28 Thread Christian Pesch
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.com - 0700-COREMEDIA

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 McCauliff wrote: What tools (if any) do

Re: Design guidelines

2002-02-13 Thread Christian Pesch
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 - Software Engineer

Re: Design guidelines

2002-02-12 Thread Christian Pesch
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 - Software Engineer

Re: JTextField update ?

2001-11-19 Thread Christian Pesch
don't you simply call invokeLater here? Or withing the loop? - the run method sleeps for 1 sec and calls your invokeLater block updating the JTextField's -- Christian Pesch - Software Engineer CoreMedia AG - http://www.coremedia-ag.com - 0700-COREMEDIA

Re: JTextField update ?

2001-11-16 Thread Christian Pesch
into the AWT Eventqueue. Fortunately, there is a helper for this: SwingUtilities.invokeLater(new Runnable() { public void run() { tfCount.setText(...); } }); That should do it. -- Christian Pesch - Software Engineer CoreMedia AG - http://www.coremedia-ag.com - 0700-COREMEDIA

Re: Implementation of Http Web Server

2001-09-17 Thread Christian Pesch
Bharat schrieb: Hi, Any ready examples or references ?to develop http web server... --Bharat. Try Tomcat from http://jakarta.apache.org/ PS: Follow-Up set to advanced-java as this has nothing to do with Swing. -- Christian Pesch - Software Engineer CoreMedia AG - http://www.coremedia.com

Re: [Advanced-java] Create javadocs

2001-06-18 Thread Christian Pesch
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 $FILES ]; then # gnu awk: echo $i | awk

Re: Accessing shared memory in Java

2001-06-11 Thread Christian Pesch
is that even if a garbage collection is running (and one most VMs I've seen, it does on System.gc()) it would not remove objects one does not need anymore, but which are still referenced but other more long living objects. -- Christian Pesch - Software Engineer [EMAIL PROTECTED] - fon +49.40.325587.505

Re: Text strikeout or underlined

2001-05-08 Thread Christian Pesch
Vali schrieb: What about JTextPane? I have seen some examples and I know is posible. How can I do it using JTextPane? Underlined text is possible: look into javax.swing.text.StyledEditorKit -- Christian Pesch - Software Engineer [EMAIL PROTECTED] - fon +49.40.325587.505 fax .999 CoreMedia

Re: Help with JTable column width

2001-04-25 Thread Christian Pesch
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ße 1, 20459 Hamburg, Germany CoreMedia

Re: Modal JWindow

2001-02-27 Thread Christian Pesch
Radim Tlust schrieb: Does anybody know how to make JWindow modal? Use a JDialog? -- Christian Pesch - Software Engineer [EMAIL PROTECTED] - fon +49.40.325587.505 fax .999 CoreMedia AG - www.coremedia.com - 0700-COREMEDIA Dsternstrae 3, 20355 Hamburg, Germany