Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Java - Options

Name: Anonymous 2010-09-09 3:26

Hey, I'm trying to do a multiple options pop-up window. I'm doing a simple Banking program, where you can withdraw, deposit, change the interest etc.

I want to have a pop-up, where you first choose which action you want to take (Deposit, withdraw etc.) and then after, it pops up with an input window for the action you chose.

I have already done the input windows for the options, but I cannot get the first options window to work. Frankly, I don't know how to even make it as JOptionPane seems to not have the abilities to do it.

Am I making any sense?

Name: Anonymous 2010-09-09 3:39

If you're going to use retarded languages, at least read the documentation for their retarded libraries.

Name: Anonymous 2010-09-09 3:42

you can change the interest
No, this does not make sense at all.

Name: Anonymous 2010-09-09 3:44

>>2
I have read the documentation for JOptionPane but there's nothing there that I can use for my problem.

Blame my professor for choosing Java, not me.

Name: Anonymous 2010-09-09 3:45

>>4
Should we also blame him for having idiots for students? Read the fucking Swing documentation, not just the javadoc for a single fucking class.

Name: Anonymous 2010-09-09 3:46

>>3

Fun stuff.

Name: Anonymous 2010-09-09 3:50

>>5

I've had Java for 2 days.

It's funny. People say the text boards on 4chan are much nicer than the image boards. Heh...

Name: Anonymous 2010-09-09 4:52

>>7
And they are nicer than imageboards. However, this doesn't mean they are nice.

Name: Anonymous 2010-09-09 5:01

Java sucks.

Name: Anonymous 2010-09-09 9:38

I'm sorry, do Banks actually hire recent javaschool grads or something?

Name: Anonymous 2010-09-09 11:00

>>10
Yes, they do.

Hopefully this has explained that recent total economic collapse to you.

Name: Anonymous 2010-09-09 11:02

>>1
Am I making any sense?
No. Dialog boxes are the devil. Never make them.

Name: Anonymous 2010-09-09 11:42

This shouldn't be too hard.  If you're planning on directly opening up different JDialogs or JOptionPanes based on prior actions, set it up so that the MouseListener on the prior window detects which option you've selected and calls the constructor for the appropriate new component.  In some cases, that means modifying the existing Listeners.

If you want to limit the number of pop-up windows and just use a single pop-up, set it's layout manager to a CardLayout, and have it switch cards based on your selected options.

I'd recommend using JDialog components and controlling any default methods of window closing using setDefaultCloseOperation() and using the dispose() method appropriately.

Name: Anonymous 2010-09-09 11:57

>>7
I've had Java for 2 days.
And you learned to read in elementary school. Use this skill.

It's funny. People say the text boards on 4chan are much nicer than the image boards. Heh...
There are no textboards on 4chan. If they're saying the textboards on world4ch are nicer than the imageboards on 4chan, they're right, but they don't mean ``nice'' as in ``friendly'', especially not when it comes to idiots.

Name: Anonymous 2010-09-09 11:57

>>13

You don't know anything. I hate shitty advice from people with no problems. YOU don't have to constantly battle pop-up fucktard. WHY THE HELL?!

Name: Anonymous 2010-09-09 12:04

>>15
pop-up fucktard
Are you referring to the OP, or the OP's problem?

Name: Anonymous 2010-09-09 12:07

>>13
it's layout manager
Faggot.

Name: Anonymous 2010-09-09 12:24

>>16
I AM THE OP?! NO?!

Name: Anonymous 2010-09-09 12:37

>>18
Shut up, Durden.

Name: Anonymous 2010-09-09 12:39

>>18
You're overusing the interrobang.

Name: Anonymous 2010-09-09 12:51

Not an interrobang, anusbrewer.

Name: Anonymous 2010-09-09 13:11

>>21
You're kind of dumb, aren't you?

Name: Anonymous 2010-09-09 14:03

>>22
Excuse me‽

Name: Anonymous 2010-09-09 15:51

>>22
The interrobang [...] is a nonstandard English-language punctuation mark
``?!'' is not a punctuation mark.

Name: Anonymous 2010-09-09 16:16

>>24
More like a digraph of the punctuate genus.

Name: Anonymous 2011-02-04 15:40

Name: Anonymous 2013-01-19 14:34

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List