想做一个向 Eclipse 的 Console 一样的窗口,就是里面的内容不更新,当有新的东西进来的时候,新的东西就把旧的文本往上顶,这个效果怎么做呢,写了个程序,新的东西是能进来了,但是不往上顶啊。UI 的代码 JScrollPane jsp = new JScrollPane();
testArea.setEditable(false);
        testArea.setBackground(Color.DARK_GRAY);
        testArea.setForeground(Color.RED);
        testArea.setText("Simulation Standby...");
        jsp.setPreferredSize(new Dimension(1080,100));
        jsp.setViewportView( testArea );
        subSouth.add(jsp);
跟新的部分    testArea.append("\n" + "更新的内容");