jpanel
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 分类:问答remove borders inside JScrollPane
I\'m trying to put multiple JLists in a JPanel and the JPanel in a JScrollPane. The problem is that when I add the JScrollPane to the equation there is a space between the JList and outer border, how[详细]
2023-04-11 05:09 分类:问答Setting up a JPanel in a JFrame?
So, I\'ve been working to redo my code so that the painting is all done in a JPanel instead of a JFrame so I can do some very much needed image buffering.[详细]
2023-04-10 14:31 分类:问答Substance Look and Feel is making my colors brighter?
I\'m trying to call setBackground on a JPanel, so that it matches the color of my JFrame, but the color is some how brighter than the one I type in.[详细]
2023-04-10 05:44 分类:问答Java Buffered Image, ontop of JPanel Issue
So here is my problem, my professor is having us make a paint program in which we pick an item and draw on it. However, the issue is that he wants us to draw on a buffered image and then have that on[详细]
2023-04-10 04:28 分类:问答Java JPanel Paint Scaling
Following code 开发者_如何学Pythonwork for visualizing a molecule on a JPanel except it does not rescale when I change the size of JPanel at runtime. The Chemistry Development Kit is used for generati[详细]
2023-04-10 04:18 分类:问答Java - my paint program needs a menu bar with a submenu with an image - how to do?
SO I have this program that is kind of like paint, it lets you draw shapes and lines, but my assignment is to add a menu bar with a sub menu Fil开发者_开发问答e-> About, when Click on the about sectio[详细]
2023-04-09 02:23 分类:问答Java: How can I disable clicking on a panel while showing dialog?
I want to disable clicking on the background panel or frame while showing a dialogue. And I want the dialogue t开发者_如何学Co appear on top of this panel or frame constantly until it is closed.[详细]
2023-04-09 00:44 分类:问答adding multiple components to Jframe.getcontentpane()
I have a class that extends JPanel and draws a triangle. I called it from other class to create three triangles but when third triangle is drawn the previous two disappear开发者_Go百科ed. How can I ad[详细]
2023-04-08 07:39 分类:问答JFileChooser inside JPanel; how to get users choice
The default JFileChooser works, but what I don\'t like is the fact that it pops up. I\'d rather have one GUI in which all the action takes place.[详细]
2023-04-08 01:45 分类:问答