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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:28:14+00:00 2026-06-12T04:28:14+00:00

I am programmi an application for mac and I would like to have an

  • 0

I am programmi an application for mac and I would like to have an about window to show to the user some infos, like the one of Finder.

Actually I am using this code:

System.setProperty("apple.laf.useScreenMenuBar", "true");
// SET NAME IN THE MACMENUBAR
System.setProperty("com.apple.mrj.application.apple.menu.about.name", Constants.APP_NAME);  
Application application = Application.getApplication();
Image image = Toolkit.getDefaultToolkit().getImage("res/logo.png");
application.setDockIconImage(image);
application.setAboutHandler(new AboutHandler() {
public void handleAbout(AboutEvent arg0) {

JOptionPane.showMessageDialog(null, "Some infos.");
}
});;

but the thing that I obtain is not what I want, because is a dialog box with the “logo.png” image on the left and the text on the right. And also a big awful “OK” button that you must press to close the window.

How can I make a simple about window like Finder’s ?

Can you help me? I found many tutorial on the net, but all are using deprecated methods in Application class.

(sorry for my bad english, I am italian)

  • 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-06-12T04:28:15+00:00Added an answer on June 12, 2026 at 4:28 am

    You have at least two options:

    1. Create a JPanel (possibly your own subclass) and layout the components in it as you want. Then show it with JOptionPane.showMessageDialog() by passing it as the first argument, rather than passing null as you have.

    2. Create a JDialog and layout the components yourself. Again, you may want to create a subclass of JDialog to do this.

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

Sidebar

Related Questions

I would like to generate some temporary files in the course of my application.
I have an Cocoa Application (Mac OS X SDK 10.7) that is performing some
I have a table like this: Application,Program,UsedObject It can have data like this: A,P1,ZZ
So I have this SFML 1.6 application that works well on Mac OS X
I would like to rewrite an application that currently works as a Windows GUI
I would like to do some Flash development on my MacBook, utilizing the Flex
I'd like to install gcc to Mac OS X Leopard, and compile some software
I would like to build an application that uses Genetic Programming to figure out
I would like to associate a specific file type with my application, so when
Using the GitHub application on Mac (not the cli), I have this error which

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.