Skip to content
Advertisement

Tag: user-interface

Tab key navigation in JavaFX TextArea

How do I make hitting the Tab Key in TextArea navigates to the next control ? I could add a listener to cath de key pressed event, but how do I make te TextArea control to lose it focus (without knowing the next field in the chain to be focused) ? Answer This code traverse focus if pressing TAB and

What GUI libraries are the JetBrains using?

Background I am somewhat new to Java and am enjoying using IntelliJ IDE developed by the JetBrains team. I have downloaded the source for the Community Edition, and I am trying to work out what GUI libraries they are using to get the look-and-feel. Question What libraries (if any) are they using to get the non-native tabs, toolbars and breadcrumb

Refresh elements of GUI in java

I’m new to GUIs in java. For example, I need to update just 1 element (e.g., JLabel). In Tkinter I would use something like root.update() or root.update_idletasks(). I wonder if a similar simple function exists in for applications made with swing. I’ve tried gui_element.SetVisible(false) and gui_element.SetVisible(true) and similar stuff, but not very successfully. I suspect something with javax.swing.Timer should work,

Is Java’s Swing really a “memory hog”?

I frequently hear that Java’s Swing toolkit is considered a “memory hog” (such as this answer). Is this… A due to Swing’s architecture; B inherent in Java’s memory management; or C an unfounded claim that stems from a lack of understanding how memory allocation works (e.g. just because the Task Manager says an application has allocated x MB, it does

Why does my icon handling code throw a NullPointerException?

I have added an image for my button,but when I run that frame this exception will be thrown .why?please help me. line 138: line91: I use this poor checking (Peter Lang recommended)which is:System.out.println(getClass().getResource(“/Images/yahoo_1.gif”)); and it returns null,why? please help me. Answer This means, that getClass().getResource(“/Images/yahoo_1.gif”) returns null. JavaDoc states that this happens if the resource could not be found or

Advertisement