我一直在通过CLion更改构建目录时遇到问题.我试过了:
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "bin")但它似乎没有改变并保持不变(/home/adil/.clion10/system/cmake/generated/c05c962b/c05c962b/Debug/Project).
我也尝试过这里指定的解决方法,但这似乎也不起作用.
有没有人有这个问题的解决方案?
我在这里尝试做的是repaint()从我的loadbg()方法中调用方法.但是,repaint()不起作用,我的图像(存储在var中bg)不会加载到屏幕上.有关为什么这不起作用的任何建议?
package core;
/*** @author Adil
* 2DPlatformer
* Written by Adil
* Built upon the player-core framework (written by Adil)
* GNU Licensed
*/
import java.awt.*;
import javax.swing.JFrame;
import javax.swing.ImageIcon;
@SuppressWarnings("serial") //Suppress serial warning ID
public class Core extends JFrame {
public static void main(String[] args) {
DisplayMode dm = new DisplayMode(800, 600, 16,
DisplayMode.REFRESH_RATE_UNKNOWN);
//new display with parameters 800x600 + 16 bit color depth
Core i = new Core(); //new …Run Code Online (Sandbox Code Playgroud)