1. In Java 1.6, why does adding a Jpanel to another JPanel using the default add() not display the added panel? stackoverflow.comI have a JFrame with a JPanel on it. I want to add another JPanel which is a preconfigured component onto the Jpanel inside my JFrame. If I do this:
|
2. Why does this Swing List not display its elements? stackoverflow.comI'm scratching my head over this one. Below is a running sample. I have 2 Swing Lists in a flow layout each with a simple data model. Depending ... |
3. Why does my new component not display in a null layout manager? stackoverflow.comThere is a panel in a |
4. Adjustable Panels In a Display using Java Swing stackoverflow.comI have an application that uses Swing. The display I am working on, uses a Box with a Horizontal Layout as the top container. In it, are ... |
5. Creating a JFrame to display a Checkerboard stackoverflow.comMy assignment is to detailed as follows: The goal is to put a checker board in a window on the screen. I am given two classes called PicturePanel and Pixel the class ... |
6. Getting java to display more than 1 .add() stackoverflow.comI've started learning basic Java and wanted to rewrite a Game Map Generator that I've once wrote in PHP. I've got part of it working fine (This is just the start), ... |
7. JFrame displaying incorrect contents stackoverflow.comI am writing a chess program, and I am at the point where I am dealing with promoting a pawn. When a pawn reaches the final rank, a new jframe is ... |
8. Display element outside the frame stackoverflow.comI have to realize this design with Java Swing (see screen shot). Is it possible? How can an element appear off the frame? |
9. Why does my canvas not display in side a gridbaglayout? coderanch.com |
10. null layout JPanel displays on JFrame but not regular JPanel coderanch.comBoy, don't I feel stupid! Thanks for the quick and helpful response Michael. I tried 'setSize' and 'setBounds' but not 'setPreferredSize' Can I bother you to tell me the difference between setSize and setPreferredSize and why one works and not the other in this situation? The api has the usual "sets the preferred size ..." Kev |
11. Identifying default/primary display to position GUI coderanch.comI'm on Ubuntu 10.04 64 bit on a notebook with a second display attached. My GUI starts on the secondary monitor (as do some other aps and system windows - Arghhhh) so I want to ensure that it always starts on the primary, notebook, monitor. I'm new to Java especially GUIs but was able to get this to work as desired ... |