I want the columns in a table to be displayed in a certian order.
What is the recomended way?
If you are using JXTable, you can do the following:
TableColumnModel cmodel = myjxtable.getColumnModel();
cmodel.moveColumn(0,1); // swap columns 0 and 1
If you are using JNTable, you can get the JXTable
associated with the JNTable using getTable() and
do the same as above. Thanks,
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.