Questions tagged as 'swing'

1
answer

Are there other GUI libraries besides awt, swing, and javafx? [duplicate]

I wanted details and what these libraries are for to help me develop my video-game software.     
asked by 07.10.2015 / 22:22
1
answer

Terminal emulator in Java Swing?

Hello! Everyone who has worked with Java at least once should have already seen codes intended for use in the console, such as the println() method, located in System.out . I wonder if there is any terminal emulator for Java Swin...
asked by 30.06.2015 / 18:33
0
answers

(Business rule) - Update balance

I'm developing a business rule in which the user typing the number and branch of the bank account, it has two options: 1- Credit: The user will type through the JTextField the char 'c' equivalent to credit and this will add to your bala...
asked by 11.05.2015 / 23:01
1
answer

SwingDialog Fatal Error

I'm studying Swing with the Java Book Developer's Guide, and this code is not valid. import javax.swing.*; @SuppressWarnings("serial") public class Main extends JFrame{ public Main() { super(); //ajusta o titulo setBounds(...
asked by 01.11.2014 / 20:43
0
answers

What is the best way to show external QuickSort simulation

I have to do an external quickSort simulator , showing for example the step by step of it. Displaying changes in variables lower limit, upper limit, main vector, area vector (would be the available memory space to sort the file), upper wri...
asked by 20.11.2014 / 15:11
0
answers

How to save the selected row of a JTable in DB?

I have a JTable that populates the database, where I can select multiple rows at the same time with the Boolean field that was added. I need to, when I click the "burn" button of my form , the lines that were selected in JTable...
asked by 22.12.2014 / 13:21
1
answer

How do I send data from a JTable to my DB?

I have a filled JTable and need to store its data in a table in my database. How do I do that? I only know the reverse path (fill a table from the DB) I'm using MySQL     
asked by 21.12.2014 / 19:37
0
answers

Print selected nodes from a JTree

I have this JTree: IhavethiscodethatreturnsallnodesofJTree:publicvoidprint(){recurse((TreeNode)jTree2.getModel().getRoot());}publicvoidrecurse(TreeNodetheNode){System.out.println("1-- " + theNode); for (Enumeration theChildren = theNo...
asked by 12.12.2014 / 13:31
0
answers

Access to checkbox of each node of a JTree

How can I access the checkbox for each node of a JTree ? TreePath[] checkedPaths = checkTreeManager.getSelectionModel().getSelectionPaths(); The preceding code returns me all the selected paths. When I get back to my JTree afte...
asked by 17.12.2014 / 13:29
1
answer

How to check if fields are empty before adding in arraylist? [duplicate]

I have a question: how could I check if the fields in my JTextFields are empty before adding in arraylist ?, how would validation be in this part of code? Endereco enderecoPJ=new Endereco(); PessoaJuridica pes...
asked by 20.09.2017 / 02:18