Question: (JAVA) Design an ID card with your picture in the center, name on the top, and personal information (height, weight, eye color, address) split left

(JAVA) Design an ID card with your picture in the center, name on the top, and personal information (height, weight, eye color, address) split left and right. The bottom section of the card should display Java Programmer. The ID card should be have a size with a 5:3 width to height ratio. Place it in the center of the screen and do not allow resizing.

// Make a class IDCardFrame that extends JFrame public class IDCardFrame extends JFrame {

// 1 Argument constructor should accept a title (String)

/* Create a JLabel with a picture and place it in the center of the frame using the GridBagLayout manager **/

/* Create a JLabel with your name and place it in the NORTH section using the GridBagLayout **/

/* Create a JLabel that says "Java Programmer" and put it in the SOUTH region. The text of this JLabel should stand out among other text on the ID card. It's up to you how you will implement it (bold font, color, frame, etc.) **/

/* Make three JLabels, one with height, one with width, and one with eye color **/

/* Add the labels to the GridBagLayout in the appropriate places **/

/* Set the position and side of the frame **/

/* Set resizable to false **/

/* Make the frame visible **/

/* Include main() that instantiates IDCard **/ public static void main(String[] args) { }

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!