Posts Tagged java

Appending Characters In An Entire Column Of A Text File-Java

I just fell in a situation where I was desired to put tabs in an entire column of a text file. MS-Word, MS-Excel were useless for this purpose. So finally I built a small java program that can handle around 1 GB of text file if your RAM allows. Although I didn’t tested it much […]

, ,

Leave a comment

Showing JFrame at the Center of the Screen

The simplest way to get your java application JFrame to show at the center of the screen if you are using J2SE 1.4+, then you have access to the Window method: setLocationRelativeTo(Component c) For Example: Use can use null for the argument (in place of component arg) to center your top–level container or your JFrame […]

, ,

Leave a comment

Starting JavaDB (Derby) Network Server From Java Application

Generally for beginners making a project find it difficult to understand how to start the Java DB network server or shut it down right from their java code. There are two ways to do this as described in Derby documentation (http://db.apache.org/derby/docs/dev/adminguide/tadminconfig814963.html): You can use the NetworkServerControl API to start the Network Server from a separate […]

, , , , ,

4 Comments

Changing Background of JTree Nodes On Bringing Mouse Over Them

Here is a program which shows you how to change the background or foreground of a JTree node when cursor is brought over individual nodes. Originally posted by Craig Wood on coderanch.com and enhanced by me(Abhishek)

, , , ,

1 Comment