-
A simple question about applets
I'm very new to applets so I hope my question makes sense.
I want to be able to place GUI components in my applet but not have them sit on top of the main applet viewing area. For example, if I place a JComboBox in the upper left corner, I would like the applet to read the coordinates (0,0) below it.
Thanks!
-
You can certainly subdivide the area of the applet frame, and place a container within the applet frame which will give you a "local" point of reference of ( 0, 0 ) for that container. You looking to do some drawing?
Have you thought about a tranform of your axis after placing the JComboBox?
-
thanks for the reply. I probably could have worded my question by asking if I can define the area that the paint() method accesses. For the applet I'm working on, I placed a combo box at the top and it hovers over some shapes that are being drawn.
-
Is there another container which will support your drawing?
-
No, there's just one container. I just found out how to do this on the API website though. I have to use the translate method in the Graphics class
Similar Threads
-
By Andrew Murphy in forum VB Classic
Replies: 1
Last Post: 09-03-2002, 01:17 AM
-
Replies: 0
Last Post: 03-21-2001, 04:01 PM
-
Replies: 0
Last Post: 11-04-2000, 02:57 AM
-
By Alex Nitulescu in forum VB Classic
Replies: 1
Last Post: 10-21-2000, 05:13 AM
-
By Gary McCallum in forum Java
Replies: 2
Last Post: 10-20-2000, 11:20 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|