这里是我的代码: //this is a JPanel, the gray panel behind the A4 paper
public Panel(int w, int h) { //w=624, h=600
this.w = w;
this.h = h;
ownlayout();
setLocation(0, 0);
setSize(w,
下面我附上了代码,它在窗口中心绘制了一条简单的垂直线,但是当我调整窗口大小时,线条倾向于调整大小的方向。 但是,当尝试两条线时,第一行倾斜而第二行保持固定。 我希望它们被固定,而不管给定的大小。 public class finalPlot{
static JFrame f = new JFrame();
public static void main(final Stri