Solved

Java - BorderLayout Issues

Posted on 2010-09-18
2
313 Views
Last Modified: 2012-05-10
There is this darn white box on the right of my program that won't go away. I had it there originally but now I want it gone and it's not going away!

The main part I look at is the init().

Here is what I mean:

USTZX.png

See that whitespace to the right? ugh!! <_<

Here is my code: http://www.dasdfsdg.pastebin.com/es2WMbgV 
0
Comment
Question by:UrbanTwitch
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 33710088
your game panel only paints the game grid.
In your case the actual panel is larger than just the game grid
you can paint the background using something like this:

g.setColor(Color.black());
g.fillRect(getWidth(), getHeight());
0
 
LVL 5

Author Comment

by:UrbanTwitch
ID: 33710107
AH YES! Good catch good good catch. :D
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How  can  i  resolve  HTTP Status 404 -? 8 78
jsp insert to database example 2 89
Where to place postgres JDBC driver jar on tomcat 8 70
Java array 21 149
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question