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

  • SEARCH
  • Home
  • 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 7510033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:06:31+00:00 2026-05-29T23:06:31+00:00

I want to implement a java awt/swing application but i am new to awt/swing.

  • 0

I want to implement a java awt/swing application but i am new to awt/swing. I need to draw a grid like panel. Than drag and drop some objects on it. Later than objects can be clickable and resizable. My application should look like this:

desired output

I am able to draw object with :

public void paint(Graphics g){}

but its too far away from what i want to do.

How can i implement this kind of application? What should i read and know to do this?

  • 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-29T23:06:32+00:00Added an answer on May 29, 2026 at 11:06 pm

    First, I’d be sure to follow the Swing tutorials:

    • http://docs.oracle.com/javase/tutorial/uiswing/components/
    • http://docs.oracle.com/javase/tutorial/uiswing/

    Then, I’d revisit your approach a little: I would use Swing components.

    • Start with a JPanel on a JFrame.
    • Add a JComponent to the panel for your grid. Override the paintComponent method there to draw your grid.
    • Add other JComponents on top of that for your objects. Again, override the paintComponent method for those to draw the appearance of your objects.
    • You can then use the built-in functionalities provided by JComponent to allow for clicking, resizing, etc. With each event, you can then redraw the component to account for any changes you need to display in the next call to paintComponent – calling repaint if necessary to force a redraw.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I am trying to implement the java logging in my application. I want
I'm creating a grid based game in Java and I want to implement game
I am new to the whole Java Swing/AWT dialogs (which explains how amateurish this
I want to implement in Java a class for handling graph data structures. I
I'm writing a Java game and I want to implement a power meter for
I'm trying to work with fractions in Java. I want to implement arithmetic functions.
I am a C# programmer. I want to learn Java to implement my windows
How would you implement a capacity-limited, generic MruList in C# or Java? I want
I want implement in my software solution an VBA editor but in c# 3.0.
I want to read a value from textfied in Java but I am not

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.