Results 1 to 6 of 6
Thread: change contents of shell (SWT)
- 11-12-2009, 10:51 PM #1
Member
- Join Date
- Nov 2009
- Posts
- 2
- Rep Power
- 0
change contents of shell (SWT)
Hello,
I'm trying to write a simple application with a login.
My goal is to make a screen in which the user is prompted for a username and password, with an 'login' button that changes the screen to a screen with a progressbar.
What is the general way to program this?
Do I have to make a new shell and kill the old one, or should I make two composites and switch between them?
I can not find much info on this subject, please provide me with some help or a link to an explanation for this problem.Last edited by ubuntu7; 11-12-2009 at 10:54 PM.
- 11-13-2009, 11:04 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,370
- Blog Entries
- 1
- Rep Power
- 26
You are looking into desktop applications, not in web applications?
The following code is quite messy. Just go through it carefully. You can find the solution.
Koders Code Search: LoginWindow.java - Java
- 11-13-2009, 01:42 PM #3
Member
- Join Date
- Nov 2009
- Posts
- 2
- Rep Power
- 0
I am sorry for not being very clear.
I was looking for a desktop application indeed, using SWT.
When looking at the code you recommended, I get the impression the programmer didn't use SWT, but JFace, are SWT and JFACE compatible?
EDIT: sorry, I was not well informed, I will have a look at JFace, thanks for your helpLast edited by ubuntu7; 11-13-2009 at 02:11 PM.
- 11-13-2009, 03:52 PM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,370
- Blog Entries
- 1
- Rep Power
- 26
No worries.
That's why I send you that example. Doing this only using AWT not an easy task. It's possible but not easy. Just go through the example, read the complete explanation, then you can have a better idea. :)
- 08-09-2012, 05:24 AM #5
Member
- Join Date
- Aug 2012
- Posts
- 1
- Rep Power
- 0
Re: change contents of shell (SWT)
hi,
I taken a problem like you. And now i found the way to fix it's. You can using StackLayout to switch between Composites.
The following link will be help you to find the solution.
Use a StackLayout to switch between Composites : StackLayout*«*SWT*«*Java Tutorial
- 08-09-2012, 06:58 AM #6
Similar Threads
-
Need some help with a copy command in a shell
By Hekmat in forum New To JavaReplies: 5Last Post: 04-27-2009, 12:00 AM -
Bean Shell
By Bisweswar in forum Advanced JavaReplies: 2Last Post: 08-16-2008, 01:36 AM -
How to create a Dialog Shell
By Java Tip in forum SWT TipsReplies: 0Last Post: 07-02-2008, 08:52 PM -
Shell Sort in Java
By Java Tip in forum AlgorithmsReplies: 0Last Post: 04-15-2008, 08:44 PM
Bookmarks