当前位置: 技术问答>java相关
100分追问简单问题
来源: 互联网 发布时间:2015-01-31
本文导语: JTable 的 列 如何禁止拖动(即禁止列的顺序变化)。 JOptionPane 的字体如何改变? | 禁止列托动: import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import javax.swing.table....
JTable 的 列 如何禁止拖动(即禁止列的顺序变化)。
JOptionPane 的字体如何改变?
JOptionPane 的字体如何改变?
|
禁止列托动:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.*;
public class Test extends JFrame {
Object[][] listings = new Object[][] {
{ "28 Pickelodan", "Mork and Mindy", "Dukes of Hazard",
"I Love Lucy", "Andy Griffith", "Mission Impossible" },
{ "29 Dizey", "Rulan", "
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.*;
public class Test extends JFrame {
Object[][] listings = new Object[][] {
{ "28 Pickelodan", "Mork and Mindy", "Dukes of Hazard",
"I Love Lucy", "Andy Griffith", "Mission Impossible" },
{ "29 Dizey", "Rulan", "