Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Any used Swing application framework?  RSS feed

 
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
 
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
 
Bartender
Posts: 11445
18
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....)
 
Sheriff
Posts: 21747
102
Chrome Eclipse IDE Java Spring Ubuntu VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about a modal JDialog for logging in?
 
Rob Spoor
Sheriff
Posts: 21747
102
Chrome Eclipse IDE Java Spring Ubuntu VI Editor 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
Posts: 21747
102
Chrome Eclipse IDE Java Spring Ubuntu VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah. My bad.
 
Yup, yup, yup. Tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!