million thanks for the replies sedj & byam. i really appreciate it. i've managed to solve the problem. i've made some changes like:
1. i changed //centerPanel.addData(new MyData("")); to
mg.addData(new MyData(""));
2. i added mg.setBackground(Color.white); &
c.add( mg...
hi all,
i'm getting 2 cannot resolve symbol errors after i compiled my code. the full description of the errors are as below:
1. cannot resolve symbol
symbol: method addData (MyData)
location: class javax.swing.JPanel
centerPanel.addData(new MyData(""))...
hi prosper,
thanks for replying. i really appreciate it. i've read your code & also ran it a few times to figure out what you have added & modified to my code. i've learned something new from it but the addition of the CenterCanvas is not what i planned to do actually.
the value selected in...
hi all,
i'm new to this forum & also to java programming. i have a problem i.e. i'm not sure how to get the jbutton to obtain the necessary texts displayed on the jcombobox & 'paint' them. the texts are supposed to be 'painted' vertically i.e. rotated anticlockwise 90 degrees.
basically, i...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.