Multiple « JFrame « Java Swing Q&A





1. multiple JFrames from JAR    stackoverflow.com

I have a Java application that launches multiple windows (JFrames). It works fine when I'm running it from the command line. But after packaging the app in a JAR and running ...

2. Can I create a JFrame with multiple images?    stackoverflow.com

Here is my problem: I have an application that every iteration it returns to me a list of images. The imagens have different sizes and the number of images to be shown ...

3. multiple JFrames    stackoverflow.com

im creating a java application with netbeans. i have two jframes for login and the main application. what i want to do is to load the login jframe at runtime, then ...

4. how to create multiple frames in java swing component    stackoverflow.com

i am new to java swing component. please tell me how to create multiple frames. My requirement is ,base frame should contain 2 radio buttons and if i click anyone radio button it ...

5. Multiple frames in a Java application    stackoverflow.com

Just need some quick guidance - I have a main frame, and I want some smaller frames inside of it that can be dragged outside of the main frame (potentially onto multiple ...

6. Printing JFrame in Java on multiple pages    stackoverflow.com


i'm trying to print a document using Java.

The "document" i'm trying to print is a JFrame with a buch of components in it. (JTable, JLabels, JTextFields,..)
Now, I've found some code snippets ...

7. How to add multiple components to a JFrame?    stackoverflow.com

I have a JFrame. I also have a Box class which extends Component. This box class has a paint method which makes a filled rectangle. When I add multiple of these Box components to ...

8. GUI multiple frames switch    stackoverflow.com

I am writing a program for a black jack game. It is an assignment we are not to use gui's but I am doing it for extra credit I have created ...

9. Use variable through multiple frames in java    stackoverflow.com

I am creating a project that with be using multiple jFrames. There is one important variable I have that every frame needs access to. Is there a way to use this ...





10. Java, what's the Multiple Markers at this line mean?    stackoverflow.com

Possible Duplicate:
What does the "Multiple markers" mean?
package test2;
import java.awt.*;
import java.awt.event.*;


public class MyDrawing3Demo extends Frame{

    Panel p1,p2;
    Button red,green,blue,large,small,clear,allClear;
 ...

11. Print JFrame by splitting to multiple pages    stackoverflow.com

I want to print JFrame by breaking it into parts and printing each part on each page by zooming the part. Suppose the JFrame is of size 100x100. Then I want to ...

12. Multiple tasks showing up in my JFrame application    stackoverflow.com

I am creating a Java Swing based desktop application in Netbeans. The application consists of some JFrames to get and display user data. The problem I am facing is that when ...

13. Working with multiple frames    coderanch.com

I have two frames(swing) in my application, and I placed command button named "CLOSE" in the second frame. How do I close the second frame without exiting the whole application using the command button that I have placed? I just want to close the frame and the first frame must be resumed. I used System.exit(0) but it closes the whole application. ...

15. Multiple frames from a parent frame    coderanch.com

Hi, I want to open multiple frames from a parent frame. I am creating an application. In that I've one main frame along with menus. Using those menus I'm calling another frames in that frame. How to call other frames in the main parent frame ? Any suggestion / code ... [ July 27, 2005: Message edited by: Sumit Mhatre ] ...

16. Multiple JFrames ?    coderanch.com

Could you please define "launch their own instances of a program". Do you mean that there would be separate processes running separate JVMs? This would be useful if you wanted one instance to survive when other instance crashes, but would likely be a heavy solution as far as memory and CPU usage was concerned.





17. Using Multiple Frames!    coderanch.com

18. Multiple JFrames    coderanch.com

19. how to prevent multiple instance of jframe    coderanch.com

Hi guys. I have an application with two buttons, buttonDisplay and buttonExit. If buttonDisplay is clicked jFrameDisplay is instantiated/created and displayed. However if I click buttonDisplay in my first frame, another instance of jFrameDisplay is created. How can I prevent other instances of jFrameDisplay, if there is already one created. I have used private final JFrame jFrameDisplay = new JFrame() as ...

20. multiple windows in single Jframe    coderanch.com

21. View Multiple images in a single window    coderanch.com

22. How to deal with form data while switching between multiple frames    coderanch.com

Hi I have created a swing application in netbeans environment. This app consists of four frames. Now my requirement is, after filling Form1 when user clicks "Next" button then form1's data should be buffered somewhere and then go to second form and so on. Finally when user lands in the last form, at this point i want the total data of ...

23. JFrame with multiple DialogBoxes    coderanch.com

25. Multiple jFrame Netbeans App -> calling methods in one jFrame from another    coderanch.com

Hello, I have created a netbeans Java application with 2 jFrames (mainScreen, newCallout). In mainScreen, as a subcomponent, I have created another jFrame called searchScreen. The reason I have this as a subcomponent, is because it only allows one instance of searchScreen to run. mainScreen also has a button to open the searchScreen along with the actionPerformed method to open it. ...

26. Multiple JFrame Quick Help    coderanch.com

27. Adding multiple Clickable areas in trailing mode to a frame    coderanch.com

Hi everyone, I'm working on a Naughts & Cross like game and I have problems with its GUI. I'm not familiar with JFX which seems to make it a peace of cake so I have to handle it using simple Swing. The problem is that I need to add a square(3^2) number of cells to my game area which are clickable(listen ...

28. Adding multiple images to frame    java-forums.org

29. displaying multiple tabels information in single window    java-forums.org

As part of our application monitoring, we need to monitor the data of 10tables with the less number of Database hits through standalone application (i.e. monitoring kit). Earlier we used to do the same with single JFRAME for 3 tables data monitoring. Please suggest the best way to monitor 10 tables info in the single window (i mean single JFRAME)... I ...

30. Is there any standard way to manage multiple JFrames?    java-forums.org

Say you have JFrames A, B and C. When you click on a JButton that is on the A JFrame, it opens the B JFrame (instantiates it and sets visible to true) and B is hidden. Now the same happens on B: it opens C by instantiating and setting its visible property to true and hides itself. So now we have ...

31. Help with multiple frames/classes    java-forums.org

Hi im trying to make a program that is simple and has a bunch of buttons on it. I essentially want it to work by Clicking on a button, that opens a specific window for that button and this new window will have more buttons. On this new window if you click a button, i want it to add new text/label ...

32. How to post multiple image in frame?    java-forums.org

can you please help me about this...i just want to post a picture inside the frame that looks good with a proper spacing or grid... thank you... :o here's the code: Java Code: import java.awt.GridLayout; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JFrame; import javax.swing.ImageIcon; public class irish extends JPanel { JLabel label1, label2, label3,label4,label5,label6,label7,label8,label9; public irish() { ImageIcon ...

33. trying to use multiple JFrame Windows    java-forums.org

hello, ok with my project im trying to use a single file to call multiple classes to pass information to the other JFrame classes. However when i run the runner file, it runs the first but will not close the class/window. I cant seem to find the code to close the window/class and proceed to the next class. Here is the ...

34. MultiPle JFrame problems    java-forums.org

35. Help with Multiple JFrame visiable    java-forums.org

I have difficulties in selecting or making one GUI JFrame visiable and the others invisiable when user login. the class are login.java employee.java inventory.java sale.java now if a user login using the login.java JFrame form to login, which should take the user to one of the java class JFrame e.g employee.java which should be visiable and the others should be invisiable. ...

36. Help: passing data from multiple JFrames    java-forums.org

Hi, hoping an expert can help me here. See the image of what I am trying to achieve,.. I have created 3 jFrames with jButton options. And I want the 4th jFrame to display (or compute) the combination of buttons selected. So the question is, how do I pass the selected data from different frames/components (example here from the top 3 ...

37. multiple jframes question    java-forums.org

Hi, I have a program that has a jframe with a button that opens up a second jframe. After the second frame is open, the user inputs some information and hits submit, at which time both jframes close. The issue im having is that upon opening the second frame, the user can still go back to the first and keep clicking ...

38. please help me with getting multiple object to appear in jframe. Happy Tday.    java-forums.org

Here is my code. I am trying to get multiple face objects (2 in this case)to appear in the jframe. package smile; import javax.swing.JPanel; import java.awt.*; public class face extends JPanel { private final int x, y, z, q; public face (int x, int y, int z, int q) { this.x =x; this.y = y; this.z = z;this.q=q; setBackground (Color.gray); setPreferredSize ...

39. working with multiple jFrames    forums.oracle.com

i am developin an application using jSwing(thru netbeans). here i am using different jFrames for each GUI. Now i hv one login screen..after logging in into system - menu screen is displayed.Menu displays buttons for different screens to be viewd.Upon clickin on a button tht particular screen is displayed. Now the problem is i am accessing a screen(jFrame) called "leaveBalance" from ...

40. multiple Jframes    forums.oracle.com

I see you're using Netbeans to auto generate the GUI you'd learn more and have better code if you hand-coded it. Also, you're exception handling is shocking, you should try to have as little as possible in try-catch statements as this will make it easier to isolate problems when they occur and allow you to give more useful diagnoisis output from ...

41. Multiple JFrame instantiation.    forums.oracle.com

I made an executable .jar file and when executed it instantiates a JFrame and displays a window on the screen. My problem is if i havent close the said window and re-execute the .jar file it intantiates and displays another of the same window. How do i trap this such that if i try to re-execute the .jar file and if ...

42. Netbeans and Multiple jFrames    forums.oracle.com

Hey, Does anyone know how to make an application have multiple windows/jFrames with Netbeans 5.5's GUI builder? I created another jFrame in my application by right-clicking on my source package in the Projects window and selecting New... --> jFrame Form... How do you make the new jFrame form I created become visible from the first jFrame form I have? Once I ...

43. Netbeans with multiple jframes    forums.oracle.com

44. Multiple jFrames in Application    forums.oracle.com

Hello, I am having problems finding documentation or an example on how to make multiple jFrames work. In my application I have my main jFrame and would like something very simple to where the user can open a second jFrame while the main jFrame is still visible (the second jFrame would have focus) the user can use the functionality of the ...

45. How do you print multiple pages of JFrames?    forums.oracle.com

I can't seem to figure out how to print multiple pages. I tried using the book class where I appended two JFrames to it. The print dialog seems to see two pages since it comes up with "Pages from 1 to 2", but it only prints one page. It also only shows one job in my printers printer jobs while printing. ...

46. How to prevent multiple instance of Jframe    forums.oracle.com

Hi guys. I have an application with two buttons, buttonDisplay and buttonExit. If buttonDisplay is clicked jFrameDisplay is instantiated/created and displayed. However if I click buttonDisplay in my first frame, another instance of jFrameDisplay is created. How can I prevent other instances of jFrameDisplay, if there is already one created. I have used private final JFrame jFrameDisplay = new JFrame() as ...

47. Problem with multiple JFrames    forums.oracle.com

Problem with multiple JFrames Posted: Sep 30, 2006 12:35 PM Reply Hello everyone. I'm coding a program as my Senior Project, and I've stubled across a problem. The objective of my program is an inventroy program that has 3 JFrames - The main JFrame where the program begins, a second JFrame for if the user clicks the "View Inventory" ...