Drake Silver

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

Recent posts by Drake Silver

Anyone know how I could parse a String into a Gregorian Calender Date...??
I've tried converting the string to an integer..but no luck there...
Any ideas...'
21 years ago
I've changed the forloop to look like this:
But I still et no reaction...
It has occured to me that the forloop is in contradiction with the cModel function.
While the cModel may try to grow larger, the for loop is trying to shrink it...so My for loop is also wrong...
Any ideas on how to get the circle to move the right and left when the circles size is greater than the panels height and width?
[ March 13, 2003: Message edited by: Drake Silver ]
21 years ago
I'm trying to draw an oval ..and it works.
I can fill it, resize it using a slider to increase it's radius or decrease the radius.
My problem right now is that even though it resizes, and I have it set to the middle of the panel, when I increase the radius past the panels hieght and width the circle stays in the middle, and it goes beyond the panels borders...not good.
I want to be able to shift the circle's position up and to the left if the radius is greater than the panel's hieght and width.
This is my code so far in the model-view approach.
21 years ago
thanks alot guys, i'll see where I get from here.
thanks again
21 years ago
hi, does anyone know of a function or method that will only let you ouput a set amount of numbers after the decimal...
I kind of remember something about format, or mask or something like that...but after searching for it i came up with nothing...
I have a number : 99.9012345678
and I want it to come out as 99.90, can anyone suggest something...thanks.
21 years ago
I'm wondering if someone can help me out with a Jpopup menu.
I've been reading, and it says that with every menu, a Jpopup is associated to it..
I get from this that If I add a Jpopup, I can link the new popupmenu items to the Jmenu Items..
Did I Understand that correctly?
How would I join the popup's menu items to the Jmenu menu items?
thank you
21 years ago
hey..what happened..?
After I told myself what to do..
I went and did it.
Then Iposted back a reply that said I had fixed my problem..wierd..?
I could of sworn that my follow up post made it through..
anyway, yes, everything's working fine now.
thanks for asking
21 years ago
why don't to make sure that the java file being compiled is the main class.
meaning, go into project properties and make sure your main java file is the one being compiled.
good luck
21 years ago
any other ideas?
I can't work on this without the Gui...
The only thing I remember doing was adding
a JFileChooser.
After that the Compiled Code no longer ranin a window
21 years ago
hi..thanks for the replies.
I don't know what it is that I may have done.
I also don't know what code you want...
so I posted the code from the application configuration.

It is set to visible, and when I added .show() it didn't seem to affect anything.
any more ideas?
21 years ago
I don't know what it is that I may have done but now when I compile, a java window does not open.
My gui is not run.
I'm using jbulder 7.
what could have done this..?
21 years ago

Originally posted by Marilyn de Queiroz:
HashMaps and TreeMaps do not implement the Collection interface as other Collections in java.util (like ArrayList and TreeSet) do. But they do implement the Map interface.

ok, thankyou.
I'm much obliged.
21 years ago
I thought Tree, hash Maps didn't have interfaces?
I think I was told something to this effect.
21 years ago

Originally posted by Chantal Ackermann:
it's less overhead to use the ItemStateListener than the ActionListener. - sorry that I have not mentioned it in the first mail. I didn't think of it by then. the itemstatelistener is only notified if the selection changes, while the actionlistener is notified even if the checkbox is already selected and gets clicked a second time.

Thanks for the tip.
It's always great to get a little tip or two from a more experienced programmer.
I'll make the adjustments.
Thank you again for all of your help.
21 years ago

Originally posted by Marilyn de Queiroz:
I don't know If I'll get any help for this post, not after my last post.

Have you seen these three?

Number 1

Number 2

Number 3

I looked on sun's tutorial webpage, I even searched..
I got no results..
Thanks, I don't know how you found it, but it's good enough for me.
21 years ago