[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-swt-dev] New to Java and SWT
|
if you want to open a new window, just create a new instance of the Shell
class as you did before
At 13:09 31/10/2003 -0500, you wrote:
Hi,
I'm taking a java class and one of the things i
need to do for a final project is create a program that has 3 or 4
queries over a database file. For extra Credit we can turn this
into a GUI. We haven't gone over GUI at all and when we do it will
be SWING. However, i would like to do this in SWT. I've been
looking at some samples, and have created my first screen. This
screen allows the user to enter a Id and Password to connect to the
database. Conceptually this is what i would like to do
Display Signon Screen. Connect to
database when button is pressed.
Then display a second screen that has the
available options. ie list team info by owner id, etc,
etc. As i press a button for each query on the
same panel, i would like to display instructions and the corresponding
text fields etc for enter my search criteria..
After entering search criteria, i would like to
display a new window showing results.
Now the problem is that i don't have a clue how
to create a new window. When i try to do this, i get a 'Thread
exception'. I think it has to do with needing to use syncExec and
runnable, but i can't really figure out how to take what i have currently
and implement this.
Can someone provide me a simple example of a 2
window application.
here is what i have currently. keep in
mind it doesn't really do anything yet, i'm just trying to figure out the
GUI part.
Thanks
Mike
/*
* Dagi3d v3
http://dagi3d.net
*/