Codetown ::: a software developer's community
Hello all, I am “very” new to Java and fairly new to programming in general. I have been reading the “Head First Java” book and while doing one of the examples came across an observation. I created a colored circle and a button when you click the button the circle changes to a random color with the repaint() method. I have dual monitors set up and what I noticed was that If I were to drag the window to the second monitor it fires the repaint() method. Can anyone explain why this happens? I know this is probably something as a new programmer I don’t need to know right now but it did intrigue me so I thought I would ask.
Tags:
Codetown is a social network. It's got blogs, forums, groups, personal pages and more! You might think of Codetown as a funky camper van with lots of compartments for your stuff and a great multimedia system, too! Best of all, Codetown has room for all of your friends.
Created by Michael Levin Dec 18, 2008 at 6:56pm. Last updated by Michael Levin May 4, 2018.
Check out the Codetown Jobs group.

Culture shapes how we feel, work, and succeed, says Natan Žabkar Nordberg. People thrive in different environments—some need autonomy, others structure. Trust must be given first, not earned. Leaders should guide, not control, fostering autonomy and safety.
By Ben Linders
Dynamic technology leader with expertise in transitioning from monolithic to micro-frontend architectures. Advocate for prioritizing architectural intent and cultural changes alongside development. Skilled in optimizing team autonomy, enhancing agility, and streamlining deployment strategies to facilitate rapid, sustainable growth, all while ensuring effective communication and state management.
By Steef-Jan Wiggers
Aspire 13 has been released as a major milestone in the platform's evolution. As reported by the team, Aspire is no longer branded as “.NET Aspire” and is now positioned as a full polyglot application platform. According to the announcement, version 13 brings first-class support for Python and JavaScript alongside existing .NET capabilities, marking a significant shift forward.
By Almir Vuk
Rachael Wonnacott explains why DevEx is a lever, not the destination. Discover the risks of treating your platform as an isolated product and learn how to balance trade-offs between technical expertise, productivity, and business impact for achieving enterprise-scale success.
By Rachael Wonnacott
Buoyant, the company behind the open-source Linkerd service mesh, announced that Linkerd now supports the Model Context Protocol (MCP), making it the first service mesh to natively manage, secure, and observe agentic AI traffic in Kubernetes environments.
By Craig Risi
© 2025 Created by Michael Levin.
Powered by