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
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
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
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
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
I found some code online, I edited it a bit. I want to hide title bar of a JInternalFrame. JInternalFrame开发者_运维问答 frame = new JInternalFrame();
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
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
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
I have a Java application, and in order to find the size of the screen to use, I do the following, for example: