Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: JFrame invisible border issue

  1. #1
    Member
    Join Date
    Sep 2011
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default JFrame invisible border issue

    Hello!

    I´ve a little issue I would like to get solved.

    On my JFrame there seems to be like an invisible border around the frame. So when something should be invisible or stop at ykoord = 0 e.g., it becomes invisible/stops like 20 pixels from the borders you see. Although the background is painted correctly...

    Maybe I need to add something here:

     public Game()
        {
            add(new Board());
            setTitle("Game");
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            setSize(BOARD_WIDTH, BOARD_HEIGTH);
            setLocationRelativeTo(null);
            setVisible(true);
            setResizable(false);
        }

    Please help!


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: JFrame invisible border issue

    when something should be invisible or stop at ykoord = 0 e.g., it becomes invisible/stops like 20 pixels from the borders you see
    What is the "something" and how does it become invisible or stop?
    Also what is ykoord? It is not shown in your code.

  3. #3
    Member
    Join Date
    Sep 2011
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: JFrame invisible border issue

    I forgot the transparent parts of the images. My bad. :/

Similar Threads

  1. using objects from one jFrame on a different jFrame
    By Taskeen in forum AWT / Java Swing
    Replies: 3
    Last Post: September 14th, 2011, 08:51 AM
  2. how two create two 8*8 button border
    By mr.p4r4d0x in forum What's Wrong With My Code?
    Replies: 4
    Last Post: May 26th, 2011, 10:25 AM
  3. Swing Components Invisible as Startup
    By SpiceProgrammer in forum AWT / Java Swing
    Replies: 5
    Last Post: January 23rd, 2011, 02:26 PM
  4. About Title border in jscrollpane
    By subhvi in forum AWT / Java Swing
    Replies: 2
    Last Post: December 15th, 2009, 12:45 AM
  5. invisible box game
    By new2java in forum Loops & Control Statements
    Replies: 1
    Last Post: September 27th, 2009, 12:46 PM