Xtra 31 Posted July 1, 2020 Great contribution, really loving the aesthetic the GUI offers. Thanks & will be crediting you on release
Hashtag 9071 Posted March 18, 2021 2 hours ago, notafraid90 said: I'm getting two headers! What am I missing? You may want to declare the frame as undecorated.
notafraid90 12 Posted March 18, 2021 1 minute ago, Hashtag said: You may want to declare the frame as undecorated. I did both in my Swing invokeLater and in the DreamFrame constuctor. I also made sure its before setting it visible. I don't understand.
Hashtag 9071 Posted June 15, 2022 On 3/18/2021 at 9:21 PM, notafraid90 said: I did both in my Swing invokeLater and in the DreamFrame constuctor. I also made sure its before setting it visible. I don't understand. This can be solved by calling this line before you initialize your gui: JFrame.setDefaultLookAndFeelDecorated(false); On another note, I dislike the library because of 3 reasons: The close button in DreamHeader exits the client. You should make the following change: //closeBtn.addActionListener(l -> System.exit(0)); closeBtn.addActionListener(l -> SwingUtilities.windowForComponent(this).dispose()); The DreamBot logo is fetched from the internet for no reason at all. Because of this, the gui initialization must be wrapped in try-catch statement (ImageIO exception) and there is this redundant class VisualTools that resizes the image from the internet. Instead, the library should get the DreamBot icon from the client's JFrame as following: ((JFrame) SwingUtilities.windowForComponent(Instance.getCanvas())).getIconImage() This library is commonly used in SDN scripts and I cringe every time I see these "flaws" in new scripts to be released.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.