This week's book giveaway is in the Design and Architecture forum.
We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line!
See this thread for details.

Jeevan Anand

Greenhorn
+ Follow
since Jul 02, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Jeevan Anand

no. I m not adding these nodes directly to root, there is a child node to tree root node , and then teh leaf nodes are added to this child node. I am not finding the leaf nodes added.
[ November 09, 2008: Message edited by: Jeevan Anand ]
15 years ago
I am using JTree, with DefaultTreeModel, visitor pattern....basetreenode extending to DefaultMutableTreeNode.
15 years ago
Ok, I will give more details:

I m working on instant messeger like gtalk, pidgin.

Once I log in using msn gateway/ aim gateway for msn user/ aim user, i get subscription request for user's buddies. If i approve request. the buddies should be added in roster (tree).

In my case, the same behavior found for windows, solaris, but linux the behavior is different. If i approve request. the buddies are not added in roster (tree). There is no exception thrown. The information about buddies added is recieved at messenger's client but buddies are not shown on UI.
[ November 09, 2008: Message edited by: Jeevan Anand ]
15 years ago
I am working on messenger.

I am finding the different behavior when I launch the client on linux/ solaris.

When I subscribe a buddy, the buddy should appear in roster(buddy tree).

Its working on solaris, windows but not on linux(all flavours) ??

any clues ??
15 years ago
When we use JOptionPane.showInputBox(), I want OK button should be disabled when there is no input in JTextBox, should be enabled when there is input in JTextBox. How to do this ?
16 years ago
got the solution. Using null for selectionValue getting me JTextfield.
16 years ago
I am using following syntax of JOptionPane as I need to provide, title also and initial selection value in textfield. The problem is I m finding combo box instead of JTextField. In specification I found written "It is up to the UI to decide how best to represent the selectionValues, but usually a JComboBox, JList, or JTextField will be used." Let me know how should I correct the code to get JTextField:

String[] selectedValue = {Name};
String newName = (String) JOptionPane.showInputDialog(this, chatBundle.getString("Enter_Name"), chatBundle.getString("Enter_Chat"), JOptionPane.QUESTION_MESSAGE, null ,selectedValue , selectedValue[0]);

Thanks in advance.
16 years ago
I am using JOptionPane.showInputDialog() to get an input value. It is having OK, cancel button. Is there any way, I can know cancel button is pressed, since i want to perform some actions when cancel is pressed.

Again, when close on right top corner is pressed, Is there any way, I can know close is pressed.
16 years ago
I am using java 1.5 and os is solaris 10
16 years ago
Hi,

I need to use JOptionPane.showInputDialog(this, msg, title, int). But I am getting minimize and close both on dialog box. How to get rid of minimize option.

Thanks.
16 years ago
I want items in one node of JTree should not be allowed to move to any other node of JTree.

Any idea how to do that ?
16 years ago
JTree has root folder invisible. It has folders as child nodes of tree called A, B, C, D.

A, B can contain only leaf nodes.

C, D can contain child nodes as folder and those child folders will have leaf nodes.

The problem is I want C/D should be treated as single tree i.e. user can not move any leaf node of C/D tree to any other folder like A/B...that is 'p' can be moved to Folder2 but not to folder 'A'/ 'B'...How to make these type of settings??



Kindly help me.
[ July 02, 2008: Message edited by: Jeevan Anand ]
16 years ago