473,509 Members | 11,437 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Horizontally expanding JTree

73 New Member
I want a horizontally expanding tree. Is it possible in java.Can anyone tell me if any tool availabe if not possible in java .Example of tree is below:
|
-----------------2[]----|
| |
|
|
1[]-|
| |
| |
| __________3[]---|
|
Oct 17 '07 #1
5 1851
JosAH
11,448 Recognized Expert MVP
I want a horizontally expanding tree. Is it possible in java.Can anyone tell me if any tool availabe if not possible in java .Example of tree is below:
|
-----------------2[]----|
| |
|
|
1[]-|
| |
| |
| __________3[]---|
|
I don't see much difference between your tree and a JTree except that you want
your root (node 1) printed 'between' nodes 2 and 3 while a JTree prints node 1
before it prints nodes 2 and 3. Or maybe I'm blind ;-)

kind regards,

Jos
Oct 17 '07 #2
jyohere
73 New Member
I don't see much difference between your tree and a JTree except that you want
your root (node 1) printed 'between' nodes 2 and 3 while a JTree prints node 1
before it prints nodes 2 and 3. Or maybe I'm blind ;-)

kind regards,

Jos
The diagram became wierd after i clicked submit ...dont know why....i want a tree that expands horizontally as opposed to Jtree which expands vertically
Oct 17 '07 #3
jyohere
73 New Member
The diagram became wierd after i clicked submit ...dont know why....i want a tree that expands horizontally as opposed to Jtree which expands vertically
[IMG]/tmp/connections-1-img.bmp[/IMG]
Oct 17 '07 #4
JosAH
11,448 Recognized Expert MVP
The diagram became wierd after i clicked submit ...dont know why....i want a tree that expands horizontally as opposed to Jtree which expands vertically
Put your ASCII art between [ code ] ... [ /code ] tags; it uses a monospaced font
for its display.

kind regards,

Jos
Oct 17 '07 #5
jyohere
73 New Member
Put your ASCII art between [ code ] ... [ /code ] tags; it uses a monospaced font
for its display.

kind regards,

Jos
Click the link below. I want something like this.which expands and collapses
http://www.boxesandarrows.com/files/banda/site_diagrams_mapping_an_information_space/Withrow_img2.gif
Oct 17 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
4152
by: Mitch Williams | last post by:
I've been working with a JTree based on a custom TreeModel. Unfortunatly, I cant figure out how to force it to update the entire tree-- there simply dosnt seem to be a way to say "OK, your data...
2
11106
by: Piet | last post by:
Hi there, I have managed to write a small java program that display an xml file in a JTree. This was achieved by defining a suitable tree model. THe program works...somehow. The nodes (elements...
0
1678
by: Lucia | last post by:
hello, I habe a Java Program that displays the XML document in a Java JTree using DOM. Now I can add, delete and edit the JTree Elements. But I don't know how to show the attributes also in the...
0
2382
by: luvping04 | last post by:
Hey, i told to make a java program to load xml into JTREE using SAX api. i'm suppose to load the 1st layer of the jtree and hide the subtree into memory. How can i load the subtree into...
1
3370
by: Rahsaan Page | last post by:
Hello Everybody, I am trying to write a file Explorer program in Java, i go the Frame, Basic Menu and Tree going. But now i have the C: listed and i need some help expanding and collaping the...
0
1097
by: flavourofbru | last post by:
Hi, I am converting a given html document into a tree structure and displaying it using JTree and DefaultMutable classes. By using the html parser and the JTree functionality, I can display the...
1
2413
by: flavourofbru | last post by:
Hi, I am presently trying to display an XML document as a tree structure. I am able to do it using JTree and SAX Parser. Now I would like to get the parents of all non-leaf nodes and display...
2
1703
by: ace84 | last post by:
Hi, I am creating an application where I want to show a file system. I have never worked with them before, so i am not sure on what I need to do to accomplish my goal. So far I found a script through...
1
3951
by: sivakrish85 | last post by:
Hi, this is krishna i am on developing FTP in java.Here i display the server Files and client Files in tree view using JTree.So my question is that once the client send the file to...
0
7237
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7349
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7417
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5659
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3210
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
445
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.