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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:13:34+00:00 2026-05-20T01:13:34+00:00

I want to create a pop up box that is activated when I click

  • 0

I want to create a pop up box that is activated when I click a “Check” button. What it does is ask the user if they are sure about what they requested. If yes, it does the request. If no, it goes back to it’s normal state.

I know what I said is a bit ambiguous but I want to create various types of pop up boxes.

So I was wondering is there a website that has generic pop up boxes with the code given?

I just need a simple code which I can expand on.

  • 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-20T01:13:35+00:00Added an answer on May 20, 2026 at 1:13 am

    I think JOptionPane is what you want.

    • showConfirmDialog: Asks a confirming
      question, like yes/no/cancel.
    • showInputDialog: Prompt for some
      input.
    • showMessageDialog: Tell the
      user about something that has
      happened.
    • showOptionDialog: The Grand
      Unification of the above three.

    A small example to get a Yes-No popup like you asked for would be:

    if (JOptionPane.showConfirmDialog(null, "Are you sure about your request?", "Request", 
        JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE)
        == JOptionPane.YES_OPTION)
    {
     //Do the request
    }
    else
    {
     //Go back to normal
    }
    

    This solution, however, only works if you are using Swing.

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

Sidebar

Related Questions

I am trying to create a hint dialog box that informs the user about
I want to create a simple http proxy server that does some very basic
I want to create an in-window pop up that darkens the entire window with
I want to create a function that performs a function passed by parameter on
How to create a pop up animation on iPhone? I want show my uiview
I want the dialog box to pop up after 5 seconds. Can someone explain
If I want to create a window that is not a main application window
i want to create message box which must be seen on current screen(Ex i
How to create the pop up window using LWUIT? I want to show an
I want to create a form for my user which shows a drop down

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.