• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

why graph is not appearing?

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi...everyone....
I created an applet which contains a manubar .In that menubar only one manuitem " load file..."(menu item) is there. Which is used to browse the a file which contains a number of values to draw the graph. By that values i want to draw a line graph .
my aim is that when ever i browse a new file , it should take the values form that and draw the graph ...
here is the calling one...


here is the MenuImplimentation Class...




Why the graph is not appearing , even i called the repaint()....


here is the ShowGraph class ....



please help me ....
thank you...
output4.png
[Thumbnail for output4.png]
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't see code that would add the ShowGraph component to the applet.

Update: You're probably getting an exception in the init method, because "c" is still null when you're calling its "setSize" method. And assigning a value to "c" later does not cause it to be added to the layout.
 
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is this your code or is it borrowed from other sources as it appears to be an amalgam of things? Also, you appear to be not following recommendations given to you earlier, which is fine, but at least tell us why you choose to ignore the previous recommendations. And why the multiple threads in the forum rather than just sticking with one?
reply
    Bookmark Topic Watch Topic
  • New Topic