Results 1 to 5 of 5
  1. #1
    atrodeyo is offline Member
    Join Date
    Apr 2012
    Posts
    41
    Rep Power
    0

    Default Layer customizing

    Layer customizing-screenshot-layertwogui.pngcould anyone help me with customizing the position of those 3 buttons. how do I move those buttons anywhere I want to inside the tabs?

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    757
    Rep Power
    8

    Default Re: Layer customizing

    What do you mean by "how to move those buttons anywhere inside the tabs?" Do you want the users to be able to move those buttons? Or do you want to use another layout manager for your GUI so you can control where you want to place those buttons?

  3. #3
    atrodeyo is offline Member
    Join Date
    Apr 2012
    Posts
    41
    Rep Power
    0

    Default Re: Layer customizing

    I want to custom design but I want to have full control with positioning the buttons. I tried with few layouts but it does not give me full control. My goal is to read the x, y position from a text file and then place buttons or images according to that. Can you help me with that please?

  4. #4
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    757
    Rep Power
    8

    Default Re: Layer customizing

    You can do it with something call as absolute positioning in swing application. Take a look at the following documentation Doing Without a Layout Manager (Absolute Positioning) (The Java™ Tutorials > Creating a GUI With JFC/Swing > Laying Out Components Within a Container)

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,184
    Rep Power
    19

    Default Re: Layer customizing

    Absolute positioning is almost always a bad choice, unless this is a toy program and will run on only on the computer it's built on.

    Java has a variety of layout managers, and layouts can be nested to get just about any positioning you want.
    Lesson: Laying Out Components Within a Container (The Java™ Tutorials > Creating a GUI With JFC/Swing)

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Geomajas WMS layer 1.9.0
    By java software in forum Java Software
    Replies: 0
    Last Post: 02-05-2012, 06:21 PM
  2. Geomajas Hibernate layer 1.9.0
    By java software in forum Java Software
    Replies: 0
    Last Post: 02-05-2012, 06:18 PM
  3. Geomajas GeoTools layer 1.9.0
    By java software in forum Java Software
    Replies: 0
    Last Post: 02-05-2012, 06:16 PM
  4. Transparent layer
    By disabled in forum SWT / JFace
    Replies: 0
    Last Post: 03-20-2010, 04:04 PM
  5. Creating layer on images ?
    By Qmalq in forum AWT / Swing
    Replies: 2
    Last Post: 01-27-2009, 10: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
  •