File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 3268
    
  52

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


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: interface updating problem