Notices

Overclockers Forums > Software > Programming Tips and Tricks
Programming Tips and Tricks
Forum Jump

Java, Color reference & paint component issue

Post Reply New Thread Subscribe Search this Thread
 
 
Thread Tools
Old 04-01-12, 08:15 PM Thread Starter   #1
ssjwizard
Has slightly less legible writing
than Thideras, Member

 
ssjwizard's Avatar 

Join Date: Mar 2002
Location: Rio Rancho, NM

10 Year Badge
 
Java, Color reference & paint component issue


Ok so hes my situation. I am writing an application with several panels that need to know about a single common color. So I thought my solution was going to be have the JFrame hold a color object, and each of the panels when they are constructed are passed the color object. Ok so one of the panels must be capable of updating the color so I used a color chooser to update the panels Color object. I know whats happening is that a new object is being assigned to the local reference, but shouldn't that propagate through to the other panels?

The other small issue I am having deals with repaint(). Basically my center panel is updating everytime a control is activated from panels a or c which is infact working. However the problem is that its not discarding the original images its just drawing over them. Resizing the window fixes the graphics.

__________________
Life is what you make of it, we exist for the sole purpose of existing. Dont waste the universe efforts!
All statements, imagery, and ideas contained within any posts are merely retold tales of fictional acts by a figment of the universe imagination.

So your looking for an AMD FX motherboard, things you need to know. Whats the max safe temps/volts for an FX?

Green Gorilla, CM 690-II nVidia, FX 8320, GTX 670, liquid cooled
Liquid Fusion, CM 690-II, A8+6670 Dual GFX, liquid cooled
Extreme evaporative water loop 450mm^3 water cooled beast - Incomplete
ssjwizard is offline Benching Profile Folding Profile Heatware Profile   QUOTE Thanks

Post Reply New Thread Subscribe


Overclockers Forums > Software > Programming Tips and Tricks
Programming Tips and Tricks
Forum Jump

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Mobile Skin
All times are GMT -5. The time now is 04:51 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
You can add these icons by updating your profile information to include your Heatware ID, Benching Profile ID or your Folding/SETI profile ID. Edit your profile!
X

Welcome to Overclockers.com

Create your username to jump into the discussion!

New members like you have made this the best community on the Internet since 1998!


(4 digit year)

Why Join Us?

  • Share experience
  • Max out your hardware
  • Best forum members anywhere
  • Customized forum experience

Already a member?