P
Paulie
Hi all,
I'm trying to write a simple cryptography app in Java.
I have a frame called frCryptApp (essentially the welcome
screen) and what I want to do is to offer the user the
possibility of choosing their encryption method
(Caesar cipher, Vigenere &c.) and then have the programme
bring up another frame configured for the parameters
involved with the given cipher.
I want to do this dynamically, i.e. on choosing say the
Caesar cipher, the app will create a new frame frCaesar
and destroy the frCryptApp frame.
Then on closing down the frCaesar frame, it is
destroyed and a new frCryptApp is created to
offer the user further choices.
I have tried various permutations of this.dispose()
and importing frCryptApp.java (using the import
statement), but I just can't seem to get it. frCryptApp
appears to be out of scope for frCaesar.
Could some kind soul please just show me what to
do in this case - i want the code to work if the user
clicks an Exit button on frCaesar or if they shut the
window using the top right x button or any other
way.
TIA and rgs.
Paul...
p.s. I'm using Oracle JDeveloper 11g on Linux
I'm trying to write a simple cryptography app in Java.
I have a frame called frCryptApp (essentially the welcome
screen) and what I want to do is to offer the user the
possibility of choosing their encryption method
(Caesar cipher, Vigenere &c.) and then have the programme
bring up another frame configured for the parameters
involved with the given cipher.
I want to do this dynamically, i.e. on choosing say the
Caesar cipher, the app will create a new frame frCaesar
and destroy the frCryptApp frame.
Then on closing down the frCaesar frame, it is
destroyed and a new frCryptApp is created to
offer the user further choices.
I have tried various permutations of this.dispose()
and importing frCryptApp.java (using the import
statement), but I just can't seem to get it. frCryptApp
appears to be out of scope for frCaesar.
Could some kind soul please just show me what to
do in this case - i want the code to work if the user
clicks an Exit button on frCaesar or if they shut the
window using the top right x button or any other
way.
TIA and rgs.
Paul...
p.s. I'm using Oracle JDeveloper 11g on Linux