Questions tagged as 'swing'

2
answers

Avoid opening more than one of the same JInternalFrame [duplicate]

I'm developing an application that uses JInternalFrame within a JDesktop . When I press the button, this JInternalFrame is instantiated and the window is opened, however, if I press the button again, it will open several di...
asked by 02.02.2016 / 17:16
1
answer

My labels are abbreviated when I run program

When I run my program, the text inside my labels is shortened, even if I try to space it, I have to leave an absurdly large space inside the label, which has a lot of work to do because of the size of the form, I was wondering if you have any se...
asked by 21.10.2015 / 01:56
0
answers

I can not update jframe from a java Thread

I have a code that reads the serial port through a thread, but when I try to update a label I can not. I implemented a SerialRead Runnable class, and in that class I execute a loop to read the serial port. So far so good, I can read the serial p...
asked by 30.11.2015 / 21:43
0
answers

String conversion to BigDecimal is giving error and method does not save [closed]

I'm making a video system and on my category screen a field called value to save the value of my category. I was able to do the conversion from String to BigDecimal using the following methods: ToString, DecimalFormat, StringBigInteger, valueof,...
asked by 21.09.2015 / 15:27
0
answers

Give more than one event to a window [closed]

So I created a window in java, but I need to assign a different event to it depending on the time it is called. And the problem is, I can not do that. Is there a way to do it? Window:     
asked by 07.09.2015 / 19:36
1
answer

How to clean JTable cell when starting typing?

How can I clear the cell in JTable when starting to type in a like cell in excel. For example, I position the cursor in a cell and when I start typing the cell goes into editing mode, at this moment I need a listener that when entering...
asked by 19.10.2015 / 16:47
1
answer

fireTableDataChanged in AbstractTreeTableModel Swingx package

I am in doubt about how to do a reload on the objects of a JXTreeTable using a Model > AbstractTreeTableModel . AbstractTableModel of JTable normal has fireTableDataChanged , but how do I do this in...
asked by 14.09.2015 / 21:34
0
answers

How do I make a JDialog invisible when I have dispose in a specific frame?

A button in my application gives dispose to the current frame and creates a different one. But the JDialog that were open when I clicked the button still exist, which should not happen.     
asked by 05.09.2015 / 22:25
0
answers

Screen size JPanel [closed]

I had created a JPanel with a screen of a good size. Then I had to change my monitor at a lower resolution. Now the size of JPanel's screen is small, making part of the look I put does not appear. I've already tried lowering the resolution, t...
asked by 21.06.2015 / 20:10
1
answer

How to update JTable used data from a database? [closed]

I created in NetBeans a system of customer registration and movie registration (simulating a video store). I have 3 Java files: Rental (main), Client and Movie. In Client and Movie, I connect to the database, enter the values, everything cute. T...
asked by 13.05.2015 / 16:58