Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Any used Swing application framework?

 
Subrata Saha
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11179
15
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
Subrata Saha
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20667
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about a modal JDialog for logging in?
 
Rob Spoor
Sheriff
Pie
Posts: 20667
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20667
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah. My bad.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic