Playlist
• Java Frontend
2023 05 24 15 42 21
import java.awt.HeadlessException;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JSlider;
/**
*
JSlider
*/
public class slider extends JFrame{
public slider() throws HeadlessException {
JSlider slider555 = new JSlider(JSlider.HORIZONTAL,
0, 150, 50);
slider555.setMinorTickSpacing(2);
slider555.setMajorTickSpacing(40);
slider555.setPaintTicks(true);
slider555.setPaintLabels(true);
JPanel panels = new JPanel();
panels.add(slider555);
this.add(panels);
this.setSize(450, 175);
this.setVisible(true);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
public static void main(String[] args) {
slider s = new slider();
}
}
On this page of the site you can watch the video online Java Swing: JSlider with a duration of hours minute second in good quality, which was uploaded by the user Le Hoang Long Long 24 May 2023, share the link with friends and acquaintances, this video has already been watched 12 times on youtube and it was liked by 0 viewers. Enjoy your viewing!