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 4034966
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:02:20+00:00 2026-05-20T12:02:20+00:00

How to change the shape of JFrame in different shape , and also make

  • 0

How to change the shape of JFrame in different shape , and also make it interface look alike Mac Windows Frame

Thanks…

  • 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-20T12:02:20+00:00Added an answer on May 20, 2026 at 12:02 pm

    You can make the interface of a Java Swing application look “native” to the operating system it’s running on by additing the following lines to either your main method, the init method (if it’s an Applet) or to the constructor of your top-level JFrame:

    try {
      UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    } catch(Exception e) {}
    

    Edit

    UIManager.setLookAndFeel() can throw five different types of exception, documented here (assuming that you’re using Java 6). How to handle these exceptions is completely up to you – if you ignore them (as in my example, catching all Exceptions and then doing nothing) then your application will use the default Java look and feel. Maybe this isn’t a bad thing? Only you can decide.

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

Sidebar

Related Questions

I am using the code below to change to shape of the winform. It's
When manipulating matrices it is often convenient to change their shape. For instance, to
How to change the UITextField to oval shape ? link shows a screenshot of
Is it possible to change the default shape (i.e rectangular) of the button (normal
Why changing Color of Default Button makes it look RECTANGLE shape ? I do
Just wondering if anyone knows how to change the look of the button on
How would I programmatically change the colour of a shape I have drawn based
I need to change a line colour of a selected shape. I have the
Is there a way in Winforms to change the shape of a ToolStrip item.
This shape is the backround of a linearLayout, how can I make any TextViews

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.