just run a GUI in VM console window First, log in to the VM in its console window (i.e. type directly into the VM window without using ssh) and make sure apt is up to date: sudo apt-get update Then, install the desktop environment of your choice. sud
摘自http://blog.csdn.net/liujun13579/article/details/7774267 三十三.Java图形化界面设计--布局管理器之null布局(空布局) 一般容器都有默认布局方式,但是有时候需要精确指定各个组建的大小和位置,就需要用到空布局. 操作方法: 1) 首先利用setLayout(null)语句将容器的布局设置为null布局(空布局). 2) 再调用组件的setBounds(int x, int y, int width,int
摘自http://blog.csdn.net/liujun13579/article/details/7772491 三十一.Java图形化界面设计--布局管理器之GridLayout(网格布局) 网格布局特点: l 使容器中的各组件呈M行×N列的网格状分布. l 网格每列宽度相同,等于容器的宽度除以网格的列数. l 网格每行高度相同,等于容器的高度除以网格的行数. l 各组件的排列方式为:从上到下,从左到右. l 组件放入容器的次序决定了它在容器中的位置. l 容器大小改变时,组件