I have a JSplitPane with a JTree on the left and a JTabbedPane on the
right. I want the JTabbedPane replaced, based on the actual type of the
object that is clcked.
That works OK but the following happens:
On the first time click on an object in the tree, the JTabbedPane
appears but only half filled. The second time I click (without changing
the object in the tree), the JTabbedPane appears fully filled.
Exactly the same code is executed:
if(e.getClickCount() == 1)
DefaultMutableTreeNode selectedObject =
if( selectedObject.getUserObject() instanceof RootNode)
RootTabbedPane tabbedPane = new RootTabbedPane();
else if( selectedObject.getUserObject() instanceof IntermediateNode)
IntermediateTabbedPane tabbedPane = new IntermediateTabbedPane();
Can anyone give me an idea on how to solve this problem?
On Tue, 25 Jan 2005 08:30:48 +0100, Joost Kraaijeveld wrote:
> Can anyone give me an idea on how to solve this problem?
- pack()/validate(), else..
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
1] Problems with compiler 2] Problems with Rhide -- Update Thanks to all for your help and suggestions. I am a newbie, so I
might not understand everything you say.
1] Compiler -
Problems was options. Object code location was originally set to
D:\DJGPP\BIN. Since the D: drive did not exist, it defaulted. Now
set to C:\D\DJGPP\BIN, and it compiles. However, on attempting a
build, it is looking for a project [this test program is not part of
a project], which it cannot find, and defaults. I've tried "Close
Projects" but that does not seem to help. Suggestions please.
2] RHIDE -
I am again using my wife's computer to t...
Eclipse problem updating from 3.1 to 3.1.2 I go into Find and Install, Search for new features. I added a remote site
pointing to http://update.eclipse.org/updates/3.1/. I select it. It finds
the 3.1.2 updates I select them and it starts downloading. It downloads
the first three files fine. After the third file it starts on file
org.eclipse.platform.source.linux.gtk.x86_64_3.1.2.jar it immediately pops
a dialog that says "Update operation has failed" and the update ends. I
tried four different mirrors and it dies in the exact same place for all
four. There's nothing in any of the configuration log files. Any ideas on
Old JTree Update Problem Hi all out there
I want to come back to this dammed old JTree problem which doesn't seem
to be solved correctly. Look at the code at the end, run it an press
the switch button. What you see is that the long text gets abbreviated
with an ellipse (...). The usual solutions hack around by setting the
initial text to the longest one which will ever be displayed. That's
not the kind of solution I try to find. The usual advises are to use
validate(), which - together with invalidate and revalidate - do not
solve the problem.
I've read in one post that the bounds of the nodes are cached...
JTree problem (0/1) Hi,
For a project I'm working on I'm building a GUI that uses a JTree. This tree represents groups of hardware. Each node
represents such a piece of hardware. The name that is presented by the node is either the ip-address or the name of the
system and possilby a different color when the system is on-line. To be able to do that I'm using my own
TreeCellRenderer. The grouping of systems is handled by a TreeModel I made.
Now when I detect that a system becomes on-line, I update the model and trigger the TreeModelListeners'
treeNodeChanged() methods. I can see the tree change bu...
Custom JTable update problem Hi,
I am using a custom table model, to keep a vector of a custom class,
and everything works fine. I have custom renderers and editors for my
The problem is, when a cell is in editing mode , displaying my custom
control ( which is a jtextfield actually )with a new typed value in
it , the user can click another button on the form, to add a new row
to table. The user will assume that the editing is complete and a new
row will be added, which is perfectly normal.
But when this happens, sometimes the value in the textbox gets lost,
and the new row is added. Somehow, the value in textbox ...
Mouse clicks within JTable unreliable I have a jdk 1.4.2 applet-form which has a JTable with 2 columns. The
number of rows is variable (up to a 100) depending upon the key fields.
Column 1 of each row shows a checkbox and column 0 shows the
corresponding description. The table has a mouseListener with methods
for mouseClick, Press and Release.
The symptoms are that when I rapidly click on each unchecked checkbox
in column 1 and then use the Save button, I find that some checkboxes
don't show a check even though I had previously checked them all. The
miss ratio is 3 in a 100. Same results with unchecking. I get the same
problem with mouse-over button inside JTable I want to style JButtons in my app so that when the user mouses-over a
button it changes its look. It works fine with a button that is
stand-alone but not when the button is inside a JTable as a
TableCellRenderer. Reading this thread:
it seems like the events are not delivered to a JButton that is a
Is there a way to make it so JButtons inside a JTable will change their
look on mouse-over? Here is a te...
[newbie] JTable view update problem J2SE 5.0 on Windows XP.
I am creating my first JTable and I have managed to get it to display in the
JFrame OK but when I add rows to the data model the screen is not updating
the JTable display and therefore the new rows are not appearing. If I
resize the window then they appear.
What do I have to do to get each row to appear as I add the data? Is it
something to do with TableModelListeners?
Wes Harrison wrote:
>...the screen is not updating
> the JTable display and therefore the new rows are not appearing. If I
> resize the window then they appear.
Well gee a...
Small problem with GarageBand Update 1.01 I'm sure some people have already noticed this, but when I tried to
update my GarageBand with the 1.01 updater I got the error message that
/Applications/GarageBand was not present. I looked in that directory
and there was Garage Band.... with a SPACE between the names. That's
the way my 1.0 version installed (bad Apple.). Changing the name of the
1.0 installed app by removing the space to GarageBand did the trick. I
hope that's the only glitch.
-- Lou Pecora
My views are my own.
In article <pecora-650EB0.firstname.lastname@example.org>,
Lou Pecora <p...