![]() ![]() JSlider blueBgSlider = new JSlider(0,255,0) JSlider greenBgSlider = new JSlider(0,255,0) JSlider redBgSlider = new JSlider(0,255,0) Private JLabel colorLabel2 = new JLabel () Private JLabel colorLabel1 = new JLabel () ![]() ![]() Public static final int DEFAULT_HEIGHT = 300 Public static final int DEFAULT_WIDTH = 350 This is minor, and doesn't affect the purpose of the application, except for not knowing which slider controls which color.įtDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) Part of the code is to change the background color of each slider so that I can see the level of each color. Here's the problem, on Windows, surprisingly, everything works well but on a Mac there is a problem with the sliders. The purpose is to help pick color combinations which are readable, both for Java programming and web design. Three of the sliders control the background color, the other three control the foreground color, and a section between them displays the value of the sliders and a sample text. I have a small application, the purpose is to place six sliders and a test panel in a window. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |