jframe
JFrame invisible border issue
I´ve a little issue I would like to get solved. On my JFrame there seems to be like an invisible border around the frame. So when something should be invisible or stop at ykoord = 0 e.g., it becomes[详细]
2023-04-07 21:40 分类:问答Can't figure out how to overlap images in java
So I decided to pick up programming as a hobby, and am now working on creating a slot machine with help from tutorials. However, I ran into problems with overlapping images. I used a photo editor to c[详细]
2023-04-07 04:43 分类:问答How to get JFrame as function argument in java?
I wanted to make a different function to make menubar for java application. In menubar function frame.pack() in action listeners and frame.setJMenuBar statements are required.[详细]
2023-04-07 03:34 分类:问答Encountering errors when replacing JPanels
I\'m in the process of creating a menu with several panels that are removed/added as the user navigates by clicking on buttons.[详细]
2023-04-07 00:15 分类:问答Dynamically added JPanels are not showing up in Swing
Here\'s my code. I have no problem when showing up the previously designed frames (with panels added). I get this issue when adding panels to an empty JFrame dynamically.[详细]
2023-04-06 20:09 分类:问答NetBeans: How to select JLabel that resides inside JFrame?
I developed a small desktop application in Java. At some position in my UI I drag and drop a JLabel from Palette to JFrame. Later-on i remove its text by right click -> Edit Text. I did this because i[详细]
2023-04-06 20:01 分类:问答Graphics contents get erased on maximized
I am developing a GUI painting application.But the problem is that the frame contents get erased on minimizing and then maximizing.I know what the problem is, it\'s that paint is called again after ma[详细]
2023-04-06 16:43 分类:问答Read JFrame size from JPanel
I have a Layout class which extends JFrame. Later I am adding RoadPanel which extends JPanel. At run-time is it possible to know Layout frame size in RoadPanel?[详细]
2023-04-06 07:16 分类:问答Java GUI - JPanels, JFrames, JButtons
I\'m trying to open a window that has both an image and buttons in it. But I can\'t seem to figure out how to add the button. The image displays great and the menu works fine, but no matter where I ad[详细]
2023-04-06 05:46 分类:问答How to hide a JFrame in system tray of taskbar
I have created a JFrame and want to hide it in the taskbar in windows, but, it should not be visible in the bottom right corner, but hidden in the tray menu items.[详细]
2023-04-05 21:17 分类:问答