aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Any used Swing application framework? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Any used Swing application framework?" Watch "Any used Swing application framework?" New topic
Author

Any used Swing application framework?

Subrata Saha
Greenhorn

Joined: Jun 10, 2005
Posts: 19
Hi ,
Any used Swing application framework ??

I have the mars rover view application from SAF to understand how it works . But struggling to find

Can we have 2 view from the single application ??

Example: Suppose i have 2 view Login and Profile . so the application will launch the Login and then on correct password
it will switch to Profile screen and Login Screen is gone {dont know whether we can hide it or destroy the view}

Any help would be greatly appreciated

--Subrata Saha
Vivek Moyal
Ranch Hand

Joined: Nov 02, 2009
Posts: 57
If you are starting with the login screen than check the login like

suppose
Profile and Login are Jframe



i think its the solution
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10266
    
    8

No need to have the overhead of multiple JFrame instances.
Either use card layout or use the add/remove methods for the content panel (dont forget to invoke revalidate and repaint though)


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Subrata Saha
Greenhorn

Joined: Jun 10, 2005
Posts: 19
You guys are talking keeping SWing application Frame work in mind right ??

We do show(Login()) from launch api of the main application file of the project. so first time we will do show Login and then is password matches as shown by
Vivek .

Subrata Saha
Greenhorn

Joined: Jun 10, 2005
Posts: 19
Have any body worked on Swing application framework ?? which gives the MVC model for client side Java program
(u can have context variable accross the app etc,callback,lauch,background job etc....)
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19672
    
  18

How about a modal JDialog for logging in?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19672
    
  18

Subrata Saha wrote:Have any body worked on Swing application framework ??

Most of this sub forum is about Swing, so I would say yes.

This may be a good tutorial for you to start with.
Subrata Saha
Greenhorn

Joined: Jun 10, 2005
Posts: 19
Rob Prime wrote:
Subrata Saha wrote:Have any body worked on Swing application framework ??

Most of this sub forum is about Swing, so I would say yes.

This may be a good tutorial for you to start with.


I am talking about Swing Application Framework (JSR 296) not the simple swing
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19672
    
  18

Ah. My bad.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Any used Swing application framework?