Sriraman Srinivasan

Greenhorn
+ Follow
since Jul 08, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sriraman Srinivasan

Hi All,

I am trying to establish jdbc connection to MS-SQL server using jdbc with IPv6 format address. However I am getting the below errors.


However when using local host I am able to connect to the database. When tried establishing connection with oracle db using ipv6 address, I am success ful. Kindly help me out.

Database: Ms-SQL Server 2005 SP3 Express Edition
OS: Windows 7 64-bit OS
IP format: IPv6
Driver: jtds-1.2

Have also tried using the latest jar provided by microsoft. With that also I am getting some errors.
Have already tried setting the jvm parameters:
-Djava.net.preferIPv4Stack=false
-Djava.net.preferIPv6Addresses=true

Any help is highly appreciated

Thanks in advance.
There are two jvm parameters which can be used... -Djava.net.preferIPv4Stack=true and -Djava.net.preferIPv6Addresses=false
You can use componentResized method of Component Listener to know resizing of the component. In this method you can change the font and repaint the component.
11 years ago
Try using CardLayout. Google this and you should get your answer I believe.
11 years ago
Try using the below method...
public void doClick(int pressTime)


You can mention the time to be pressed in milliseconds.
11 years ago
Just like Rob had mentioned both have different purposes. Action listener is basically for button press action. JMenuItem being a subclass of Abstract button, you can consider it as a special type of button itself. So practically all actions which can take place in button will also occur in menu item.
11 years ago
@neha:



The only thing here I see is that setenabled is redundent since by default all component are enabled. Apart from this I dont see any other issues. Not sure why your combo is not editable.
11 years ago
@neha: May be if you could provide a snippet of your code, may be we will be able to tell whats wrong with that....
11 years ago
@Rob : Will surely take care of the code tags from next time. Thanks..
11 years ago
Hi,

I am not sure why you are getting the problem but when i tried it, i was able to get the screen as required.

11 years ago