Hashtag 9070 Posted March 10, 2017 Don't hate private void minimize() { ((JFrame) getClient().getInstance().getCanvas().getParent().getParent().getParent().getParent().getParent().getParent().getParent()).setState(Frame.ICONIFIED); }
freshman123m 1 Author Posted March 10, 2017 Don't hate private void minimize() { ((JFrame) getClient().getInstance().getCanvas().getParent().getParent().getParent().getParent().getParent().getParent().getParent()).setState(Frame.ICONIFIED); } Thanks. Also I'm guessing I can access the gui with ((JFrame) getClient().getInstance().getCanvas().getParent().getParent().getParent().getParent().getParent().getParent().getParent()) but does that let me access settings such as Set CPU Saver Mode or is that a child of one of the getParents?
Hashtag 9070 Posted March 10, 2017 On 3/10/2017 at 7:00 PM, freshman123m said: Thanks. Also I'm guessing I can access the gui with ((JFrame) getClient().getInstance().getCanvas().getParent().getParent().getParent().getParent().getParent().getParent().getParent()) but does that let me access settings such as Set CPU Saver Mode or is that a child of one of the getParents? Nope. The JFrame doesn't give you access to those settings.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.