Gursewak Singh

Ranch Hand
+ Follow
since Jan 09, 2011
Gursewak likes ...
Java
Merit badge: grant badges
For More
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
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Gursewak Singh

Hi All,
Greetings!

I have one database table having one column of type DateType.
I'm getting values for Date and time from a HTML page.

I want to add values to Database, I know to use setDate() function for Prepared Statemnt.
But I'm not clear for DateType field, As below:

prepState.setDate(3, Date.valueOf(aNewAppointment.getDateTime()));

But using the above statement i'm getting error "SEVERE: java.lang.IllegalArgumentException".
Anyone, Please help me on that. (Please find Table's Screenshot)

Thanks in Advance.
9 years ago
Hi All,

Greetings!
I have a class (Main Class), where I have menu Bar.
I want also have one other class (Say AddRecod), I want to add component of AddRecod class to the Menu Bar of main class.

Please fine the code given blow:

Main Class:



AddRecord Class:


Thanks in Advance,

Best Regards
Gursewak Singh.
10 years ago
Hello Everyone,
I want to create a installer for my application.
I am successfully using it.
But I have a problem to include image and other folder.

So if you have idea please help me,its urgent
Thanks
11 years ago
I have started using IzPack. And am successfully using it.
But there is one problem,I am not able to create shortcut using it.
I have studied the forms related to the problem.
I have Izpack's latest version.
I have put <native> tag,<resources>,shortcutSpec.xml.
But still it is not working.
Also I have added shortcut panel.
but installer that is created, doesn't show shortcut form while installation process.

given blow is my install.xml


<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>

<!--
A sample installation file.
Use it as a base for your own installers :-)

To compile it :
- go in the bin directory where you installed IzPack
- call "compile ../sample/install.xml -b ../sample"
-->

<installation version="1.0">

<!--
The info section.
The meaning of the tags should be natural ...
-->
<info>
<appname>Sample Installation</appname>
<appversion>1.4 beta 666</appversion>
<authors>
<author name="JPz" email="jpz@superman.org"/>
<author name="Hidden Man" email="hidden@hisdomain.com"/>
</authors>
<url>http://www.anotherworld-inspace-website.net/</url>;
</info>
<variables>
<variable name="desktopshortcutcheckboxenabled" value="true"/>
</variables>
<!--
The gui preferences indication.
Sets the installer window to 640x480. It will not be able to change the size.
-->
<guiprefs width="640" height="480" resizable="yes"/>

<!--
The locale section.
Asks here to include the English and French langpacks.
-->
<locale>
<langpack iso3="eng"/>
<langpack iso3="fra"/>
</locale>
<native type="izpack" name="ShellLink.dll"/>
<native type="izpack" name="ShellLink_x64.dll"/>


<!--
The resources section.
The ids must be these ones if you want to use the LicencePanel and/or the InfoPanel.
-->

<resources>
<res id="LicencePanel.licence" src="Licence.txt"/>
<res id="InfoPanel.info" src="Readme.txt"/>
<res id="shortcutSpec" src="shortcutSpec.xml" />
</resources>

<!--
The panels section.
We indicate here which panels we want to use. The order will be respected.
-->
<panels>
<panel classname="HelloPanel"/>
<panel classname="InfoPanel"/>
<panel classname="LicencePanel"/>
<panel classname="TargetPanel"/>
<panel classname="PacksPanel"/>
<panel classname="ShortcutPanel"/>
<panel classname="InstallPanel"/>
<panel classname="FinishPanel"/>
</panels>

<!--
The packs section.
We specify here our packs.
-->
<packs>
<pack name="Base" required="yes">
<description>The base files</description>
<file src="Readme.txt" targetdir="$INSTALL_PATH"/>
<file src="Licence.txt" targetdir="$INSTALL_PATH"/>
<file src="script.bat" targetdir="$INSTALL_PATH"/>

<parsable targetfile="$INSTALL_PATH/script.bat"/>

<!-- The file will be parsed -->
</pack>
<pack name="Docs" required="no">
<description>The documentation</description>
<file src="doc" targetdir="$INSTALL_PATH"/>
<!-- Reccursive adding -->
</pack>
<pack name="Sources" required="no">
<description>The sources</description>
<file src="src" targetdir="$INSTALL_PATH"/>
</pack>
</packs>

</installation>

this is shortcutspec.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

<shortcuts>

<programGroup defaultName="MyApp"
location="applications"/>
<shortcut
name="wekautils"
target="$INSTALL_PATH\src\com\myCompany\tools\install\listener\Issue_Tracker.jar"
description="Launch app"
workingDirectory="$INSTALL_PATH"
iconFile="$INSTALL_PATH\images\logo.ico"
initialState="normal"
programGroup="yes"
desktop="yes"
applications="no"
startMenu="no"
startup="no">

<createForPack name="Base"/>
</shortcut>

<shortcut
name="Documentation"
target="$INSTALL_PATH\doc\doc.txt"
description="Launch documentation"
initialState="normal"
programGroup="yes"
desktop="no"
applications="no"
startMenu="no"
startup="no">

<createForPack name="Base"/>
</shortcut>

</shortcuts>
11 years ago
Paul Sir,
I tried but still I am not able to do what I want.
I am not getting the flow.I have create .jnlp file.
and other html file but how to link them
11 years ago
Ok,Good(much for me :-)),
Sir,first tell me from where I can download JWS,
I have searched it,but Oracle official site don't show any download link rather then JRE and JDK.only documentation and user guide is available.
11 years ago
Robbins Sir,
One more this,IzPack only copies the file to the desired location.How it is installation?
And if we have to create a shortcut etc?
11 years ago
Paul Sir,your suggestion seems to be interesting.
I will Google it.
If you have experience of using JWS then help me(Why to ask Google :-) ).
Thanks.
11 years ago
Thank you Robbins :-),
Your link is quite helpful,I have created a installer using IzPack.
After reading some forms related to it I was able to create a Installer.
But if you have some experience in using this tool then please tell me where to put my source code files which I have to install.
Thanks again.
11 years ago
Hello Everyone,
I want to make a application in java which will have installation process.Means to say we click start button,select Drive,next,next etc
(Hope you all got my point,what I want to say).
So please help me.you are welcomed to give your suggestion.
Thanks & regards,
Gursewak Singh.
11 years ago
Hello Everyone,
I want to design a HTML page having little functioning with Javascript (simple calculator),that should be compatible with mobile platform.

So I want to know what additional is required to make such page.

Thanks.
11 years ago
code to insert image in DataBase
Table contain two column first is of BLOB type and second has integer type
This is my code

when i compile this p=code it show exception

unimplemented and unsupported conversion exception
this code runs pretty well on other computer
11 years ago
I have an iframe loaded inside a parent page - the iframe and parent page are on different domains.

Can my parent page detect, when the iframe src or url is changing? If Yes, How.??
11 years ago