wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes interface updating problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply locked New topic
Author

interface updating problem

Lorenzo Levrini
Greenhorn

Joined: Mar 08, 2010
Posts: 15
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

Joined: Mar 08, 2010
Posts: 15
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

Joined: Mar 08, 2010
Posts: 15
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

Joined: Mar 08, 2010
Posts: 15
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
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3018
    
  35

Please continue the discussion on that topic.
Locking this one.


Founder of ExamLab and Systemup
See how I can help you to become an awesome programmer
 
jQuery in Action, 2nd edition
 
subject: interface updating problem
 
Similar Threads
Dynamic Graphs(Ajax) in JSP
Adding JScrollPane to JPanel?
how i do get network graph ?
(Design) Upgradeable capabilities
Help please