I'm a beginner but...can solve your problem to create the new panel object `one' in Frame constructor instead in a separate method?