Hello, I am interested in knowing your opinion in Java GUI development using AWT and Swing. Each have its own pros and cons. I am wondering which one is most preferable by java developer. AWT or Swing or Both? Please state your reason. Thank you.

Isn't most of swing built on top of AWT, so essentially if you use swing you're using both.

Sorry for the mistakes and misunderstanding. What I meant is the GUI components such as the button, menu, label etc.. Which one do you prefer to/usually use when developing any applications/applets?

Use Swing components most of the time
OR
Use AWT components most of the time
OR
Both(Sometimes use AWT components and sometimes use Swing components)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.