anglok 0 Newbie Poster

Hello,

Is there a way to center or offset a canvas component inside of a Java Frame (AWT)? I've tried a number of strategies based around frame.add(canvas), and whether I'm using a full screen frame of not, it's always aligning at the top left of the frame.

Thanks for any suggestions!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.