久久久久久久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 以打印表格格式的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

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

                  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.

                  推薦答案

                  你可以禁用網(wǎng)格線,例如...

                  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);
                  

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

                  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 不會(huì)隨著更改而更新,這可能會(huì)讓用戶感到害怕.

                  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.

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

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

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

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

                  相關(guān)文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測(cè) 32 位 int 上的整數(shù)溢出?)
                  Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關(guān)系嗎?)
                  How to convert Integer to int?(如何將整數(shù)轉(zhuǎn)換為整數(shù)?)
                  How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內(nèi)創(chuàng)建一個(gè)隨機(jī)打亂數(shù)字的 int 數(shù)組)
                  Inconsistent behavior on java#39;s ==(java的行為不一致==)
                  Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠?qū)?0xff000000 存儲(chǔ)為 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>
                            主站蜘蛛池模板: 中文字幕一区二区三区乱码在线 | 午夜视频免费在线观看 | 在线看亚洲 | 国偷自产av一区二区三区 | 国产高清区 | 蜜桃传媒av | 国产成人免费视频 | 亚洲视屏 | 国产7777 | 蜜桃综合在线 | 亚洲最大av | 日韩一区二区久久 | 动漫www.被爆羞羞av44 | 一级片视频免费 | 人妖一区 | 国产精品久久久久久婷婷天堂 | 四虎永久免费地址 | 久久亚洲一区二区三区四区 | 欧美v在线| 欧美一级毛片久久99精品蜜桃 | 欧美一区二区三区在线观看视频 | 久久伊| 欧美精品91 | 精品一级 | 亚洲午夜一区二区 | 亚洲成av人片在线观看无码 | 美国黄色一级片 | 国产精品久久久久久久久久久免费看 | 成人亚洲精品久久久久软件 | 狠狠综合网 | 久久久久久国产精品免费免费狐狸 | 成人久久久久 | 日韩欧美一区二区在线播放 | 97国产精品 | 91免费在线视频 | 午夜视频一区 | 成人在线视频免费观看 | 一区二区三区中文字幕 | 91久久 | 成人免费观看男女羞羞视频 | 久久一 |