A simple question about applets


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: A simple question about applets

Hybrid View

  1. #1
    Join Date
    May 2005
    Posts
    75

    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!

  2. #2
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    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?

  3. #3
    Join Date
    May 2005
    Posts
    75
    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.

  4. #4
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    Is there another container which will support your drawing?

  5. #5
    Join Date
    May 2005
    Posts
    75
    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

  1. Very Simple Question - I think
    By Andrew Murphy in forum VB Classic
    Replies: 1
    Last Post: 09-03-2002, 02:17 AM
  2. Simple Java DOM question
    By Lenin in forum XML
    Replies: 0
    Last Post: 03-21-2001, 05:01 PM
  3. Simple Threading question
    By R in forum Java
    Replies: 0
    Last Post: 11-04-2000, 03:57 AM
  4. Simple Data Environment Question
    By Alex Nitulescu in forum VB Classic
    Replies: 1
    Last Post: 10-21-2000, 06:13 AM
  5. Simple Class Variables question
    By Gary McCallum in forum Java
    Replies: 2
    Last Post: 10-20-2000, 12:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center