Results 1 to 2 of 2
  1. #1
    phil128 is offline Member
    Join Date
    Sep 2008
    Posts
    40
    Rep Power
    0

    Default Custom JButton with flow layout

    Hello. I'm trying to create a custom button, only the problem I'm having is when I use the flowlayout I get a border between the two custom jbuttons.

    I'm getting summat like this:

    __ __
    |__| |__|

    When I want summat like this.
    __ __
    |__||__|

    Basically I don't want a gap between each jbutton.

    Any tips please?

    Cheers

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by phil128 View Post
    Hello. I'm trying to create a custom button, only the problem I'm having is when I use the flowlayout I get a border between the two custom jbuttons.

    I'm getting summat like this:

    Java Code:
      __      __
    |__|   |__|
    When I want summat like this.
    Java Code:
     __   __
    |__||__|
    Basically I don't want a gap between each jbutton.

    Any tips please?

    Cheers
    Use a different layout? If you need more help, please read about creating SSCCE in my signature links below, and create and post one. Luck.

Similar Threads

  1. How to generate Data Flow Diagram(Work Flow Diagram)
    By stsivaraj in forum AWT / Swing
    Replies: 1
    Last Post: 12-22-2010, 11:21 PM
  2. stack over flow error
    By sara12345 in forum New To Java
    Replies: 3
    Last Post: 04-14-2010, 09:50 PM
  3. Struts Work Flow
    By LovJava in forum Web Frameworks
    Replies: 1
    Last Post: 01-26-2010, 11:46 PM
  4. program flow
    By loktamu in forum AWT / Swing
    Replies: 1
    Last Post: 09-17-2008, 04:52 PM
  5. Help with JButton and layout
    By adlb1300 in forum AWT / Swing
    Replies: 1
    Last Post: 12-25-2007, 08:33 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
  •