简体   繁体   中英

The method setTitle

So this is my code

 package me.Liam.H3k0Crew; import org.lwjgl.util.Display; public class H3k0Crew { public static String Client_Name = "H3k0Crew"; public static double Client_Version = 1.0; public static final H3k0Crew H3k0Crew = new H3k0Crew(); public static void StartClient(){ Display.setTitle(Client_Name + "(rel-" + Client_Version + ")"); } }

And it gives me a error在此处输入图片说明

Are you sure you're using the most recent version of LWJGL? I couldn't find the Display class in LWJGL 3. In LWJGL 2 the Display class didn't have anything related to setting titles. Your tutorial may be outdated.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM