swarna latha

Greenhorn
+ Follow
since Jun 22, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by swarna latha

Hi,
I have used JFilechooser like that
JFileChooser fc=new JFileChooser(filePath);

but for that header ie showing ony 'X' symbol mean that for close.
but i need to show '?' symbol side of X symbol.? is for help.
please help on this,i couldnt able to find out solution.

Thanks and regards
K.SwarnaLatha
16 years ago
Hi,

I have created JSpinner in one screen with 2 textfields .

In the spinner using editor i am showing date.

If i empty the spinner then remaining 2 textfields should disable.

For that i have used.ChangeListener and keyListener.

Using this 2 listeners i cant able to make that text field disable.

How can i solve this problems.

Thanks and regards
K.SwarnaLatha
16 years ago
Hi,

Thanks for the reply.

But if i use setOpaque(true) its not getting color as wel as i cant able to

select elements in JTree.

Thanks and regards
Swarna
16 years ago
Hi thanks for reply,

I coudnt give correct explanation.

Ex: I have designed one screen with the name( list). That have new button.

If i click that new button .Create(This is another class) screen will open.

Again if i click new button of list class create screen will go back of list screen.

But in my requirement if i try to click any thing in list class.create class should apear first.that wont go back.

In create class in window opened i am trying to disable the list class using that list class object.
But its not happening.

Hope now you may understand little on my problem.

If you know please suggest me on this.

Thanks and regards
K.Swarna Latha
16 years ago
Hi,

How to make color to specific node in jtree.

I have used tree renderer its not working.

If any body knows the solution please tel me.

Thanks and regards
K.Swarna Latha
16 years ago
Hi ,

For example : one screen if i do action performe on one component i can open screen .After open that screen in my requirement i dont access before screen.

I have used Jframe for creation of screens.
In my code if i try to click on before screen component which i have used to open for other screen, that screen will get enable and already opend screen going back of that screen.But in my requirement that should be visible .first screen should go back.

java i cant able to find out.

If any one knows the solution please help me.

Thanks and regards
Swarna
16 years ago
Hi,

I have created one table with 5 columns.In that one column i have added checkbox.if i select one column and as wel as i have tried to select other column in same row.I cant able to next column number.I am getting first selected column number its not get focus next column .

plese help on this.
Thanks and regards
Swarna
16 years ago
Hi,

I have constructed empty tree.
when ever if i click add button then only tree should visible without root.I have used tree.setrootVisible(false).But its not working for my code.I am trying add one node only.If i try to add one more node i can able to get add for that method.
For add button i added actinlistener.there when ever i click add button i am getting data from textfield(textfield.gettext()) like that.
I can collect only one data from,next time if click i am getting data.But i cant able add that text to tree as a next root.

please help me on this
Thanks and regards
Swarna
16 years ago
Hi,
How can i create empty JTree

If i create JTree in that all root and nodes are visible.But in our requirement first i need to show empty tree.If i get add only i can
get show root or leaf nodes

Please help on this

Thanks and Regards
K.SwarnaLatha
16 years ago
Hi all,

In our code,first the spinner should be empty.when we click on spinner up arrow or down arrow then only that should show current date.

I have written following code with that ,if i open the screen that is showing the current date with that format.

Date d= new Date();
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
SpinnerDateModel model=new SpinnerDateModel(d,null, null, 0);
JSpinner s1 = new JSpinner(model);
JSpinner.DateEditor de = new JSpinner.DateEditor(s1, sdf.toPattern());
s1.setEditor(de);

with the above code i am not able to get empty spinner at first time
so i have written like that to get empty spinner
((JSpinner.DefaultEditor)s1.getEditor()).getTextField().setText("");

If i written that line i am getting empty spinner.Next if i click spinner arrows i should get current date .But i am not able to get.

Please if any one know about this.
please help me to how can i get use action for that.
I have taken changelistener also its not be help ful for me.

Thanks and Regards
K.SwarnaLatha
16 years ago
Hi Cambell,

Thanks for your reply.From that link i can get remove whole title bar of the frame and i can get disable maxmize and minimize buttons.But i need to disable only the minimize option.Still i couldnt get it.If you know the thing please help me.

Thanks and regards
K.Swarna
16 years ago
Hi,

I have taken 2 JScrollpanes for that i have added 2 jlist.I have written some code regarding that.Please check in down side.in that left i have added one scrollpane,middle 2 buttons rigtht another scrollpane.
if the length of the text is more the scroll width is increased .But for me both the lists size should be same .it wont be the matter with the text length.How can i solve that .Please any of you people help me on this.

This is the code i have written.
private JPanel getSecondPanel()
{
JPanel listPanel = new JPanel(new GridBagLayout());
listPanel.setBorder(BorderFactory.createTitledBorder (null, "Select the groups for the user"));
listPanel.add(getJScrollPane1(), new GridBagConstraints(0, 0, 1, 2, 0.5, 1.0,
GridBagConstraints.SOUTHWEST, GridBagConstraints.BOTH,
new Insets(0, 10, 10, 5), 0, 0));
listPanel.add(getJButton2(), new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0,
GridBagConstraints.PAGE_START, GridBagConstraints.HORIZONTAL,
new Insets(60, 0, 0, 0), 0, 0));
listPanel.add(getJButton3(), new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0,
GridBagConstraints.PAGE_END, GridBagConstraints.HORIZONTAL,
new Insets(0, 0, 60, 0), 0, 0));
listPanel.add(getJScrollPane(), new GridBagConstraints(2, 0, 1, 2, 0.5, 1.0,
GridBagConstraints.SOUTHEAST, GridBagConstraints.BOTH,
new Insets(0, 10, 10, 5), 0, 0));
return listPanel;
}

Thanks and regards
swarna
16 years ago
Hi,

In our code we need to disable minimize button in frame.
Please any one can help on this problem

Thanks and regards
Swarna
16 years ago
Hi,

In one screen,I need to show some text.If i maximize the screen the text will visible in one line.If i minimise that will show in 3 lines.How can it possible.Can you help on this.

Thanks and regards
K.SwarnaLatha
16 years ago
Hi,

I need to get black color for JTable column lines how can i get that.

Thanks and regards

Swarna
16 years ago