What's the best way to print content of javax Object (JTable for example)?

Hi there,
1) I would like to know the best way to print content of jtable (for example)
2) I would like to know how can I Print content of SQL statment (for example "SELECT ID, NAME FROM COMPANY")?
Best Regard,
Eyal
[email protected]

Depends on what you want printed. You can do something like System.out.println(myTable);but you may not like what you see. If you want to print anything else, extend JTable and create a new toString() method that prints out what you want.
As for printing a SQL statement - assuming it is in a String, you can just do System.out.println(mySQLStatement);

Similar Messages

  • What is the best way to print from an iPad?

    I have the Printer Pro app, and it seems to do a good job locating my wireless printer, but it gets complicated to print webpages or pages documents. What is the best way to print from an iPad 2?

    If you have a compatible printer, use AirPrint http://www.apple.com/ipad/features/airprint.html and http://support.apple.com/kb/HT4356
    If not, you would need to purchase software, such as:
    http://itunes.apple.com/us/app/printcentral-for-ipad/id366020849?mt=8
    http://www.ecamm.com/mac/printopia/
    http://www.collobos.com/

  • HT1589 what's the best way to move content to a new library I created ie a holiday music only library?

    what's the best way to move content to a new library I created ie a holiday music only library?

    Sophie:
    Welcome to the Apple Discussions. You're only hope to recover the library as it once was is to: 1 - if you have a backup copy of your iPhoto Library or 2 - you can put everything back exactly the way it was in the Finder.
    Otherwise you'll have to start over with a new library and import the Originals folder from your current library as follows:
    Creating a new library while preserving the Events from the original library.
    Move the existing library folder to the desktop.
    Open the library package like this.
    Launch iPhoto and, when asked, select the option to create a new library.
    Drag the Originals folder from the iPhoto Library on the desktop into the open iPhoto window.
    This will create a new library with the same Events as the original library if you have the Finder checkbox unchecked in the Events preference pane.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • What is the best way to print from pages on my iPad 2?

    What is the best way to print a pages document directly from ipad 2?

    Purchase and use an AirPrint capable printer.  Everything is described here:
    http://support.apple.com/kb/HT4356

  • What is the best way to get a tune created in GB for iPad into iMovie for iPad?

    What is the best way to get a tune created in GB for iPad into iMovie for iPad?

    Haven't done it myself, but seems like the correct workflow would be:
    From GarageBand (iOS), My Songs -> select song -> Send to iTunes
    From iMovie HD (iOS), My Project -> Insert Media -> select by song name
    I'm not sure if GB creates its own playlist for tagging exported songs in your iTunes library so selecting by name would be the next-best method.
    Have you tried this?

  • What is the best way to query planned orders or work orders for make items and identify the buy component that is short for supply and vice versa?

    What is the best way to query planned orders or work orders for make items and identify the buy component that is short for supply and vice versa?

    What is the best way to query planned orders or work orders for make items and identify the buy component that is short for supply and vice versa?

  • I finally was successful in burning a CD of a slideshow I created in iPhoto, however, it is blurry. What is the best way to burn to a CD or DVD for clarity. Also, I realize if burned in iPhoto it will only be playable in iPhoto. Help! This is needed soon!

    I finally was successful in burning a CD of a slideshow I created in iPhoto, however, it is blurry. What is the best way to burn to a CD or DVD for clarity. Also, I realize if burned in iPhoto it will only be playable in iPhoto. Help! This is needed soon for a wedding reception!

    What version of iPhoto are you using?  How do you plan to view the slideshow at the wedding reception, on a TV screen?  If so then you will need to send the slideshow to iDVD and burn a disk from there.
    If you're in iPhoto 11 and the slideshow was created in the slideshow mode and not from an album, then go to the Share menu and select iDVD.  That will create a QT movie of the slideshow and import it into iDVD.
    In iDVD select your theme and setup the menu as you'd like.  If you want the movie to begin plahying immediately when the disk is inserted into the DVD player go into the Gallery mode and drag the movie into the Autostart  bin at the left.
    Click to view full size
    If you want the movie to loop continuously go to the Advanced menu and select Loop.
    Click to view full size
    When you're finished setting upb the iDVD project save it as a disk image via the File ➙ Save as Disk Image menu option. This will allow you to check it with DVD Player before tryingto burn to disk.  Mount the disk imnage by double clicking on it and launch DVD Player and play.  If the movie plays as you want and everything is good you can  burn to disk with Disk Utility at the slowest speed available to assure the best burn quality.  Always use top quality media:  Verbatium, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    OT

  • What is the best way to implement a cluster-wide object ID generator?

    What is the best way to implement a cluster-wide object ID generator?

    What is the best way to implement a cluster-wide
    object ID generator?Always use 3 because it is prime.
    Alternatively more information about the system and the needs of the system might prompt alternative ideas some of which are likely to be better than others for your particular implementation and system constraints.

  • What's the best way to erase content but not the applications?

    I'm giving away my iMac to my niece. I want to erase all my  content files, libraries ,etc., but not the applications. What's the best way to do this, and to do it securely?

    If you have Downloaded and Upgraded to Lion See...
    Here is an excerpt of the SLA; the Lion license (purchased from MAS) is NOT transferable. The SLA is quite clear:
    B. If you obtained your license to the Apple Software from the Mac App Store or on Apple-branded physical media, it is not transferable. If you sell your Apple-branded hardware to athird party, you must remove the Apple Software from the Apple-branded hardware beforedoing so, and you may restore your system to the version of the Apple operating systemsoftware that originally came with your Apple hardware (the “Original Apple OS”) andpermanently transfer the Original Apple OS together with your Apple hardware, provided that:(i) the transfer must include all of the Original Apple OS, including all its component parts,printed materials and its license; (ii) you do not retain any copies of the Original Apple OS, fullor partial, including copies stored on a computer or other storage device; and (iii) the partyreceiving the Original Apple OS reads and agrees to accept the terms and conditions of theOriginal Apple OS license.
    Now Proceed...
    Boot from the original OS installer disk and do an Erase & Install.
    When the Mac reboots into Mac Setup Assistant Quit and shut it down.
    When the New Owner Boots it up it's a brand new Mac... just like when you got it.
    ( The Original Install Disc(s) should also be included with the sale )
    http://www.ehow.com/how_5852122_restore-imac-factory-settings.html

  • What's the best way to print pictures from my iPhone?

    I have a lot of pictures on my iPhone 3G and iPhone 4S and a few on my iPad 2 and they're taking up a lot of space, what's the best way for me to print them out?

    Import them to your computer and use your computer's photo app to print them.  Once they have been imported, you can delete them from your phone.
    See this for instructions:  Copying personal photos and videos from iPhone, iPad, or iPod Touch to your computer, http://support.apple.com/kb/HT4083
    You'll also improve iOS backup and restore times by reducing the Camera Roll:  http://support.apple.com/kb/HT3603

  • What is the best way to make my file in FCPX Compatible for a DVD.

    I am working with a file that is about 53 minutes in length.  The video is broken up into 14 3to5 minute videos.  During my project, as I completed each video, I saved a master file and shared as APPLE PRO RES so that I wouldnt lose anything as this is my first time working with FCPX.  This made a hi-def quicktime file of each video (came out great). Now I need to put the entire project together.  My individual master files are about 4g a piece and I would imagine putting them together, will be way too large to make a dvd with.
    My question is what is the best way to put it all together and export/share? I have all of the original projects still in FCPX, do i copy and paste them into one big file? Then share, and If I share what format should i share with?  I need to take the file, throw it on a external HD and put on my laptop to create the DVD in IDVD. Needs to be decent quality for the DVD.  I have read that I can create a DVD right from FCPX, but that would be impossible as I am working on a new imac with no burner!
    ANY HELP WOULD BE GREATLY APPRECIATED!

    jpqb48 wrote:
    My question is what is the best way to put it all together and export/share? I have all of the original projects still in FCPX, do i copy and paste them into one big file? Then share, and If I share what format should i share with?
    All sounds good.
    Create a new project and paste your 14 videos (projects) sequentially into it, Perhaps insert a gap clip and put in chapter markers if you want. Share>DVD. Should create a high quality disk.
    Good luck.
    Russ

  • What's the best way to setup a media server/central storage for all of my?

    I was wondering what the best way to achieve a central media server for all my iTunes content + iPhoto's, calendar syncing and contact sharing is? This is what I currently have:
    iMac 20" Aluminum + External HD Backup (kids)
    Macbook Black (wife)
    Macbook Pro 15" (me)
    Airport Extreme 802.11n (obvious)
    TimeCapsule 1TB (wifi backup for wife/me)
    I would like to replace my PC in my office with a brand new Mac Pro Nehalem 8-Core, 8GB Ram, and 4TB, and replace my PC laptop in my living room attached to my tv, with an Apple TV.
    I want to centralize all our Photos from vacations, etc. Music, videos, movies, that are currently split up over wife's macbook, kids imac and my macbook pro onto my soon to be purchased Mac Pro.
    I want to be able to stream everything from my living room via Apple TV for when guests come over, dinner parties, etc. (plus I love apple and it keeps things clean)
    I'm currently using MobileMe to sync all of our Calendars and Contacts with my main account, which is great, but MobileMe doesn't sync to family members accounts =
    What would I need to do to centralize all this onto my future Mac Pro so that everyone has access all the time when they are home and the key here is, modify/update/change from their machines and sync it back/update it on the Mac Pro.
    Also, I'm hoping Snow Leopard has some changes to iTunes to make this a little more possible, since we're right around the corner from this release. I don't really want to spend an additional $900+ on Snow Leopard Server to have to achieve these results, but if it makes it easier, and does the job, then I guess I might. This is all speculation though, since it's not out yet. I'd like to get this all sorted and setup within the next month.
    I was considering a Drobo, they say they can throw up iTunes Server but, I appreciate everyone for reading this, and taking the time to respond!
    Thanks!
    Message was edited

    I'm in the process of setting up a smaller (and cheaper) but somewhat similar setup to what you want to do, so maybe one example might help point you in the right direction. My needs consist of a centralized location for data storage, which will include iPhoto libraries (I keep two separate ones), iTunes (which I also want served to the home theater system), something other than my laptop to play internet videos and downloaded content on my TV, all with ideally the lowest cost and energy use possible.
    My solution was the new Mini with a FW800 external drive as the server/media hub and Airport gigabit as the network hub (it also handles the backup drive).
    FW800 is fast enough to saturate a gigabit ethernet link, so I don't consider that much of a bottleneck. The Mini then has iTunes running at all times with its centralized library on it; it is hooked to the home theater via HDMI-DVI video and optical audio, so it can play music and also handle videos when desired; Front Row with the Apple remote is close enough to an AppleTV that I think it handles that well, and it's more full-featured than an AppleTV. It can further be used to display photos/slideshows/whatever on the TV for guests or such, or to surf from the couch with a wireless mouse/keyboard. You can also toss in an EyeTV for $150 and use that as a DVR if you feel like it.
    When I want to edit photos or such on my desktop, the gigabit link is fast enough that I can run iPhoto without noticing any significant slowdown. Its also usable over wireless, though I have a dangling extra network cable to plug into a laptop for full gigabit speed if need be. iTunes, of course, shares its library, which can be played from any of the computers in the house if so desired (iPhoto can do that too if you just want to display).
    If I REALLY wanted top speed (though I've even done video editing in iMovie via ethernet without issue), I could use a third party synch app (I like Sync) to mirror any of the content from the mini server to a local drive; this works fine with anything but multi-way synching, such as address books being modified in different locations. I'd probably try to set up one of those Mobile Me clone systems or use a 3rd party app if I needed to do that.
    Again, maybe this isn't powerful enough or "synched" enough in terms of local storage for your taste, but the advantage is that a Mini uses a minute fraction of the power of a Mac Pro, so you're saving a lot on electricity if the computer will be powered up at all times as a server, and it's also a lot more full-featured as a home theater media hub than an AppleTV. And, heck, the thing is about as well equipped as my old top-of-the-line G5 tower for a 5th the cost and 1/15th the power and noise.

  • What's the best way to know whether an application is running for the first time? (C#)

    I seen suggestions like making a registry entry, or making an entry in the application specific settings file. But what's the best practice? I want to do some custom tasks if that is a first run.
    Also, I am deploying my application using per machine MSI installer. So un-installation not deleting the user specific config files that's get created under AppData.
    Thanks Prasad

    Hello,
    Whenever possible I prefer to avoid the registry. The following works once per user where we see if a specific folder exists or not, if it does not then do first time initialization work then set a setting in the project which causes a user config file to
    be written to the location for storing user settings per user. 
    You first need to create a setting in the project, in this case I did
    var config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal);
    string configPath = config.FilePath.Replace("\\user.config", "");
    if (System.IO.Directory.Exists(configPath) )
    Console.WriteLine("This is not the first time");
    else
    // Do one time setup here
    Properties.Settings.Default.FirstTimeValue = "1";
    Properties.Settings.Default.Save();
    Console.WriteLine("This was the first time");
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • What is the best way to print a CD Label

    I am not a web-designer or work in advertising. But I do have lots of DVDs and CDs I've created (most of them are videos & photos of my daughter) and currently I am only labeling them with a marker.
    I really want to have a nice looking (somewhat professional look) of CD Label. I purchased those CD Labeling Kit, but I want to "customize" my label, not using one of the free template that they've given. I do have several of CD Labels made and they turned out ok (I use Photoshop CS). But everytime I print a CD Label, it always take me 3 to 4 times to get it right. This really has wasted me ink. What I meant to "get it right" is the print is printed exactly or a little bit more than the "circular" part on the sticker. Also, some time what looks good on the screen, it came out fuzzy on the printout (eventhough I printed it on 300 dpi).
    Anyway, what's the secret to print a customize CD Label, and got it printed exactly on the circular part of the label/sticker? Is it wort it to get one of those printer that can print the label straight onto the CD? I heard that in the long run, having the sticker is not good.
    Any suggestions is appreciated.
    Thanks,
    amanda

    amanda:
    I use Discus 3.6 which is a label program which is packaged with Toast.
    You do have to have a tempate holder to stick the label on the CVD.
    There is no question that printing on the disk is the best solution especially with DVDs as they spin much faster than CDs.
    I have had some issues with other people reading the DVDs and that may be attributed to that missalignment or the burning speed.
    In Toast there is a method of burning slection. Be careful as there are CD speeds and DVD speed slelectons. Use the right one.
    POWER MAC G-4 (933 MHz QuickSilver) Mac OS X (10.4.3)
    POWER MAC G-4 (933 MHz QuickSilver)   Mac OS X (10.4.3)  
    POWER MAC G-4 (933 MHz QuickSilver)   Mac OS X (10.4.3)  

  • Cloud Newbie: What is the best way to sync content files between locations?

    Not new to Dreamweaver, but am new to the Creative Cloud.  I typically carry an external drive with my web files and update site from home or work computer using those files.  Now that I'm using Dreamweaver CC, I'm trying to find the most efficient way to sync content files between computers.  I see that the "Sync Settings" allows for syncing of preferences - but not content. Anyone have a recommendation? Or do I simply make my changes at work. Then go home and download the page I made changes to update my home files?
    Thanks,
    George

    The Cloud isn't going to synch your site files between 2 computers.  That's not what it's for.
    You might want to explore file check-in/out feature in DW. 
    http://help.adobe.com/en_US/dreamweaver/cs/using/WSc78c5058ca073340dcda9110b1f693f21-7ebfa .html
    This lets you check files in/out from your Remote server.  That way, you know you're working on the lastest copy. Check-in/out is typically used in collaborative environments where 2 or more people work on the site.  But it might serve your needs as well.
    Nancy O.

Maybe you are looking for

  • What about the internet temporary files?

    Hello! I'm a quite new to Mac and I would like to know if, as I used to do with my old Windows, there is the need to do some 'spring cleaning' and deleate the internet temporary files. I can't bear the idea of collecting files but also I don't know w

  • Invoice amount which is reflecting in our customer ledger

    Hi gurus In few cases Invoice amount which is reflecting in our customer ledger is basic value insted of " net selling value" ( basic price + Tax Price ). Due to which in my customer ledger receivables are showing less as per Invoice value. Can you s

  • CS5 Upgrade Issues from DW8

    I have recently upgraded from DW8 to CS5. This occurred when I purchased a new computer with the OS going from XP Pro to Win 7 Ultimate (remained with 32 bit instead of going up to 64 bit). DW8 didn't like the new OS. Now at this stage I am still car

  • Bmpanel theme [archack]

    modified the 'arch' theme to be really minimal. used gimp and xfw editor. http://rapidshare.com/files/147845499/a - ar.gz.html credits go to the unknown author of the original theme, if there is a problem I will withdraw. Last edited by gav616 (2008-

  • Populating data of a No Qualifier Field

    Hi All,        I have 3-4 fields as Yes Qualifiers in my Qualified Table. I want to merge the data of these fields into a single No Qualifier field of the same table so that I can see that data in Matching Mode while merging of two records as I can n