0

GUI building in JAVA ....adding components on click

swing library has been added (working in Netbeans) JButton btn=new JButton(b); JTextFeild txt=new JTextFeild("textfeild"); txt.setbounds(10,50,100,20); btn.addActionListener(new ActionListener(ActionPerformed{btn.add(txt)})); I can't share whole code because it's too lengthy and also I don't know how to import codes thanks

22nd Aug 2018, 2:57 PM
Muhammad Zubair
Muhammad Zubair - avatar
1 ответ
0
I think most people have moved away from swing, take a look at JavaFX
22nd Aug 2018, 4:13 PM
John
John - avatar