Hallo to all, I need help on how to put a radio button on the coordinates I want. . .I have this map program and I want to place the radio button on the specified place on the map. I don't know how. . .I have attached an image of the map and the red circle is where the radio button should be place.
nagatron
0
Junior Poster in Training
Recommended Answers
Jump to PostNo offence, but looking on your posting history I'm not sure if you actually posted in correct section.
Are you sure you talking about Java as programming language by Sun Microsystems or you wanted to ask about JavaScript as scripting language mainly used for web development.Either way more …
Jump to PostWell Couldnt get completely what you wanted.
Do u want to create a Panel with this image and Radio Button on it?
You can use the paintComponent to paint the image and setBounds method to translate your Button to the exact coordinte you want. But remember for using setBounds method …
Jump to PostHe did tell you how to do it. Read the last two sentences again carefully.
Jump to PostPositioning with no layout manager:
http://java.sun.com/docs/books/tutorial/uiswing/layout/none.html
Jump to PostYou could use something like this in your MapPanel to manage the "spots"
import java.awt.*; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import javax.swing.*; public class MapPanel extends JPanel { Image map; ImageIcon spot1, spot2, spot3, note; JLabel point1, point2; public MapPanel() { Toolkit kit = Toolkit.getDefaultToolkit(); map = kit.getImage("cebumap.jpg"); …
All 20 Replies
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
gunjannigam
28
Junior Poster
nagatron
0
Junior Poster in Training
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
nagatron
0
Junior Poster in Training
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
javacle
-2
Newbie Poster
nagatron
0
Junior Poster in Training
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
nagatron
0
Junior Poster in Training
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
nagatron
commented:
Thank you again for the help. . .eventhough I am anoying. .hehehe
+2
nagatron
0
Junior Poster in Training
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
nagatron
commented:
Impressive, Great, Good Job
+2
nagatron
0
Junior Poster in Training
nagatron
0
Junior Poster in Training
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
nagatron
0
Junior Poster in Training
nagatron
0
Junior Poster in Training
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
nagatron
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.