I found the solution to my problem- the Canvas used to be in a JPanel itself, now I was adding a JPanel to a JPanel to a JScrollPane. So now I just directly add the first JPanel to JScrollPane. Alternatively, I think one could use setOpaque(false) on the container JPanel if more stuff needed...
Everyone says to use JComponent or JPanel instead of Canvas. I override paintComponent() with the code that was formerly in paint(), but nothing shows up. I just get a gray panel. I put in a System.out.println() statement in the paintComponent() method and make sure it only prints out at the...
Sure, I know it's not wrong though, since I compiled with no errors, and I compiled and run on Windows:
#include<stdio.h>
int main()
{
printf("Hello");
return 0;
}
also tried C++, same result- nothing:
#include<iostream.h>
int main()
{
cout<<"Hello"...
I've tried a test program with a printf("Hello"); statement in main and it doesn't output anything?? I've tried it on FreeBSD 4.6.2 and 4.7 and Solaris (I think 4). Any ideas??
My first column is labeled "Description", these items will dilineate the x-axis- so it has descriptions. The second-fourth column have column headers labeled with dates in mm/dd/yy format. Basically, my table is an inventory with the item descriptions going down the first column and...
Why is it that the legends for my graphs sometimes show ALL the values in a column?? For example, if my column names are "9/3/02", "10/3/02", and "11/10/02" the legend SHOULD and sometimes shows only these in the legend. However, sometimes the keys in the legend...
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.