Java Program to Show the Functioning of a Toggle Button

This is a Java Program to Show the Functioning of a Toggle Button Problem Description We have to write a program in Java such that it shows the functioning of a toggle button. Toggle Button : It is a two-state button that allows the user to switch the button either on or off, that is … Read more

advertisement

Java Program to Create a Toolbar with 3 Image Push Buttons

This is a Java Program to Create a Toolbar with 3 Push Buttons with Image and Display the Selected Button in the Label Problem Description We have to write a program in Java such that it creates a toolbar with 3 buttons – New, Open and Print with images. When any button on the toolbar … Read more

advertisement

Java Program to Create a Menu and Handle the File Open Event

This is a Java Program to Create a Menu and Handle the File Open Event for the User Problem Description We have to write a program in Java such that it creates a frame with a menu item to handle the File Open event. By File Open event it means that the user shall be … Read more

advertisement

Java Program to Create a Menu and Menu Bar

This is a Java Program to Create a Menu with Several Menu Items Problem Description We have to write a program in Java such that it creates a menu bar with menu items and the the label of the menu item is displayed in the frame. Expected Input and Output For creating a menu with … Read more

advertisement

Java Program to Create a Combo Box

This is a Java Program to Create a Combo Box to Select One Option and Display the Label of Option Selected Problem Description We have to write a program in Java such that it creates a Combo Box containing name of some countries, and the option selected by user is displayed in the frame. Expected … Read more

advertisement

Java Program to Create a Split Pane with Two Parts

This is a Java Program to Create a Split Pane with Two Parts to Display Button and Display Text inside Text Area when Button is Clicked Problem Description We have to write a program in Java such that it creates a vertically split frame where the left part consists of few push buttons and the … Read more

advertisement

Java Program that Changes the Look and Feel of the Component

This is a Java Program that Changes the Look and Feel of the Component Problem Description We have to write a program in Java such that it allows the user to switch between three Look and Feel – Metal, Windows and Motif using radio buttons. Expected Input and Output To switch the Look and Feel … Read more

advertisement

Java Program to Create Check Boxes and Radio Buttons

This is a Java Program to Create Check Boxes and Radio Buttons and Display the Selected in a Text Area Problem Description We have to write a program in Java such that it creates 3 Radio Buttons and 3 Check Boxes and displays the selected using two labels. Expected Input and Output To display the … Read more

advertisement

Java Program to Create a Button and Display Image in the Frame when Clicked

This is a Java Program to Create a Button and Display Image in the Frame when Clicked. Problem Description We have to write a program in Java such that it creates a frame with a button. When the button is clicked an image is displayed in the frame. Expected Input and Output To display image … Read more

advertisement

Java Program to Create and Set Border to Push Buttons

This is a Java program to create push buttons and draw different borders around the buttons. Problem Description We have to write a program in Java such that it creates a frame containing five Push Buttons and different types of border are drawn around it. Expected Input and Output To draw different borders around the … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.