In this section you will learn how to use the preferences in frame. The example will make it easier to understand to use the preferences with frame window. the required package to use the preferences with frame window are java.awt, java.awt.event, javax.swing and java.util.prefs. I the given example we make a preferences object and call it in main.
Here is the Complete Code of the Example :
thoroughly knowing the code you should save the file by "
file name and when after compiling the code you run your program you will get
the output given below .
Here is the Output of the Example :
Recommend the tutorial