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.
During AI Week 2025, Cloudflare announced Application Confidence Scores, an automated assessment system that is designed to help organizations evaluate the safety and security of third-party AI applications at scale.
By Renato LosioVercel has rolled out the AI Gateway for production workloads. The service provides a single API endpoint for accessing a wide range of large language and generative models, aiming to simplify integration and management for developers.
By Daniel DominguezStefania Chaplin explains how to integrate security into engineering workflows and teams using a "Secure by Design" approach. Drawing on her extensive experience, she shares practical strategies for a security-first culture by focusing on people, processes, and technology, including the use of security champions and automation to improve resilience and reduce costs.
By Stefania ChaplinShane Hastie, Lead Editor for Culture & Methods, spoke to Thanos Diacakis about how teams often struggle with software delivery. He proposes a shift in mental models and a four-step framework to systematically improve software development by focusing on bottlenecks, balancing different types of work beyond just feature delivery, and investing 20-30% of effort in improving how the team works.
By Thanos DiacakisNext.js 15.5 has landed, delivering faster builds and powerful server-side middleware. Key highlights include the Turbopack bundler, which boosts compilation speed by 2x to 5x, and Node.js middleware enhancements. TypeScript improvements enhance developer experience with stable typed routes and early error detection.
By Daniel Curtis
© 2025 Created by Michael Levin.
Powered by