Monday, March 19, 2012

Exception error: Limit of jInternal Frames in NetBeans

There is a limit of jInternal frames on a jDesktopPane?
YES there is a limit of jInternal frames i.e. 20
Means you can add only 20 jInternal Frames on a jDesktop Pane. If you exceed the limit
then you see an event error or Class defination not find like that error:

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: college/COLLEGE
at college.Login.Login(Login.java:257)
at college.Login.jButton1ActionPerformed(Login.java:221)
at college.Login.access$200(Login.java:25)
at college.Login$3.actionPerformed(Login.java:112)

Sunday, March 18, 2012

Dont Play with these...

Dont Play with IMOTIONS, TRUST, and FEELINGS of other PERSON........................​...

Sunday, March 11, 2012

Countdown timer for shutdown computer

Many a times people like to sleep on music, but the problem is that the comp will continue running the whole night. Here is how you can create a countdown timer to shutdown your comp in your specified time.

Go to run in start menu and input this command

shutdown -s -t 3600

this will create a countdown timer which will go off in 3600 seconds (1 Hour). you can replace the 3600 to any time limit you want the comp to shutdown ,but remember the time should always be expressed in seconds i.e if u want the comp to shutdown in Half an hour you have to write 1800 and so on...

If you are as lazy as me and don't want to input the command each time, then create a batch file or shortcut
Batch:
open a notepad and type

shutdown -s -t 3600

now in the files menu select "save as" and save this file as Activate.bat

Just double clicking this file will activate your timer

Shortcut:
On the desktop right click and create a new shortcut. in the location type

shutdown -s -t 3600
Give it any name like "Activate timer"
Again, double clicking this newly created shortcut will do the same.

FORCING THE SHUTDOWN:

another operator that you can use with this command is -f . this will force a shutdown on system. suppose you want the comp to shutdown as quickly as possible you can give command

shutdown -s -f -t 00

here we have used a -f operator and the delay is set to 0 seconds.

(as we are talking about quick shutdown, u can use command
c:windowssystem32tsshutdn.exe 00 /POWERDOWN /DELAY:00 also)

STOPPING THE TIMER:
Any time when you want to stop the running timer use a -a operator(standing for abort)

the command is

shutdown -a

You can use it in any way u prefer, like direct input in run (or command prompt) , create a .bat file or create a shortcut on desktop

SOME OTHER OPTIONS:

shutdown -r (restarting)
shutdown -r -t 3600 (timer for restarting in 1 hour)
shutdown -r -f -t 00 (quick reboot)

Monday, March 05, 2012

MCSL- 016 Assignment IGNOU 2012

This is not complete in a manner Please Complete it with Your Self. Thank You!!!!


Question 1
<html>
<frameset cols = "40%,15%,15%,15%,15%">
<frameset rows = "20%,80%">
<frame src = "">
<frame src = "">
</frameset>
<frame src = "">
<frame src = "">
<frameset rows = "20%,80%">
<frame src = "">
<frame src = "">
</frameset>
<frame src = "">
</frameset>
</html>


Question 2

<html>
<head>
<title>
GIVE FROM OWNSIDE
</title>
</head>
<body>
<form name="Tick">
 <input type="text" size="11" name="Clock">
</form>
<script type ="text/javascript">
function show(){
 var Digital=new Date()
 var hours=Digital.getHours()
 var minutes=Digital.getMinutes()
 var seconds=Digital.getSeconds()
 var dn="AM"
 if (hours>12){
 dn="PM"
 hours=hours-12
 }
 if (hours==0)
 hours=12
 if (minutes<=9)
 minutes="0"+minutes
 if (seconds<=9)
 seconds="0"+seconds
 document.Tick.Clock.value=hours+":"+minutes+":"
 +seconds+" "+dn
 setTimeout("show()",1000)
 }
 show()
</script>
</body>
</html> 


Question 3
<html>
 <head>
 <title>
 ROLLOVER EFFECT
 </title>
 </head>
 <body>
 <img name = "image" src = "1.png" onmouseover = "overfunction()" onmouseout = "outfunction()">
 <script type="text/vbscript">
 function overfunction()
 document.image.src = "2.png"
 end function
 function outfunction()
document.image.src = "1.png"
 end function
 </script>
 </body>
 </html>


Question 4

<html>
<head>
<title>
GIVE FROM OWNSIDE
</title>
</head>
<body>
<table border = "2" cellpadding = "10", cellspacing = "5" bgcolor = " GIVE FROM OWNSIDE">
<caption> STATUS GIVE FROM OWNSIDE</caption>
<tr>
<th>Train No.</th>
<th>Starting From</th>
<th>Destination</th>
<th>Departure Time</th>
<th>Arrival Time</th>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</body>
</html>
Note: Fill <td>anything you want </td> with the data


Question  5

<html>
 <head>
 <title>My Page</title>
 </head>
 <body>
 <form name="Tick">
 <input type="text" size="11" name="Clock">
</form>
<script type ="text/javascript">
function show(){
 var Digital=new Date()
 var hours=Digital.getHours()
 var minutes=Digital.getMinutes()
 var seconds=Digital.getSeconds()
 var dn="AM"
 if (hours>12){
 dn="PM"
 hours=hours-12
 }
 if (hours==0)
 hours=12
 if (minutes<=9)
 minutes="0"+minutes
 if (seconds<=9)
 seconds="0"+seconds
 document.Tick.Clock.value=hours+":"+minutes+":"
 +seconds+" "+dn
 setTimeout("show()",1000)
 }
 show()
</script>
<FORM NAME="nav"><DIV>
<SELECT NAME="SelectURL" onChange=
"document.location.href=
document.nav.SelectURL.options[document.nav.SelectURL.selectedIndex].value">
<OPTION VALUE="home.html"
SELECTED>Please select an item:
<OPTION VALUE="forms/">
Main page on HTML forms
<OPTION VALUE="choices.html">
Choices in HTML forms
<OPTION VALUE="tables.html">
Tables and forms
<OPTION VALUE="methods.html">
Form submission methods (GET and POST)
</SELECT><DIV>
</FORM>

<table border = "2" cellpadding = "10" cellspacing = "5">
<tr>
<td><h3>IMAGEs</h3>
<td><img src = "1.png">
<td><img src = "2.png">
</tr>
<tr>
<td><h3>AUDIO</h3>
<td colspan = "2"><audio controls="controls" height="50px" width="500px">
   <source src="song.mp3" type="audio/mpeg" />
   <source src="song.ogg" type="audio/ogg" />
 <embed height="50px" width="500px" src="song.mp3" />
 </audio>
</tr>
<tr>
<td><h3>ANIMATION</h3>
<td colspan = "2"><object type="application/x-shockwave-flash" data="ani.swf" height = "100" width = "500px">
                                                                                <param name="movie" value="ani.swf" />
                                                                </object>
</tr>
</table>
 </body>
 </html>

IF You have any problem than leave comment!!!!!!!!!