Results 1 to 6 of 6
  1. #1
    ubuntu7 is offline Member
    Join Date
    Nov 2009
    Posts
    2
    Rep Power
    0

    Default 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.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    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

  3. #3
    ubuntu7 is offline Member
    Join Date
    Nov 2009
    Posts
    2
    Rep Power
    0

    Default

    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 help
    Last edited by ubuntu7; 11-13-2009 at 02:11 PM.

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    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. :)

  5. #5
    Join Date
    Aug 2012
    Posts
    1
    Rep Power
    0

    Default 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

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default Re: change contents of shell (SWT)

    Quote Originally Posted by nguyenthanh276 View Post
    The following link will be help you to find the solution.
    Oh yeah. Nearly three years later, they're still waiting.

    db

    THREAD CLOSED
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Need some help with a copy command in a shell
    By Hekmat in forum New To Java
    Replies: 5
    Last Post: 04-27-2009, 12:00 AM
  2. Bean Shell
    By Bisweswar in forum Advanced Java
    Replies: 2
    Last Post: 08-16-2008, 01:36 AM
  3. How to create a Dialog Shell
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-02-2008, 08:52 PM
  4. Shell Sort in Java
    By Java Tip in forum Algorithms
    Replies: 0
    Last Post: 04-15-2008, 08:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •