×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Himesh Sharma
Added: Feb 27, 2021 2:47 PM
Modified: Mar 10, 2023 8:41 AM
Views: 4772
Tags: getjframe
  1. (JFrame) SwingUtilities.getWindowAncestor(this)
  2. or
  3. SwingUtilities.windowForComponent(this)