Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7003455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:04:15+00:00 2026-05-27T21:04:15+00:00

i was following the David Brackeen’s Developing Games in Java book and i made

  • 0

i was following the David Brackeen’s Developing Games in Java book and i made a simple script that allows to enter windowed mode. Well .. the problem is that when i draw the buttons the title bar overlaps them . Is there a way to fix it ?

ScreenShot:

enter image description here
See it? The bar overlaps the buttons!

Here is the netbeans project (the main source file is MenuTest): http://www.mediafire.com/?tyc16am8ga517c7

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:04:16+00:00Added an answer on May 27, 2026 at 9:04 pm

    1) use proper LayoutManager instead of setSize / setBounds

    2) use paintComponent() for Swing JComponents instead of paint() method

    3) use KeyBindinds rather than KeyListener

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a following XML file: <titles> <book title=XML Today author=David Perry/> <book title=XML
David Flanagan's excellent book on JavaScript has an example that shows how to perform
I have the following simple script on a page <!DOCTYPE html PUBLIC -//W3C//DTD XHTML
Following up from this question: How can I unlock a file that is locked
I have the following problem in Java: I have a base class and a
I have a DependencyObject class composition that looks like the following: public class A
On a Vista machine with the valid path C:\Users\David, calling Directory.GetFiles(@C:\Users\David) throws the following
David A Black ( The Well Grounded Rubyist , Chapter 6) presents the following
Consider the following search results: Google for 'David' - 591 millions hits in 0.28
I have an array containing following elements {Mark=90, Students={Tom,Marry,Jack}}, {Mark=50, Students={Niko,Gary,David}}, {Mark=70, Students={John,Andy,Amy}} I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.