Questions tagged [swing]

Swing is a GUI toolkit packaged with the standard Java SDK since version 1.2.

Filter by
Sorted by
Tagged with
7
votes
1answer
126 views

Refactoring code duplication so the same textArea is not used in 4 different classes

Looking for the best way to do this. Currently in 4 different classes I have: ...
4
votes
1answer
2k views

Execute multiple query from a text file

I am just wondering if this is a correct way to execute multiple query from a text file. ...
2
votes
2answers
14k views

Bouncing ball - for swing event handling tutorial

This is a sample program that I intend to post as part of a series of beginner level Java tutorials. Please provide any feedback on improvements that would make example more clear or illustrate/...
3
votes
2answers
27k views

Drawing simple shapes by mouse dragging

I want to make figures of a rectangle and a circle. How can I make the code more elegant? ...
93
votes
6answers
61k views

File Browser GUI

FileBro is a basic GUI based File Browser. FileBro Functionality Directory tree - shows the file system roots at start-up, but is otherwise built lazily as the user browses around the file system. ...
5
votes
2answers
170 views

jInternalFrames code

I'm new to this page I want to ask you to critique my code on jInternalFrame. Basically the problem is that there is no complete example on using this, so I wrote this "template" but I don't know if ...
11
votes
1answer
907 views

Approach to programmatically building hierarchical GUI components

At work I am developing an application using hand-coded Swing, and I've found that I have an easier time reading, writing, and maintaining hierarchical component creation using code blocks like: <...
15
votes
2answers
2k views

Guessing game - am I using the concept of objects in Java properly?

I'm new to Java and find it hard to grasp the concept of objects. I wrote a simple guessing game to practice the concept of OO programming but I am not sure if I am doing it correctly. The objective ...

1
5 6 7 8
9