freshman123m 1 Share Posted March 10, 2017 Title Link to comment Share on other sites More sharing options...
Hashtag 8694 Share Posted March 10, 2017 Don't hate private void minimize() { ((JFrame) getClient().getInstance().getCanvas().getParent().getParent().getParent().getParent().getParent().getParent().getParent()).setState(Frame.ICONIFIED); } Link to comment Share on other sites More sharing options...
freshman123m 1 Author Share 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? Link to comment Share on other sites More sharing options...
Hashtag 8694 Share 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. Link to comment Share on other sites More sharing options...
freshman123m 1 Author Share Posted March 10, 2017 Appreicate it Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.