aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 2885
    
  13

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


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
My Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: interface updating problem
 
Similar Threads
Help please
(Design) Upgradeable capabilities
how i do get network graph ?
Dynamic Graphs(Ajax) in JSP
Adding JScrollPane to JPanel?