Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic

interface updating problem

 
Lorenzo Levrini
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi all,

I am displaying image histograms on a user interface. Each histogram is represented by a class I wrote which extends JComponent. The painting is done the proper way through paintComponent and repaint() and it works great.

In my GUI constructor, I display the histograms..



And whenever I change the image, I call an update() method that contains the following line of code to update the histograms:

[code] graphs = plotter.plotRGB(currentImage); // Create histograms
 
Lorenzo Levrini
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Sorry:


Hi all,

I am displaying image histograms on a user interface. Each histogram is represented by a class I wrote which extends JComponent. The painting is done the proper way through paintComponent and repaint() and it works great.

In my GUI constructor, I display the histograms..



And whenever I change the image, I call an update() method that contains the following line of code to update the histograms:

[code] graphs = plotter.plotRGB(currentImage); // Create histograms
 
Lorenzo Levrini
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi all,

I am displaying image histograms on a user interface. Each histogram is represented by a class I wrote which extends JComponent. The painting is done the proper way through paintComponent and repaint() and it works great.

In my GUI constructor, I display the histograms..



And whenever I change the image, I call an update() method that contains the following line of code to update the histograms:

[code] graphs = plotter.plotRGB(currentImage);
 
Lorenzo Levrini
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Sorry, I could not get SUBMIT to work properly. I have reformulated my question:

http://www.coderanch.com/t/487291/Swing-AWT-SWT-JFace/java/interface-updating-real-post
 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4117
195
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please continue the discussion on that topic.
Locking this one.
 
I agree. Here's the link: http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic