JFrame « JOptionPane « Java Swing Q&A





1. JOptionPane opening another JFrame    stackoverflow.com

So I'm continuing my fight with this : http://stackoverflow.com/questions/2923545/creating-java-dialogs/2926126 task. Now my JOptionPane opens new window with envelope overfiew, but I can't change size of this window. Also I wanted ...

2. How to close a JFrame in the middle of a program    stackoverflow.com

public class JFrameWithPanel extends JFrame implements ActionListener, ItemListener
{
    int packageIndex;
    double price;
    double[] prices = {49.99, 39.99, 34.99, 99.99};

    ...

3. An easier alternative to JFrames (in full screen)?    stackoverflow.com

Right now, I have a full screen application which spawns several full screen JFrames based on a configuration file (so I can never predict exactly how many frames I will have). ...

4. Java: JOptionPane affects parent JFrame? (includes SSCCE)    stackoverflow.com

Given the following applet:

import java.awt.BorderLayout;
import java.awt.Rectangle;
import java.lang.reflect.InvocationTargetException;

import javax.swing.JApplet;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JPanel;

public class Example extends JApplet
{
   JPanel aPanel;

   @Override
   public void init()
   {
  ...

5. Opening JFrame using JOptionPane    stackoverflow.com

I want to open my JFrame and display all the necessary files after The JOptionPane dialog box asks for username and password.I'm using the if condition to do so! Is it ...

6. JOptionPane or JFrame?    coderanch.com

7. about JFrame and JOptionPane    coderanch.com

8. Return result from JOptionPane to JFrame    java-forums.org

Hi. I have Frame and button in that Frame. When I click on the button it opens Dialog. In that Dialog is button. When I click on that button it returns something to the frame (for example draw Rectangle or Oval). I have tried few times, but it wasn't good :-( My thinking: class NewFrame extends JFrame class NewPanel extends JPanel ...

9. JOptionPane to JFrame    java-forums.org

Hi guys, I have a program which uses the JOptionPane for user input. I want to put this or something similar to this on a JFrame as I need a GUI for my program. Also, I'm trying to look for a way to display the results obtained once the user enters something and clicks OK. Currently, when the program is run, ...





10. Help with Game - Possible Problem with JFrame/JOptionPane    forums.oracle.com

Hey, all, I'm taking programming in high school, and for our "end of the year" project, my teacher decided to make us create a game. Regardless of the fact that we had no knowledge of game coding or graphic design prior, my group tried to create something simple but relatively amusing. As background, we're using JFrame to create a window for ...

11. JFrame and JOptionPane    forums.oracle.com

} } here is the class file (GuiTesting.java): import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.JButton; import java.awt.Container; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; class GuiTesting extends JFrame { private static final int width = 500; private static final int height = 175; private JLabel nameLabel, addressLabel, phoneLabel; private JTextField nameTextField, addressTextField, phoneTextField; private JButton okButton, clearButton; private OkButtonHandler obHandler; //private ...