About 13,400,000 results
Open links in new tab
  1. How to add the "play again?" feature for java - Stack Overflow

    Nov 26, 2013 · One simple approach would be to move the code you've written into a function. public void play() { . ... and from main do something like: do { . play(); playAgain = promptUser; …

    Missing:

    • Dialog Box

    Must include:

  2. How to Make Dialogs (The Java™ Tutorials > Creating a GUI With …

    To create simple, standard dialogs, you use the JOptionPane class. The ProgressMonitor class can put up a dialog that shows the progress of an operation. Two other classes, …

  3. Message Dialogs in Java (GUI) - GeeksforGeeks

    Oct 26, 2021 · Message dialogs are created with the JOptionPane.showMessageDialog () method. We call the static showMessageDialog () method of the JOptionPane class to create …

  4. import java.awt.Graphics; public class WelcomeLines extends JApplet {public void paint( Graphics g ) {g.drawLine( 15, 10, 210, 10 ); g.drawLine( 15, 30, 210, 30 ); g.drawString( "Welcome to …

  5. java - How do i implement a play again feature? - Stack Overflow

    Oct 3, 2016 · public boolean playAgain(Scanner keyboard) { try { System.out.print("Do you want to play again? (Y/N): "); String reply = keyboard.nextLine(); return …

    Missing:

    • Dialog Box

    Must include:

  6. Java 8 Swing - Dialogs

    Within Swing we use the JDialog class to create dialog windows where we can display components to prompt our users to undertake certain actions. We have a couple of choices …

  7. Java Swing | JDialog with examples - GeeksforGeeks

    Apr 16, 2021 · JDialog is a part Java swing package. The main purpose of the dialog is to add components to it. JDialog can be customized according to user need . JDialog (Window o, …

  8. Message Dialogs in Java GUI - Online Tutorials Library

    Aug 1, 2023 · To establish a message dialogue in an application. Utilize the showMessageDialog () function belonging to the JOptionPane Class. This method requires information such as a …

  9. How to Create Dialog Boxes in Java - DZone

    Apr 3, 2025 · Follow a simple tutorial for creating dialog boxes in Java using the JOptionPane and JDialog methods, and learn the high-level advantages of each approach.

  10. How to make a Gui actually prompt for the dialog boxes?

    Oct 9, 2014 · My main question is why the dialog boxes aren't popping up at all and what I should do to fix that. On a related note, when I had the code as …

  11. Some results have been removed
Refresh