How to integrate a JFrame (Swing control) in JSP page in Netbeans IDE 6.5?
I want to integrate a JFrame (Swing control) in JSP page using Netbeans IDE 6.5. How can I do it? ...
I want to integrate a JFrame (Swing control) in JSP page using Netbeans IDE 6.5. How can I do it? ...
I am trying to construct a basic control that will display an undecorated JFrame right below it when a button is clicked. I am trying to mimic drop down type functionality, but with my own Frame instead of a panel. My component contains a class member of the JFrame derived control that I would like it to show. In certain situations, w...
Hello guys, Say If i have two classes, in each class is a different JFrame, e.g JFrame A and JFrame B ( in seperate classes). Now from the constructor of JFrame A I may push a button with an actionlistener attached, which will instantiate the other class, thus creating JFrame B. The problem is when JFrame B is created, both the JFrames ...
Hi, I have a single class like this one public class BlockSpawner implements Runnable{ public static long timeToSpawn; private GtrisJFrame frame; public BlockSpawner(GtrisJFrame frame) { this.frame = frame; timeToSpawn = 2000; } public void run() { while(true) { try { Thread.sleep(timeToSp...
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 load the main application jframe when user authentication is correct. the instance of the login jframe must be destroyed after the main application jframe has already loaded. ...
I'm just experimenting with JFrames and would like to know if my application window is fully visible or obscured by some other application window. The other application window can be a native app. If this is possible, can I retrieve the size and position of the area that is not visible? ...
Hello, I'm trying to dispose my JFrame by clicking a button, located on a JPanel that is placed on the JFrame that I want to close. I tried to make a static method on the JFrame class, but ofcourse my IDE told me that wasn't going to happen. Anyone thinking of a solution? Thanks! ...
Hello all, Is there a way to add an animated background to netbeans JFrame ? I'm using netbeans 6.7.1 IDE.. ...
Hi all, Is it possible to play a Flash object/file into a jframe < netbeans > / any java application ? If so , how ? ...
Please, help! How can I update my JFrame content(add new JPanel, add button, etc) after some action take place, like press button? Thanks! ...
I have used this statement for setting an icon for a frame but still it shows the "java" instead of my image,would you please help me? frame.setIconImage(Toolkit.getDefaultToolkit().getImage("tictactoe.gif")); ...
I created a tree but i'm unaware of setting color to it. JTree tree; JList list; JFrame frame; tree=new JTree("Tree"); frame.add(tree,BorderLayout.WEST); tree.addTreeSelectionListener(this); frame.add(teamMember,BorderLayout.NORTH); frame.add(list,BorderLayout.CENTER); Is possible to set color in JTree?...
I'm try to implement my program by using JFrame Form on Netbean. Then when i use my main frame to popup other frame and i close that frame, my main frame will close too. How can i avoid this case. Thank you in advance. ...
Let's say there is a button and if you will click that, a new frame will appear and so on... ...
Hello all, Is there a way to set the location of the output windows even before running.. My project has more than two forms , and i would like to display them in a non-overlapped fashion , and set their layout beforehand. ( I'm using netbeans..) ...
How can you track the movement of a JFrame itself? I'd like to register a listener that would be called back every single time JFrame.getLocation() is going to return a new value. EDIT Here's a code showing that the accepted answered is solving my problem: import javax.swing.*; public class SO { public static void main( String[] ...
Here I found this code: import java.awt.*; import javax.swing.*; public class FunWithPanels extends JFrame { public static void main(String[] args) { FunWithPanels frame = new FunWithPanels(); frame.doSomething(); } void doSomething() { Container c = getContentPane(); JPanel p1 = new JPan...
Suppose we have a JFrame named frame1 with a String attribute named credentials set inittially to null. I have a jButton named button1 attached to the frame and I want to change the frame1 String credentials attribute by pressing button1. I need some piece of advice regarding the ActionListener code especially. ...
Hi, I have a frame with 4 JPanels and 1 JScrollPane, the 4 panels are in border layout north, east, south, west and the scrollpane in the center. I have been trying to get the pack method for a frame fuctioning but when run you just get the title bar of the window. Any Ideas? Thank you in advance. JFrame conFrame; JPanel panel...
Hi all, I am just messing around trying to make a game right now, but I have had this problem before too. When I specify a specific window size (1024 x 768 for instance) the window produced is just a little larger than what I specified. Very annoying. Is there a reason for this? How do I correct it so the window created is actually t...