swing
scrollpane blocks buttons in BorderLayout?
I have a really weird problem with a JScrollPane and a BorderLayout. For short explaination: i have a JTable which is inside the JScrollPane and this is with a JPanel and the JTableHeader on a JTabbed[详细]
2023-04-11 20:54 分类:问答Events on a JPanel which has a Border Layout
When I add a MouseListener/FocusListener to a J开发者_开发知识库Panel which has a BorderLayout and JComponents in it, I can\'t catch mouse or focus events. Is there any way to catch a JPanel\'s mouse[详细]
2023-04-11 20:43 分类:问答How to Change JFrame Size dynamically
I have a simple drawing program, I set开发者_如何学JAVA my Jframe\'s size with the following code:[详细]
2023-04-11 20:30 分类:问答How to keep one thread to call multiple JForms?
Let\'s say I have one thread running (I\'m creating many instances of this thread), and inside that I instantiate a JForm. While being inside that JForm, I call another JForm. Think of it as a multipl[详细]
2023-04-11 19:51 分类:问答JComboBox how to compute for two integers from two JComboBox and have the result in a JTextfield when clicking the JButton
I have 2 JComboBox consisting of numbers combobox1= 1 to 5 and combobox2= 1 to 6. and when I click my JButton, I want the two chosen numbers to be added and shown on a Textfield.[详细]
2023-04-11 19:49 分类:问答Java Swing Reset Caret
I am building a small Swing application that contains - amongst other things - a JButton and a JTextArea. When the user clicks the button, a bunch of text gets auto-generated inside the text area.[详细]
2023-04-11 19:15 分类:问答How to make a swing component's bounds fixed
I have a JPanel to which I have added a few components (checkbox, combo etc.). I have noticed that, when the frame is maximized, the bounds of components also move or shift to the right. Then, on rest[详细]
2023-04-11 18:16 分类:问答Adding additional panels to a JFrame which lives in a EventDispath thread, from outside that?
I create a new frame in EventDispatch thread and want to add new Panels to that later on. But all i get is a blank frame, with 0 height. But panels added from inside the inner class are displayed. How[详细]
2023-04-11 18:09 分类:问答How to deploy a JFrame in multiple monitor configuration
I\'d like to build an app that has 2 windows. The first one should always be in the first monitor, and can\'t be maximized.[详细]
2023-04-11 16:55 分类:问答Issue with adding a JPanel and add a mouselistener to it
I´m making a simple application in which there are a menu-screen and a game-screen. In the menu-screen there are a go-button and if you click it with the mouse the menu-screen switches to the game-sc[详细]
2023-04-11 16:40 分类:问答