This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 3019
    
  35

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
 
Similar Threads
Dynamic Graphs(Ajax) in JSP
Adding JScrollPane to JPanel?
how i do get network graph ?
(Design) Upgradeable capabilities
Help please