I am learning to put GUI in Java, now what I want to ask is, should I learn to put the GUI code by myself or should I go for drag and drop method? Which one is preferred and good for me?
-
1Well that depends, but if you're just learning why not use the UI designer and look at the code it generates for you and how it works.xander– xander2017-08-18 10:31:46 +00:00Commented Aug 18, 2017 at 10:31
-
1learn to put the GUI codeJohn Joe– John Joe2017-08-18 10:32:50 +00:00Commented Aug 18, 2017 at 10:32
-
1Just drag and drop and do the custom in the code that is the best way. For example if you drag and drop list view it will not a proper one you have to set over scroll and other things manuallySAVVY– SAVVY2017-08-18 10:35:06 +00:00Commented Aug 18, 2017 at 10:35
-
1Im not used to Java GUI. But I use drag and drop in .NET to generate standard code that I alter to my own likings.Mark Baijens– Mark Baijens2017-08-18 10:35:44 +00:00Commented Aug 18, 2017 at 10:35
-
1@Badr Once you have found an answer which works for you, please click the tick next to that answer to accept it. This helps other people with your problem know which solution worked for you.Adi219– Adi2192017-08-18 10:43:49 +00:00Commented Aug 18, 2017 at 10:43
|
Show 2 more comments
1 Answer
As a beginner, it is recommended to experiment with the GUI by dragging and dropping and inspect the code that is produced.
As an expert, it a much more common practice to code the GUI as you can control many finer details using code instead of manual dragging and dropping.
1 Comment
Badr
Got it, Thank you .