Questions tagged as 'swing'

1
answer

How to put Outlines in the text

I would like to know how to put black outlines in the text JLabel label_name = new JLabel(); label_name.setPreferredSize(new Dimension(100,20)); label_name.setForeground(Color.white); label_name.setText("Este é um exemplo");...
asked by 16.07.2014 / 03:52
2
answers

Close all open jframes when opening a new one

How can I close all open jframes in my project when I execute an action that opens another jframe? I have a login system and when needed, I invoke another frame to set a password. After setting the password I make the dispose () to this jfram...
asked by 09.12.2014 / 16:09
0
answers

JFormattedTextField deleting inserted data [closed]

I have 4 TextFields to put DDD, numbers before hifen, numbers after hifen and zip. private JTextField ddd=null; private JTextField antesh=null; private JTextField depoish=null; And a method formatarTextboxes(); try{ t...
asked by 02.09.2017 / 18:14
1
answer

Modify the range of a JSlider

In my project I have a JSlider, that its minimum value is 0 and its maximum value is 10. I would like to modify it so that its interval is two in two numbers, so only being possible to select / display values pairs. At the moment, I'm using the...
asked by 15.08.2017 / 02:48
2
answers

How to disable a button in java without removing its color

I have a button that when clicking it changes color, but if you click it again nothing should happen. But I still can not block this action. I tried this code: private void Button1_1ActionPerformed(java.awt.event.ActionEvent evt) {...
asked by 22.02.2017 / 14:18
0
answers

Loading JTable and processor gets high process [closed]

I am making a system and it has a JTable and I need to load my data, I was analyzing through the task manager that when this function load the table is called, it increases the processor load a lot. What can it be? I already tested it and...
asked by 11.01.2017 / 23:25
0
answers

Java Swing program does not open window outside of NetBeans, but remains open in processes

My problem is that I did a Java program in NetBeans and it works normally, but the problem is that when I open the .jar outside the IDE, the window is not opened. Here is a simple code with the same problem: package bbb; import javax.swing....
asked by 18.02.2017 / 02:22
0
answers

Which ideal start, Swing or JavaFX? [closed]

I'm starting now little with the graphical part using Java ... Reading some articles on the internet, I saw that Swing is old and has an older graphic and everything. But JavaFX is more beautiful, than to work with CSS3, pra for beautiful eff...
asked by 16.01.2017 / 02:02
1
answer

Help to fill jTable

I'm filling a jtable with the birthdays that are registered in a database. public void jTablePop() { javax.swing.table.DefaultTableModel dtm2 = (javax.swing.table.DefaultTableModel)jTable1.getModel(); dtm2.setNumRows(0); //IS...
asked by 14.10.2015 / 18:03
1
answer

View SplashScreen with progress while JFrame loads

I have an application done in
asked by 01.03.2016 / 16:07