Friday, August 26, 2022

Personal Information Using Swing in Java

 Machine Problem 

Create a Java JPanel/JOption program that will display your Personal Information and  Education Background.


I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada

Thank you very much for your support.






Program Listing

package demo;


/*

 * H. Create a Java JPanel/JOption program that will display display your Personal Information and 

Education Background


 */


import javax.swing.JOptionPane;



public class Personal_Swing {


public static void main(String[] args) {

// TODO Auto-generated method stub

String student_name = 

         JOptionPane.showInputDialog( "What is your name? " );

      

      String home_address = 

         JOptionPane.showInputDialog( "What is your home address? " );

      

      String mobile_number = 

         JOptionPane.showInputDialog( "What is your mobile number? " );

            

      String email_address  = 

         JOptionPane.showInputDialog( "What is your email address? " );

      

            

      String course = 

         JOptionPane.showInputDialog( "What is your course you finished in college? " );

      

  String school  = 

         JOptionPane.showInputDialog( "What is your school? " );

            

  String  year_graduated  = 

         JOptionPane.showInputDialog( "What year you graduate in college? " );

 

  JOptionPane.showMessageDialog( null, "\n" + "PERSONAL INFORMATION" + "\n\n" 

    + "Student Name   : " + student_name.toUpperCase()  + "\n"

      + "Home Address      : " + home_address.toUpperCase()  + "\r\n"

      + "Mobile Number     : " + mobile_number  + "\r\n"

      + "Email Address     : " + email_address  + "\r\n\n" 

      + "EDUCATIONAL BACKGROUND" + "\r\n\n"

      + "Course Graduated  : " + course.toUpperCase()  + "\r\n"

      + "School Graduated  : " + school.toUpperCase()  + "\r\n"

      + "Year Graduate     : " + year_graduated + "\r\n"

      , "Student Alumni Record", JOptionPane.INFORMATION_MESSAGE );



}


}




No comments:

Post a Comment