how to disable cancel button in the input dialog box
Bruno Mesta
Greenhorn
Joined: Dec 01, 2009
Posts: 18
posted
0
can someone please tell me how to disable the cancel button on the input dialog box. i would also like to disable the close operation. If you can provide an example it will be great
I'm not sure. That's what I can see by having a quick look at the documentation of JOptionPane. [Edit: Rob beat me ]
This message was edited 1 time. Last update was at by Devaka Cooray
Bruno Mesta
Greenhorn
Joined: Dec 01, 2009
Posts: 18
posted
0
yes i looked at teh ap but didnt fin nothign that will help me. I was thinking of using the metho getFrameForCOmponent but i dont know what to put in the parameter
Rob Camick
Ranch Hand
Joined: Jun 13, 2009
Posts: 1644
posted
0
I said the tutorial has working examples.
Bruno Mesta
Greenhorn
Joined: Dec 01, 2009
Posts: 18
posted
0
i checked the tutorials and there is nothing....
Rob Camick
Ranch Hand
Joined: Jun 13, 2009
Posts: 1644
posted
0
Bruno Mesta wrote:i checked the tutorials and there is nothing....
It takes more than 5 minutes to read it and play with the examples posted. You can customize the option pane to display any buttons with any text.
This message was edited 1 time. Last update was at by Rob Camick
Bruno Mesta
Greenhorn
Joined: Dec 01, 2009
Posts: 18
posted
0
bro i been trying to figure this out since 1:20am and now its 1:53am. thats why i posted something in the forum? otherwise i wouldnt have done it.
Rob Camick
Ranch Hand
Joined: Jun 13, 2009
Posts: 1644
posted
0
It takes more than 20 minutes to read the tutorial, play with the examples and understand it.
Instead of cross posted questions in the forum do some reading.
Bruno Mesta
Greenhorn
Joined: Dec 01, 2009
Posts: 18
posted
0
bro instead of making my life so complicated you should provide some advice. All you are doing is making this post more lengthy. If you aren't going to help it will be greatly appreciated if you don't post anything unless its helpful
Rob Camick
Ranch Hand
Joined: Jun 13, 2009
Posts: 1644
posted
0
Everything I've said has been helpfull:
a) It was noted you cross posted. This upsets people because they could be wasting time answering a question that has already been answered.
b) I told you the answer was in the API, if you look at the different methods that can be used.
c) I told you the tutorial has examples that shows you how to add your own buttons to any option pane.
I am NOT going to spoon feed you the answer since you are making absolutely no effort on your own.
This message was edited 1 time. Last update was at by Rob Camick
Bruno Mesta wrote:bro instead of making my life so complicated you should provide some advice. All you are doing is making this post more lengthy. If you aren't going to help it will be greatly appreciated if you don't post anything unless its helpful
If you can't judge the usefulness of a response you shouldn't ask questions on a public forum. Looks like you expected someone to do your work for you. That doesn't (and shouldn't) happen.
luck, db
Bruno Mesta
Greenhorn
Joined: Dec 01, 2009
Posts: 18
posted
0
you guys are hilarious you are making it seem like its such a big deal. its only a line of code and by the way i already figured it out. thanks for all your help you guys were very helpful hahaha you guys remind me of people in my class that are so tight with their code...lol
Rob Camick
Ranch Hand
Joined: Jun 13, 2009
Posts: 1644
posted
0
by the way i already figured it out
And that was my point, if you took a few minutes it isn't difficult to figure out, plus you might learn something else while reading the tutorial.
you guys remind me of people in my class that are so tight with their code
Its not about being tight with code. Its about you developing to problem solving / reading skills so that you can solve problems on your own it a couple of minutes rather than posting questions on a forum and waiting hours hoping that someone will give you the code. We pointed you in the right direction, you should have been able to take over from there.
And since you are not "tight with code", why don't you post your solution here so that other people can benefit from you solution?
This message was edited 1 time. Last update was at by Rob Camick