-
Insert archive parameter into HTML applet tag.
Under Linux:This code, named replace_applet.sh, adds a archive parameter (classes.jar) to all applet tags for *.htm files in a directory. ls *.htm | while read x do cat $x | sed -e ‘/<APPLET/ { s/<APPLET /<APPLET archive=”classes.jar”/}’ > $x.$$ cp $x.$$ $x rm $x.$$done
-
Insight wants to save you money
Insight wants to save you money by only raising your bill by $10 per month
-
Java: Preventing a child window’s close operation from exiting the app.
I included a second JFrame in NetBeans, which I used as a child window. When the child window was closed, all windows were closed. I finally figured out that the default close operation needed to be either HIDE_ON_CLOSE or DISPOSE_ON_CLOSE. The default in Java is HIDE_ON_CLOSE, but in NetBeans is EXIT_ON_CLOSE. I first changed this…