[ 4got10 @ 31.01.2017. 15:12 ] @
Stampam JTable i zelim da mi u header-u umesto teksta bude neki .jpg logo, a nisam siguran kako to da odradim Code: private void jButtonPrintActionPerformed(java.awt.event.ActionEvent evt) { Calendar cal = new GregorianCalendar(); int dan = cal.get(Calendar.DAY_OF_MONTH); int mesec = cal.get(Calendar.MONTH); int godina = cal.get(Calendar.YEAR); MessageFormat header = new MessageFormat("Logo"); <== Umesto String-a neki JPG MessageFormat footer = new MessageFormat("Datum:"+dan+"/"+(mesec+1)+"/"+godina); try { jTable_display.print(JTable.PrintMode.FIT_WIDTH, header, footer); } catch (java.awt.print.PrinterException e) { System.err.format("Greska", e.getMessage()); } } Hvala unapred na pomoci! Pozzz |