Skip to main content

Questions tagged [swing]

Swing is a user-interface toolkit in Java and is shipped with the standard Java SDK. It is contained within the package javax.swing.

swing
-1 votes
0 answers
40 views

Issue with my Music Equalizer java program not doing anything when I open a .mp3 file

Image of ProgramI'm working on a Java Swing application that includes a music equalizer. The application is supposed to allow users to select an MP3 file and visualize the audio levels in real-time. ...
Jenin Sutradhar's user avatar
0 votes
0 answers
54 views

Java Swing Custom zoom Panel

I am experiencing an issue with the zoom panel action in Java Swing. I have customized a class ZoomableJPanel to zoom innerPanel, but the ZoomableJPanel does not correctly handle zooming, causing the ...
Phúc Nguyễn's user avatar
0 votes
0 answers
35 views

How do you make JScrollPane fill multiple rows in GridBagLayout?

I have a JScrollPane that has a JTextArea in it. I also have a JPanel panel = new JPanel(new GridBagLayout) and a GridBagConstraints constraints = new GridBagConstraints() and this GridBagLayout is a ...
ViperNB's user avatar
1 vote
2 answers
66 views

Java JSCrollPane won't resize below minimum size of JButton with text

I'm trying put a JPanel (GridLayout 0, 1) with JButtons it, within the ViewPort of a JScrollPane. This is easy enough to do, but it doesn't behave "properly" when resizing the parent JFrame....
George Minkov's user avatar
0 votes
2 answers
88 views

How can I install java Swing in 2024 (for eclipse)?

In the past I have made graphical interfaces with Java Swing. On my new computer I have tried to install java Swing but I have not found how to do it. I have searched in eclipse marketplace but it ...
Carlos's user avatar
  • 9
0 votes
2 answers
44 views

How to display a popup menu during a drop operation

I have an application where I allow strings to be dragged and dropped on to one of the components. This works fine. Now I want to be able to add customization options to this operation. My first ...
opeongo's user avatar
  • 434
1 vote
1 answer
71 views

How can I do a progressive bar with JProgressBar from Swing on Java?

I'm a beginner on parallel computing. I've been working on Java in Apache Netbeans. My recent work was about semaphores, using the Semaphore and Thread Java classes, in that sense, I had to make a ...
ruper's user avatar
  • 13
1 vote
0 answers
59 views

Can I somehow tell apart user-triggered clicks and programmatic ones?

When a dialog window is first opened, I need to programmatically select an option (a JRadioButton) and do X When the user selects an option, I need to do Y X is a subset of Y In both cases, the radios ...
demavi's user avatar
  • 197
-1 votes
0 answers
40 views

Transparent JToolTip background outside frame in Linux

I'm working on a Java swing application (I'm using JDK 22) where I customize basically every GUI component. The problem I'm facing is that I've made a custom tooltip UI class where I paint it as a ...
akmsw's user avatar
  • 121
-1 votes
0 answers
102 views

Intercept OK dialog disposals

I am about to write custom interceptors for our JDialog extension that intercept "ok" dialog closures and could veto them. It's going to be a functional interface returning boolean But what ...
demavi's user avatar
  • 197
0 votes
1 answer
34 views

My components in two different panels are too small and don't fit to the frames size, how can I fix this?

I made a JFrame (size: 500 , 600) that uses GridBagLayout to place two JPanels (one using GridLayout and the other using GridBagLayout) on top of each other; however, when I run my JFrame the ...
user25673196's user avatar
0 votes
1 answer
70 views

Adaptable size of a CardLayout-managed panel

While using CardLayout, I encountered a small problem with its size If I don't set a preferred size explicitly (or set it to null), CardLayout seems to set preferred size of its managed container to ...
demavi's user avatar
  • 197
1 vote
0 answers
28 views

Make one column weigh double as much as another column inside GridLayoutManager on the IntelliJ GUI designer

Is it possible to make it so that two columns which both have the "Want grow" property in the GridLayoutManager take up different proportions? As in like, instead of them both taking equally ...
MaelTheMeal's user avatar
-1 votes
0 answers
72 views

Swing's ItemEvent: difference between getItem() and getItemSelectable()

In the context of java.awt.event.ItemEvent, what is the difference between getItem() Returns the item affected by the event. and getItemSelectable()? Returns the originator of the event. Here's a ...
demavi's user avatar
  • 197
1 vote
1 answer
44 views

Issues with Panels not displaying in basic Swing application

I wanted to add a panel to this basic swing application however it is affecting the program from displaying properly. Could I get help as to why? package welcome.netbeans; import java.awt....
Sofie Chernyak's user avatar

15 30 50 per page