SWT text entry - a trivial query [message #1386783] |
Fri, 20 June 2014 12:28 |
Timothy Murphy Messages: 1 Registered: June 2014 |
Junior Member |
|
|
I am running a very simple PHP program on my home server
to enter medical data (Blood pressure, etc) into a MySQL table.
I was thinking of setting up a Java client program as an alternative.
I've found the JDBC part straightforward,
but surprisingly I have found what I took to be the trivial part,
namely creating a form to enter the data,
surprisingly difficult.
I'm using Eclipse, so I assume that I should use SWT.
So I am looking for a sample SWT program
which simply shows about 10 labelled text fields ("Systolic", etc),
into which data can be entered,
with a button to press when the data is complete.
It would be nice, but not necessary,
if pressing TAB passed control to the next text field
(as PHP does automatically).
So if anyone can point me to a simple SWT program
which does that, and nothing more, I should be most grateful.
|
|
|
Re: SWT text entry - a trivial query [message #1386824 is a reply to message #1386783] |
Fri, 20 June 2014 22:33 |
|
On 06/20/2014 07:11 AM, Timothy Murphy wrote:
> I am running a very simple PHP program on my home server
> to enter medical data (Blood pressure, etc) into a MySQL table.
> I was thinking of setting up a Java client program as an alternative.
> I've found the JDBC part straightforward,
> but surprisingly I have found what I took to be the trivial part,
> namely creating a form to enter the data,
> surprisingly difficult.
>
> I'm using Eclipse, so I assume that I should use SWT.
> So I am looking for a sample SWT program
> which simply shows about 10 labelled text fields ("Systolic", etc),
> into which data can be entered,
> with a button to press when the data is complete.
> It would be nice, but not necessary,
> if pressing TAB passed control to the next text field
> (as PHP does automatically).
>
> So if anyone can point me to a simple SWT program
> which does that, and nothing more, I should be most grateful.
The Standard Widget Toolkit is a graphical toolkit for use with Java.
If all you're looking for is to write a simple Java client (not a web
application), SWT should work for you. However, like most GUI
frameworks, SWT has an initial, steep learning curve. I suggest you find
a tutorial to follow. That will get you started. How about this one?
http://www.vogella.com/tutorials/SWT/article.html
There are probably many others, Google is your friend.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08125 seconds