Kinu Kanwar

Ranch Hand
+ Follow
since Apr 19, 2005
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 Kinu Kanwar

I am working on quite complex GUI project and we have almostly customzied every Component class.

I am facing very weird problem which I have never faced.

I have combo box on screen and It is enabled and non editable.

Programmitcally I do some complex things and populate it. The thing is that the elements in combo box are of grey color instead of default black color. I have checked my renderer classes etc and till now it was working fine but I add some new functionalty in my GUI and I came up with this problem.

I did not make any changes to my combo box class or its related classes. I just add new component on my screen,

If I add

JOptionPane.showMessageDialog(null, "444", "44444", JOptionPane.ERROR_MESSAGE);

as last line of function which populates combo box, combo box elements turn into black again.

I have tried repaint() , validate() and pack() on my frame but nothing works even I have called explicitly setForeground(Color.BLACK) on my combo box. it does not help. Can some one help me why elements are turning into grey and how they turn into black again after putting above java line.

Thanks

Kinu
13 years ago
My combo box is editable , There are many tex tfields etc on screen

On clicking search button, how could I know what user has typed.

For non editable , following code works but for editable if user has written some thing and click search , it does not get any thing.

String str = (String) cb_level1.getSelectedString();
if ( (str != null ) && ! ( str.trim().equals("") ))
return true ;

Any help is appreciated.

Kinu
13 years ago
I am having a very basic problem , Please help me .

I have Option Dialog with two options A and B . If user selects neither A nor B but click cross to close dialog box , My program continues. Just want to disable that cross button that is used to close the window.

I want user to make selction A or B and should not be able to close the option window before that . Is ther any way ??

My code goes as follows .....



Object[] options = {"Change to A", "Continue with B" };


int response = JOptionPane.showOptionDialog(
null ,
"A or B" ,
"Confirm",JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE,
null,
options,
options[1]
);

if (response == JOptionPane.YES_OPTION)
{
// do some thing
return ;
}

// continue with your logic
}
14 years ago
Is there any book available for this frame work ???

Any help is appreciated

Kinu
Did it pass the if check ?

If yes then there might be problem with your frame object ? Try to pass null for testing instead of frame and see what happens ?

Kinu
14 years ago
Called setMinimumSize() on Table , it worked.

Kinu
14 years ago
I have a scroll pane which contains table. I have placed this scroll pane in NORTH section of BorderLayout.

The problem is that table has 10 rows and I want user to show atleast 3-4 rows but as I have placed scroll pane in north so it just shows only one row and includes scroll bar.

Any quick help is appreciated.

Kinu
14 years ago
Any one please could help me??

Kinu
I found sample example from IBM on this forum but I have not got 100% solution or atleast near to that. Can some body help me please.

Any help is appreciated.

Kinu
Thanks Gian for your reply.

Can you please post links of "IBM developerWorks, especially of Barcia and Wosniek."

How did you find Whizlabs , Was it good for preparation ?

Did you ahve 100 % percent correct answers of ICED exam ??

Any other resource I could use.

I need to score above 80% to get reimbursed by my company. Yeah I know they suck.

Once again thanks

Kinu
Hi Gian

I have got WCD 1.3 Book from Deshmukh.

I have ED Roman 3rd Edition EJB Book

I have Kushner Book.

Are above resouces enough for exam.

Can you please tell me how did you prepare.

Thanks in Advance.

Kinu
When are you taking your 287 exam or you have already taken ?? Did you find it useful ??

Kinu
I bought whiz lab simulator , they claimed 6 mock exams and after activation I got only 3 practice exam. Any idea whats going on ??

http://www.whizlabs.com/websphere/websphere-details.html

They claimed 6 even I did not get the whole notes even after activation with my licence.

I have emailed to them but no reply yet.

Any help is appreciated
[ May 30, 2005: Message edited by: Kinu Kanwar ]
I bought whiz lab simulator , they claimed 3 mock exams and after activation I got only one practice exam. Any idea whats going on ??

http://www.whizlabs.com/scdjws/scdjws-details.html

They claimed 3 even I did not get the whole notes even after activation with my licence.

I have emailed to them but no reply yet.

Any help is appreciated
WCD Study Guide ?? Does it mean exam has alot of questions on Servlet/JSP.


Could you please tell me in details please.

Kinu