Questions tagged as 'swing'

1
answer

Is there any way to add more than one mask to a JFormattedTextField?

I have JFormattedTextField for a 'price' attribute. In it I say that its format is "R $ #####, ##". However, since I still do not know how to add events (I am learning) I would like to know if a new mask is needed (and if so, for examp...
asked by 15.06.2015 / 02:49
2
answers

How to display received variables in a JFrame?

I am working with socket server, it receives information from an Android application, there are three information: table, request and quantity. However, I can not display this information in JFrame , I have no idea how to do this, I trie...
asked by 30.04.2015 / 17:05
1
answer

Trigger event when clicking day in JCalendar?

How do I put an event on each day of JCalendar? My intention is to click on a day and create a sort of reminder that is related to the day, in a way that when the user clicks again on the day he sees the reminder, but I have no idea how to make...
asked by 01.12.2015 / 20:37
1
answer

Syntax Highlighting with / in the framework Swing

How to do a syntax highlighting , like what the IDEs use have, but in the / with Swing framework, with Java. I intend to use syntax highlighting in several different keywords. How can I change the color of words according to their word and...
asked by 21.08.2014 / 03:44
2
answers

Passing different object types to a TableModel

I'm starting to mess with JTable but I have a question. I can see this post here in another one forum and my doubt is. In case it passes to the model of the table a list of type book: private List<Livro> valores; public Titul...
asked by 22.07.2014 / 05:07
1
answer

Look and Feel is not updated on all subcomponents

I'm facing a problem with the look and feel that I found a bit strange, when I run the project through IDE all components are rendered according to the skin I selected, but when I generate the JAR, some components are not rendered with the theme...
asked by 13.08.2014 / 14:24
1
answer

jFrame frozen / hung when opened in a jTable

The idea is to click on the line of the table that is a jFrame1 and open another jFrame2 with the search of the information of the person based on RE, but when I click on it the code until it works but opens the frozen and locked window. The c...
asked by 30.01.2015 / 13:58
1
answer

Layout management problems with MigLayout

I'm having trouble managing the layout of a JFrame that is a test. How are you: HowIwouldlikeittobe: import java.awt.Color; import java.awt.GridLayout; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; i...
asked by 12.05.2014 / 20:22
1
answer

Open several windows of the same application without accumulating icons in the taskbar

I would like to know how I could create java frames, without opening so many windows in the windows taskbar. For example when I go to the menu and click on customer registration, address book, address type register, 3 windows are opened, it i...
asked by 26.07.2016 / 12:57
2
answers

How to make a decision structure to close a window?

In the code below, I want you to choose% while the window closes, and when choosing sim the window remains open. private void formWindowClosing(java.awt.event.WindowEvent evt) { // TODO add your ha...
asked by 29.05.2014 / 20:46