jpanel
JLabels in JPanels sizing question
I am currently writing a Java application to display a list of ideas from a database. Each Idea has a title and a number which i would like to display in a column along with similar ideas. As you can[详细]
2023-03-14 13:09 分类:问答How to get x and y position of JPane in JPanel
I have a JEditorPane in a JPanel. I want to know how far from the left and the right the JEditorPane is from the edge of the JPanel (or the frame as they are the same).[详细]
2023-03-13 23:21 分类:问答Java, BorderLayout.CENTER, getting the width and height of the JPanel
I am using Swing and AWT (for the listeners) to make a small program. I have a problem concerning getting the size of my JPanel (the class named Chess).[详细]
2023-03-13 19:58 分类:问答How to render basic HTML markup inside a JPanel in Java Swing?
I want to do something really simple like this: JPanel htmlPanel = new HtmlPanel(\"<html><body><h1>hello world</h1></body></html>\");[详细]
2023-03-13 16:51 分类:问答Java Swing refresh JPanel
I have a Applet class (extends JApplet). Inside the class I am instantiating a JPanel and initializing a JButton whit setEnabled(true). After the user clicks this button in the Panel and does some pro[详细]
2023-03-13 07:09 分类:问答Java Problem with super.paintComponents(g), it makes a print screen
I\'m trying to make a paint in java, with classes and hierarchy. But my paint area isn\'t getting the background color (defined as white) and when i click it makes a print screen in the jpanel area of[详细]
2023-03-12 11:23 分类:问答Images stacking on top of eachother despite flowlayout?
First I\'ll admit I\'m very new at coding GUIs with Swing so please keep that in mind. I have made a GUI consisting of a JPanel on top that is supposed to display images, and one of the bottom contai[详细]
2023-03-12 00:32 分类:问答Convert JPanel into png or other image file
I have a JPanel that consists of a lot of JLabels. So there is no paint at all, just JLabels with different background colors and such. The JPanel is visible.[详细]
2023-03-11 18:47 分类:问答SWING JPanel / JXPanel Animation
In SWING is there a good/eas开发者_StackOverflowy way of animating a the show and hide of a JPanel?I would like animate the expand of a JPanel height.I figured I could use a timer and increment the he[详细]
2023-03-11 18:39 分类:问答Rotating a png image representing a unit in a game
I am using png\'s in my tower defense game. How would I rotate a picture so it follows the movement of another picture (lik开发者_如何学Ce a turret always pointing at a target)?Look into the AffineTra[详细]
2023-03-11 10:36 分类:问答