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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:49:40+00:00 2026-05-24T17:49:40+00:00

I have a full screen (100%, even covers taskbars) application which sometimes asks for

  • 0

I have a full screen (100%, even covers taskbars) application which sometimes asks for a password using a JOptionPane with a PasswordBox. My problem is that when the popup appears, you can see the system’s taskbar at the bottom. It kind of looks like this:

    ----     popup
------------ taskbar
------------ fullscreen app

whereas I want the stack to stay like this:

    ----     popup
------------ fullscreen app
------------ taskbar

As long as my application is running I would like to fully hide the taskbar. This is the password box class I’m using:

public class PasswordBox {
    public String prompt() {
        JPasswordField pass = new JPasswordField(10);
        int action = JOptionPane.showConfirmDialog(null, pass,"Enter Password",JOptionPane.OK_CANCEL_OPTION); 
        return new String(pass.getPassword());
    }
}

and I invoke it like this:

String tmpPASS = new PasswordBox().prompt();

If anyone needs more code I can easily provide it. I’m not sure how to tackle this problem and where to start. I gave up on the idea of “focus” because when the popup shows up it has focus.

  • 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-24T17:49:41+00:00Added an answer on May 24, 2026 at 5:49 pm

    If I’m not mistaken, you should pass the parent JFrame as the first parameter to the JOptionPane:

    public class PasswordBox {
        public String prompt(JFrame fatherFrame) {
            JPasswordField pass = new JPasswordField(10);
            int action = JOptionPane.showConfirmDialog(fatherFrame, pass,"Enter Password",JOptionPane.OK_CANCEL_OPTION); 
            return new String(pass.getPassword());
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like my application to have a full-screen mode. What is the easiest way
I have a Silverlight application running full screen. Is there a way i can
I am trying to have a UI which is a full screen UIWebView. When
In the application I'm developping (in Java/swing), I have to show a full screen
I am working on a full screen kiosk application in Flex 4/Air 2 using
I'm creating a full screen ( html, body {height: 100%} ) web application and
What I'm doing is I have a full-screen form, with no title bar, and
I have a simple app with a full screen UIWebView. This contains HTML generated
I have several aspx pages that can be opened either normally (full screen in
I have an IE6 absolute position div that I want to be full screen

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.