久久久久久久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>
                            主站蜘蛛池模板: 国产精品国产精品国产专区不蜜 | 久久久久综合 | 国产 欧美 日韩 一区 | 国产一区二区三区在线 | 黄色大片在线免费观看 | 亚洲天堂一区二区 | 一区二区伦理电影 | 国产一级影片 | 动漫www.被爆羞羞av44 | 久久久久国产一区二区 | 精品视频在线观看 | 欧美久久久久久 | 精品国产欧美一区二区三区成人 | 成人美女免费网站视频 | 日韩免费三级 | 欧美jizzhd精品欧美巨大免费 | 久久69精品久久久久久国产越南 | 欧美日韩一区二区三区四区五区 | 日本欧美国产在线观看 | 91精品国产综合久久小仙女图片 | 男女羞羞视频在线 | 国产精品波多野结衣 | 国产精品视频网站 | 在线观看亚洲专区 | www.欧美 | 中文字幕亚洲无线 | 国产精品美女 | 亚洲精品一区二区三区蜜桃久 | 瑟瑟视频在线看 | 久草福利| 国产精品视频不卡 | 国产精品久久久久久福利一牛影视 | 男人的天堂亚洲 | 国产真实乱全部视频 | 亚洲欧美综合精品另类天天更新 | 韩日精品视频 | 久久精品亚洲成在人线av网址 | 国产农村妇女毛片精品久久麻豆 | 国产乱码一二三区精品 | 国产一区二区三区高清 | 日韩淫片免费看 |