jframe
JPanel repaint issue
I have a JFrame which contains 2 JPanel subclass and 2 JLabel in BorderLayout. One of the JPanel contains JButtons and the other is used for displaying graphics. The JLabels are in north and south, th[详细]
2023-03-31 17:14 分类:问答Java Swing pack() on a Window un-maximizes it, how to avoid that?
I\'ve a window and since I dinamically change it\'s children (sometimes I swap JPanels), I found no other solution than calling pack() on the window to get the new element displayed. Otherwise it will[详细]
2023-03-31 07:00 分类:问答Java View to Controller Observer
I need help. I am struggling to get my Observers worki开发者_运维知识库ng in java. Can someone explain to me using MODEL-VIEW-CONTROLLER Architecture how to create and observer from View To Controller[详细]
2023-03-31 04:48 分类:问答Java MVC & Composite Design Pattern With Internal Frames
Still wondering the best way to do Model-View-Controller Software Architecture, Do I pass the Controller into the View, or do I use the Observer Design Pattern and let the Controller Observe any chang[详细]
2023-03-31 02:16 分类:问答JFrame Default size on ubuntu
I use ubuntu 10.04, but have discovered this on other ubuntu distributions as well. 开发者_StackOverflow中文版When I start the first JFrame of an application, it won\'t start in its default size (spe[详细]
2023-03-31 02:02 分类:问答hiding title bar of JInternalFrame? -java
I found some code online, I edited it a bit. I want to hide title bar of a JInternalFrame. JInternalFrame开发者_运维问答 frame = new JInternalFrame();[详细]
2023-03-31 01:07 分类:问答How can I reuse my JFrame to show several GUIs one after the other, instead of creating a new JFrame for each?
I have developed my Java code in Netbeans, and now I want to develop the GUI for my application. The application communicates with a server, so it\'s going to have a login frame for sure. After that[详细]
2023-03-30 23:20 分类:问答Displaying image in a JFrame
I have a JFrame and I want to load a image to it when I click the load image button. Once I click next button I want to change the image. Loading image to a variable is no problem. I load it to Image[详细]
2023-03-30 22:19 分类:问答JFrame layout for fixed position
Which layout is suitable for p开发者_运维技巧ositioning components on a JFrame and making them stay where they have been placed? I don\'t want controls to move around on resizing.I suggest that you do[详细]
2023-03-30 18:13 分类:问答Java - Screen Size on a Mac
I have a Java application, and in order to find the size of the screen to use, I do the following, for example:[详细]
2023-03-29 01:01 分类:问答