Eliza Parker

Greenhorn
+ Follow
since Apr 25, 2012
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 Eliza Parker

Ranganathan Kaliyur Mannar wrote:Hi Eliza,
Welcome to the Ranch!

I am unable to see the image. As for toggling, there is a separate JToggleButton available - I think that fits your scenario. You can read about them in the tutorial here.

As for the popup, you have passed 'null' to the first parameter of the showMessageDialog. This paramater indicates the 'owner' of the popup - in your case, you have to pass the instance of the your main frame for the popup to appear inside.



Thanks, here's i already update the picture. I'll try to give them a go on JToggleButton later.
Um, actually i dont need to move the pop up. I just required the following text to be appear inside the box. Not the pop up. I said it wrong way on previous post.
12 years ago
Hello there, I'm new to the website. I hope i could get some help with my java.
Here's what it looks like



I required to activate those toggles Metric button, by clicking it. Then the unit will convert into ft and lb instead m and kg. I'm not sure how to do it.
Also, i need to move the Pop up message dialog box outside into the same window, rather than separate window.
Any tips on how to do it ?
Thanks



12 years ago