Create a Swing or Layout form in Java

1

Very good. I am looking for a way to create forms that contain JLabel, JTextField, JButton, that is, to register the data of a person or search in a JTable.

I have been working so far with the NetBeans GUI but my program is getting very big and I am realizing that my program consumes a lot of memory and that in the long run is not good.

Now I'm doing the forms to code but placing the components exactly where you want is expensive and carries many lines of code for small results.

Do you know any other way that you can create a form more quickly and that does not load the memory as much as NetBeans does?

Thank you very much for everything and greetings.

    
asked by Arkhan6 19.10.2016 в 23:23
source

2 answers

1

I have created some small program with Swing , directly through code, because the Netbeans GUI generates a lot of code, difficult to decipher. The problem is usually the placement of elements, often complicated and that generates many lines, I think an inevitable problem.

It is also JavaFx to create graphical interfaces, more modern than Swing and in general with better control over the layout of the elements. You can also use XML and / or CSS styles to create the GUI, and thus separate this part of the logic. One day I tried a JavaFx GUI generator, which looks very good: Scene Builder

I hope you serve, greetings.

    
answered by 08.02.2017 в 14:40
0

I do not know if it serves you perfectly, although you should have been:

  • Search GUI Builders in java.
  • Look at GitHub projects that may be popular.
  • If none of this helps you , then you must adapt to NetBeans.
  • Even with the Eclipse, I think the important thing would be to review the code made of Eclipse and copy the essentials in NetBeans or vice versa.
  • I've found another, it's free and lets see the code preview, I hope it works:

    Go to link

        
    answered by 08.02.2017 в 14:18