Results 1 to 4 of 4
  1. #1
    lupo is offline Member
    Join Date
    Mar 2010
    Posts
    2
    Rep Power
    0

    Default Invisible component

    Hello, I'm searching an invisible component, to do an empty space between two components.

  2. #2
    chyrl is offline Senior Member
    Join Date
    Mar 2010
    Location
    Manila, Philippines
    Posts
    257
    Rep Power
    5

    Default

    An empty component? Why not use the setBounds();
    Having an empty component for a gap purpose between two visible component is not a good method.

    How about studying the GroupLayout, I think it would be better yet it's hard to understand.

  3. #3
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    Quote Originally Posted by lupo View Post
    Hello, I'm searching an invisible component, to do an empty space between two components.

    there are components that accept hgap and vgap as argument, example new FlowLayout(int align, int hgap, int vgap) : FlowLayout**java.awt**Java by API so there is no need to patchwork in awt or swing.

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,519
    Blog Entries
    7
    Rep Power
    20

    Default

    There also the Box class that can serve as a factory for empty components such as glue, struts and more.

    kind regards,

    Jos

Similar Threads

  1. opening default browser window in invisible mode
    By robby14 in forum Advanced Java
    Replies: 1
    Last Post: 02-20-2010, 01:50 AM
  2. add component to component
    By Omarero in forum New To Java
    Replies: 7
    Last Post: 05-17-2009, 02:39 PM
  3. Replies: 2
    Last Post: 04-14-2009, 10:01 PM
  4. Replies: 3
    Last Post: 01-11-2009, 11:20 PM
  5. How to make the JTextArea background invisible
    By bradder in forum AWT / Swing
    Replies: 1
    Last Post: 12-05-2007, 06:30 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
  •