Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint
Cover Image
Cover Image
Drag to reposition
Contributed Answers

How to close JFrame on the click of a Button in Java

Answered 5h 55m ago, 0 Views

Set frame.dispose() on the click of a button to close JFrame. At first create a button and frame − , Now, close the JFrame on the click of the above button with Action Listener − , The following is an example to close JFrame on the click of a Button − , When you will click on the button “Click to Close”, the frame will close.

How to change JFrame background color in Java

Answered 6h 0m ago, 0 Views

At first, create a JFrame − , Now, change the background color of the JFrame − , The following is an example to change JFrame background color − ,

Java Program to create a vertical ProgressBar

Answered 6h 12m ago, 0 Views

To create a vertical ProgressBar, use the following property − , Set it like this − , The following is an example to create a vertical ProgressBar − ,

How to disable a JLabel in Java?

Answered 6h 16m ago, 0 Views

To disable a JLabel, use the setEnabled() method − , The following is an example to disable a JLabel − ,

Map to add String value to each element in Java

Answered 6h 20m ago, 0 Views

Let’s say the following is our String List − , Now, map to add string to each element − , Above, we have added “Sports” and “Outdoor” strings to each element. The following is an example to Map and add string value to each element in Java − , ,

How to Map double to int Object with mapToInt and mapToObj in Java?

Answered 6h 22m ago, 0 Views

At first, we have set the stream − , Now to Map double to int Object, use mapToObj − , The following is an example to Map double to int Object with mapToInt and mapToObj − , ,

How can I filter string value with starting letter?

Answered 6h 27m ago, 0 Views

Let’s say the following is our String List − , Now filter the string value with starting letter − , The following is an example to filter string value with starting letter − , ,

How to filter String list by starting value in Java?

Answered 6h 29m ago, 0 Views

Let’s first create a String list − , To filter String list by starting value, use filter() and startsWith() − , The following is an example to filter string list by starting value − , ,

How to add line border to JLabel in Java?

Answered 6h 32m ago, 0 Views

Use the createLineBorder() method to ad line border to JLabel − , Above, we have set the line border to color orange. The following is an example to add line border to JLabel − ,

How to create JLabel to hold multiline of text using HTML in Java?

Answered 6h 37m ago, 0 Views

To hold multiline of text, set HTML under JLabel − , The above will create multiline text in the JLabel − , The following is an example to create JLabel to hold multiline of text − ,

1 2 3 4 5 6 7 ... 254 Next
loader
Advertisements
Contribution

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.