No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
hi am trying to code a program that uses a panel that has a functional calculator in it, and the calculator can be re-sized using a slider. here is my code please help me out import javax.swing.*; import javax.swing.event.*; import java.awt.*; import java.awt.event.*; public class CalcInSlider extends JPanel{ JSlider slider; … |
|
am trying to make a menu with a frame en its not working. and how can i introduce multiple panels in the same frame? here is my code. import java.awt.*; import javax.awt.event.*; import javax.swing.*; public class FrameMenu extends Jframe{ private final Color colorValues[]={Color.YELLOW,Color.RED,Color.BLUE,Color.GREEN}; private final Color colorValues2[]={Color.GRAY,Color.CYAN,Color.MAGENTA,Color.WHITE}; private RadioButtonMenuItem colorItems[];//color … |
|
am trying to make a menu with a frame en its not working. and how can i introduce multiple panels in the same frame? here is my code. [CODE]import java.awt.*; import javax.awt.event.*; import javax.swing.*; public class FrameMenu extends Jframe{ private final Color colorValues[]={Color.YELLOW,Color.RED,Color.BLUE,Color.GREEN}; private final Color colorValues2[]={Color.GRAY,Color.CYAN,Color.MAGENTA,Color.WHITE}; private RadioButtonMenuItem colorItems[];//color … |