Frame frame = new Frame("Minecraft");
Canvas canvas = new Canvas();
frame.setLayout(new BorderLayout());
frame.add(canvas, "Center");
canvas.setPreferredSize(new Dimension(854, 480));
frame.pack();
frame.setLocationRelativeTo(null);
MinecraftImpl minecraftimpl = new MinecraftImpl(frame, canvas, null, 854, 480, flag, frame);
Thread thread = new Thread(minecraftimpl, "Minecraft main thread");
thread.setPriority(10);
minecraftimpl.minecraftUri = "www.minecraft.net";