久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<tfoot id='qI4Xf'></tfoot>
  • <small id='qI4Xf'></small><noframes id='qI4Xf'>

        <bdo id='qI4Xf'></bdo><ul id='qI4Xf'></ul>
      <i id='qI4Xf'><tr id='qI4Xf'><dt id='qI4Xf'><q id='qI4Xf'><span id='qI4Xf'><b id='qI4Xf'><form id='qI4Xf'><ins id='qI4Xf'></ins><ul id='qI4Xf'></ul><sub id='qI4Xf'></sub></form><legend id='qI4Xf'></legend><bdo id='qI4Xf'><pre id='qI4Xf'><center id='qI4Xf'></center></pre></bdo></b><th id='qI4Xf'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='qI4Xf'><tfoot id='qI4Xf'></tfoot><dl id='qI4Xf'><fieldset id='qI4Xf'></fieldset></dl></div>
      <legend id='qI4Xf'><style id='qI4Xf'><dir id='qI4Xf'><q id='qI4Xf'></q></dir></style></legend>

      1. 獲取 JTable 以打印表格格式

        Get JTable to print tabular format(獲取 JTable 以打印表格格式)
        • <legend id='KurWf'><style id='KurWf'><dir id='KurWf'><q id='KurWf'></q></dir></style></legend>
        • <tfoot id='KurWf'></tfoot>
          1. <small id='KurWf'></small><noframes id='KurWf'>

                  <tbody id='KurWf'></tbody>
              • <i id='KurWf'><tr id='KurWf'><dt id='KurWf'><q id='KurWf'><span id='KurWf'><b id='KurWf'><form id='KurWf'><ins id='KurWf'></ins><ul id='KurWf'></ul><sub id='KurWf'></sub></form><legend id='KurWf'></legend><bdo id='KurWf'><pre id='KurWf'><center id='KurWf'></center></pre></bdo></b><th id='KurWf'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='KurWf'><tfoot id='KurWf'></tfoot><dl id='KurWf'><fieldset id='KurWf'></fieldset></dl></div>
                • <bdo id='KurWf'></bdo><ul id='KurWf'></ul>
                  本文介紹了獲取 JTable 以打印表格格式的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  所以我有一個標準的 JTable,我希望用戶能夠打印出來.我使用了 JTable.print(),它可以打印出表格的精確副本,但我希望它更多地采用表格格式,只有列名,然后是它們下面的數據,沒有網格或任何東西.我以為這很簡單,但我不知道該怎么做!有人做過嗎?如果是這樣,有人可以為我提供代碼示例/示例嗎?謝謝.

                  So I have a standard JTable and I want the user to be able to print it out. I used JTable.print() and that's fine for printing out an exact replica of the table, but I was hoping to have it more in a tabular format, with just the column names and then the data beneath them, no grids or anything. I thought this would be simple, but I have no clue what to do! Has anybody done this? If so, can someone provide me with code sample/example? Thank you.

                  推薦答案

                  你可以禁用網格線,例如...

                  You could disable the grid lines, for example...

                  JTable printTable = new JTable(table.getModel());
                  printTable.setSize(printTable.getPreferredSize());
                  JTableHeader tableHeader = printTable.getTableHeader();
                  tableHeader.setSize(tableHeader.getPreferredSize());
                  
                  printTable.setShowHorizontalLines(false);
                  printTable.setShowVerticalLines(false);
                  printTable.print(JTable.PrintMode.FIT_WIDTH);
                  

                  這使用一個臨時的、屏幕外的 JTable 來進行實際打印,因此您需要確保配置任何所需的渲染器,但這個想法是合理的.

                  This uses a temporary, offscreen JTable to do the actually printing, so you will need to be sure to configure any required renderers, but the idea is sound.

                  此基本功能可確保屏幕上的 JTable 不會隨著更改而更新,這可能會讓用戶感到害怕.

                  This basic ensures that the JTable that is on the screen doesn't get updated with the changed, which could be kind of freaking to users.

                  它還允許您根據需要更改 TableHeader ;)

                  It also allows you to change the TableHeader should you want to to ;)

                  這篇關于獲取 JTable 以打印表格格式的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數溢出?)
                  Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關系嗎?)
                  How to convert Integer to int?(如何將整數轉換為整數?)
                  How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內創建一個隨機打亂數字的 int 數組)
                  Inconsistent behavior on java#39;s ==(java的行為不一致==)
                  Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠將 0xff000000 存儲為 int?)
                      <bdo id='0Glvr'></bdo><ul id='0Glvr'></ul>

                          1. <tfoot id='0Glvr'></tfoot>
                              <tbody id='0Glvr'></tbody>
                          2. <small id='0Glvr'></small><noframes id='0Glvr'>

                            <legend id='0Glvr'><style id='0Glvr'><dir id='0Glvr'><q id='0Glvr'></q></dir></style></legend>
                            <i id='0Glvr'><tr id='0Glvr'><dt id='0Glvr'><q id='0Glvr'><span id='0Glvr'><b id='0Glvr'><form id='0Glvr'><ins id='0Glvr'></ins><ul id='0Glvr'></ul><sub id='0Glvr'></sub></form><legend id='0Glvr'></legend><bdo id='0Glvr'><pre id='0Glvr'><center id='0Glvr'></center></pre></bdo></b><th id='0Glvr'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='0Glvr'><tfoot id='0Glvr'></tfoot><dl id='0Glvr'><fieldset id='0Glvr'></fieldset></dl></div>
                            主站蜘蛛池模板: 黄色一级毛片 | 国产成人免费视频网站高清观看视频 | 日韩二区| 少妇一级淫片免费播放 | 好姑娘高清在线观看电影 | 亚洲精品九九 | 中文字幕在线观看第一页 | 国产精品高潮呻吟久久 | 91在线免费视频 | 国产久 | 欧美精品久久 | 欧美一区2区三区4区公司二百 | 久久夜色精品国产 | 国产这里只有精品 | 国产一区二区日韩 | 亚洲 欧美 综合 | 91成人免费电影 | 99re热精品视频 | 亚洲视频免费观看 | 国产精品91网站 | 狠狠色综合欧美激情 | av一区二区三区在线观看 | 国产一级在线视频 | 成人三级在线播放 | 一级日韩| 日日骚视频| 91在线观看网址 | 日韩精品一区二区在线观看 | 欧美又大粗又爽又黄大片视频 | 国产精品日韩欧美一区二区 | 久久国产欧美一区二区三区精品 | 国产精品久久久久久久久久久新郎 | 免费精品 | 日韩午夜在线观看 | 日韩av看片 | 中文字幕免费视频 | 中文字幕第十五页 | 日日夜夜精品视频 | 亚洲狠狠爱 | 91嫩草精品 | 国产综合精品一区二区三区 |