i want to add Jdialog before frameview...my frameview consist of my main page of application. i just want to add Jdialog which get password from user and then enter in the Main frame. can any one tell me how can i achieve this in java swing??
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
by reading
1) How to use Top-Level Containers
2) How to Make Dialogs with methods
setModal
ModalityTypes
toFront
That will show a dialog in front of your main panel and the user won't be able to use it until they login because its modal, and your LoginPanel can force the user to login by not offering any other option but Login, Signup, etc.
You could use following constructors to make a JDialog parent-less
Quick code sample :