1. Detecting Focus on (frame + components) in swing stackoverflow.comI have a small dialog frame that appears, and within this frame are a series of buttons and a textbox. I need the frame to be able to detect when the ... |
2. Fullscreen Swing frames not focusing correctly in Linux (Windows is fine) stackoverflow.comI've got an application which spawns several fullscreen-no-decoration frames (basically controlling all screen space). My problem, is some buttons on certain frames are designed to "switch screens", which basically means showing ... |
3. Requesting focus on a minimised Frame coderanch.comI have got three buttons in my applet, upon clicking the buttons it will open new frame. Now what I want is even for the second if the same button is clicked, instead of opening the new frame, I should show the already opened frame for that button to appear as the top level active frame on the screen. I used ... |
4. RequestFocus between two frames coderanch.comNote that focus is not necessarily the same concept as being at the front of your screen in your windowing system. That is, I think your panel can have focus even if it's not visible on your screen. (I think!) What does have the focus ? What version of jdk are you using ? (the focus subsystem changed loads in 1.4) ... |
5. Focusing frames.. coderanch.comDear Anas El-Abboud I would suggest you to make a JDialog rather than JFrame. Here is sample example for you. Hope this would help you out. import java.sql.*; import javax.swing.*; import java.awt.event.*; import java.util.*; import java.lang.*; import java.awt.*; public class test1 extends javax.swing.JDialog { /** Creates new form test1 */ public test1(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); } /** ... |
6. Focusing in Frames coderanch.comHi, I am working with sample application. I have one DesktopPane, from this i initialize Internal frames and some dialogs. When click first button, i get one internal frame. When i press second button i get another internal frame, but it(second internal frame) is not active (it means the first internal frame is still active). How to set the new (new ... |
7. Frame with Keybinders and focus coderanch.comHi everyone. I'm trying to use keybinding for my frame. I'm starting with press down button. However, the focus doesn't go to the next button. Is my program wrong? Can anyone advice me on where I went wrong? My program code is pasted below. //MainFrame import javax.swing.AbstractAction; import javax.swing.Action; import javax.swing.KeyStroke; import javax.swing.SwingUtilities; import javax.swing.JPanel; import javax.swing.JFrame; import java.awt.GridBagLayout; import javax.swing.JButton; ... |
8. For set focus on frame.. coderanch.comI have one frame in main window. I have one button for "edit user" . When I click on button "edit user" , then one new window open for edit user ... Now i want that anyone can not click on main frame f.. means user can only click on new window of "edit user" and when user close new window ... |
9. For set focus on frame.. coderanch.comI have one frame in main window. I have one button for "edit user" . When I click on button "edit user" , then one new window open for edit user ... Now i want that anyone can not click on main frame f.. means user can only click on new window of "edit user" and when user close new window ... |
10. Returning focus to a frame after hiding another frame java-forums.orgHere's some sample code so you can see the problem I'm running into. Java Code: import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; public class TestProgram { private JFrame mainFrame = new JFrame(); private JFrame secondFrame = new JFrame(); private JFrame thirdFrame = new JFrame(); private JButton openSecondButton = new JButton("Open"); private JButton openThirdButton = new JButton("Open"); private JButton closeButton = ... |