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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
16 matches
Mail list logo