<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>JavaScript Feed - Programmer's Heaven</title>
    <link>http://www.programmersheaven.com/feed/Tag/1547/RSS.aspx</link>
    <description>Events at Programmer's Heaven related to JavaScript.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Wed, 19 Jun 2013 21:18:14 -0700</pubDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <item>
      <title>aglet + database mySql</title>
      <link>http://www.programmersheaven.com/mb/java/423602/423602/ReadMessage.aspx#423602</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/scy_sasuke/"&gt;scy_sasuke&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/423602/423602/ReadMessage.aspx#423602"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;hi all, iam developing mobile agent using aglet 2.0.2 and&lt;br /&gt;
mysql-connector-java-5.1.14 to connect database mysql.&lt;br /&gt;
i was create simple code to display some data from database.&lt;br /&gt;
then i compile it and its work, but when i running with tahiti server there&lt;br /&gt;
is error and no data display.&lt;br /&gt;
anyone know the problem??&lt;br /&gt;
NB : i try create with simple java program with this code is works fine.&lt;br /&gt;
&lt;br /&gt;
regards,&lt;br /&gt;
scifo&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;this is error message in console:&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
database failure: Communications link failure&lt;br /&gt;
&lt;br /&gt;
The last packet sent successfully to the server was 0 milliseconds ago. The&lt;br /&gt;
driv er has not received any packets from the server.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
here is the code :&lt;br /&gt;
&lt;br /&gt;
package examples.database;&lt;br /&gt;
&lt;br /&gt;
import com.ibm.aglet.*;&lt;br /&gt;
import java.io.*;&lt;br /&gt;
import java.util.*;&lt;br /&gt;
import java.net.*;&lt;br /&gt;
import java.sql.*;&lt;br /&gt;
&lt;br /&gt;
public class aglet_database extends Aglet {&lt;br /&gt;
&lt;br /&gt;
     private transient Timer timer = null;&lt;br /&gt;
&lt;br /&gt;
 public void onCreation(Object init) {&lt;br /&gt;
    log("Active"); setText("Master pencarian aktif");&lt;br /&gt;
    AgletID id = getAgletID();&lt;br /&gt;
   &lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
 public void run() {&lt;br /&gt;
    System.out.println("Tampil no pencarian");&lt;br /&gt;
    Connection conn = null;&lt;br /&gt;
    Statement st = null;&lt;br /&gt;
    ResultSet rs = null;&lt;br /&gt;
   &lt;br /&gt;
    try&lt;br /&gt;
    {&lt;br /&gt;
        Class.forName("com.mysql.jdbc.Driver");    // koneksi driver database&lt;br /&gt;
   &lt;br /&gt;
        conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/cobadb","root","scifoanggi"); // koneksi ke mySQL&lt;br /&gt;
        //st = this.conn.createStatement();&lt;br /&gt;
        //rset = st.executeQuery(sqlQuery);    // ekseskusi quey SQL&lt;br /&gt;
       &lt;br /&gt;
         // Statement SQL statik&lt;br /&gt;
            st = conn.createStatement();&lt;br /&gt;
           &lt;br /&gt;
            // Eksekusi SQL-statement untuk tabel "buku"&lt;br /&gt;
            rs = st.executeQuery("SELECT * FROM customer");&lt;br /&gt;
           &lt;br /&gt;
            // Ambil data result-set&lt;br /&gt;
            ResultSetMetaData rsmd = rs.getMetaData();&lt;br /&gt;
            int nColumn = rsmd.getColumnCount();&lt;br /&gt;
           &lt;br /&gt;
            // Tampilkan judul kolom&lt;br /&gt;
            for (int i = 1; i &amp;lt;= nColumn; i++) {&lt;br /&gt;
                System.out.print(rsmd.getColumnName(i) + " | ");&lt;br /&gt;
            }&lt;br /&gt;
            System.out.println("\n");&lt;br /&gt;
           &lt;br /&gt;
            // Tampilkan hasil query berupa data result-set dari tabel&lt;br /&gt;
            while (rs.next()) {&lt;br /&gt;
                System.out.println(rs.getString(1) + "\t" +&lt;br /&gt;
                        rs.getString(2) + "\t" +&lt;br /&gt;
                        rs.getInt(3) + "\t" +&lt;br /&gt;
                        rs.getString(4) + "\t" +&lt;br /&gt;
                        rs.getInt(5));&lt;br /&gt;
            }&lt;br /&gt;
       &lt;br /&gt;
    }&lt;br /&gt;
   &lt;br /&gt;
    catch (ClassNotFoundException e) {&lt;br /&gt;
        System.err.println("driver failure: " + e.getMessage());&lt;br /&gt;
    }&lt;br /&gt;
    catch (SQLException e)&lt;br /&gt;
    {&lt;br /&gt;
        System.err.println("database failure: "+ e.getMessage());&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    finally {&lt;br /&gt;
        try&lt;br /&gt;
        {    if (rs !=null) rs.close();    }&lt;br /&gt;
        catch (SQLException sqle) {}&lt;br /&gt;
&lt;br /&gt;
        try&lt;br /&gt;
        {   if (st != null ) st.close();    }&lt;br /&gt;
        catch (SQLException sqle) {}&lt;br /&gt;
       &lt;br /&gt;
        try&lt;br /&gt;
        {   if (conn != null ) conn.close();    }&lt;br /&gt;
        catch (SQLException sqle) {}&lt;br /&gt;
       &lt;br /&gt;
    }&lt;br /&gt;
   &lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
  public void onDisposing() {&lt;br /&gt;
    log("Disposing...");&lt;br /&gt;
    if (timer != null) {&lt;br /&gt;
      timer.cancel();&lt;br /&gt;
    }&lt;br /&gt;
    log("Bye bye agent search master!");&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  private void log(String message) {&lt;br /&gt;
    System.out.println("Status Agent Search Anak : " + message);&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/423602/423602/ReadMessage.aspx#423602</guid>
      <pubDate>Tue, 03 May 2011 03:40:07 -0700</pubDate>
    </item>
    <item>
      <title>Re: aglets</title>
      <link>http://www.programmersheaven.com/mb/java/423487/423540/ReadMessage.aspx#423540</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/scy_sasuke/"&gt;scy_sasuke&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/423487/423540/ReadMessage.aspx#423540"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;make sure that aglet is installed in your computer properly.&lt;br /&gt;
&lt;br /&gt;
go to dir which u want to compile:&lt;br /&gt;
cd c:\aglets\public\examples&lt;br /&gt;
&lt;br /&gt;
then type like this :&lt;br /&gt;
javac -classpath .;c:\aglets\lib\aglet.2.0.2.jar;c:\agelts\public sample\*.java&lt;br /&gt;
&lt;br /&gt;
NB :&lt;br /&gt;
c:\aglets\lib\aglet2.0.2.jar is directory aglet jar&lt;br /&gt;
c:\aglets\public sample\*.java is directory u want to compile with all file with extension .java will be compiled&lt;br /&gt;
&lt;br /&gt;
hope this helpfull.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/423487/423540/ReadMessage.aspx#423540</guid>
      <pubDate>Fri, 29 Apr 2011 17:57:28 -0700</pubDate>
    </item>
    <item>
      <title>Aglet examples.http.WebServerAglet not responding</title>
      <link>http://www.programmersheaven.com/mb/java/423020/423020/ReadMessage.aspx#423020</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/scy_sasuke/"&gt;scy_sasuke&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/423020/423020/ReadMessage.aspx#423020"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;I try to create aglet WebServerAglet in tahiti server aglet 2.5-alpha.&lt;br /&gt;
this aglet is example from package from aglet2.5-alpha.zip.&lt;br /&gt;
&lt;br /&gt;
it works to create,but when i try to acces it via browser(i use mozilla firefox) in &lt;a href="http://scy-pc:8000/aglets2.5-alpha/public/examples/http/index.html"&gt;http://scy-pc:8000/aglets2.5-alpha/public/examples/http/index.html&lt;/a&gt; it doesn't happen anything.&lt;br /&gt;
- scy-pc:8000 = host my tahiti and 8000 is port to acces it&lt;br /&gt;
- aglets2.5-alpha/public = directory example aglet &lt;br /&gt;
- http = properti from WebServerAglet&lt;br /&gt;
&lt;br /&gt;
actually, in browser should be some text.&lt;br /&gt;
&lt;br /&gt;
an error in tahiti console like this :&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;java.io.IOException: Unknown Content-Type:null&lt;br /&gt;
        at com.ibm.maf.atp.ConnectionHandler.handle(ConnectionHandler.java:332)&lt;br /&gt;
        at com.ibm.maf.atp.ConnectionHandler.run(ConnectionHandler.java:801)&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Can anyone know this problem?&lt;br /&gt;
thankyu very much&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/423020/423020/ReadMessage.aspx#423020</guid>
      <pubDate>Tue, 05 Apr 2011 03:28:12 -0700</pubDate>
    </item>
    <item>
      <title>Re: help on java aglets</title>
      <link>http://www.programmersheaven.com/mb/java/297347/423019/ReadMessage.aspx#423019</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/scy_sasuke/"&gt;scy_sasuke&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/297347/423019/ReadMessage.aspx#423019"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;extract your aglets.&lt;br /&gt;
open cmd then goto bin directory of your aglet.&lt;br /&gt;
then write &lt;strong&gt;ant&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
then write &lt;strong&gt;ant install-home&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
finally write &lt;strong&gt;agletsd&lt;/strong&gt; to run tahiti server.&lt;br /&gt;
&lt;br /&gt;
hopelly help you&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/297347/423019/ReadMessage.aspx#423019</guid>
      <pubDate>Tue, 05 Apr 2011 03:10:06 -0700</pubDate>
    </item>
    <item>
      <title>mouse coordinates from event</title>
      <link>http://www.programmersheaven.com/mb/ajax/421741/421741/ReadMessage.aspx#421741</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Josh+Code/"&gt;Josh Code&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/ajax/421741/421741/ReadMessage.aspx#421741"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/ajax/Board.aspx"&gt;AJAX&lt;/a&gt; forum.&lt;/p&gt;I want to get coordinates from an event object for drawing on an HTML 5 canvas element but am having lots of trouble.  I get the event object from the event attribute like this:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;canvas id="display" width="600" height="400"
 onmousedown="mouseDown(event)"
&amp;gt;
&amp;lt;/canvas&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
How do you get the x and y coordinates from an event object?  &lt;br /&gt;
&lt;br /&gt;
Below are some functions I tried to use.  getOffsetX, getOffsetY take an element in and are supposed to return the positions of them relative to the page but I'm not sure if they work.  The getXFromEvent and getYFromEvent are supposed to get the x and y coordinates from an event object.  They work somewhat.  The pixel coordinates I want to use when drawing on the canvas I'm calculating using getXFromEvent(event)-getOffsetX(canvasElement) and similar for the y.&lt;br /&gt;
&lt;pre class="sourcecode"&gt; 
function getOffsetX( el ) 
{
    var _x = 0;
    while( el &amp;amp;&amp;amp; !isNaN( el.offsetLeft ) ) 
    {
        _x += el.offsetLeft - el.scrollLeft;
        el = el.parentNode;
    }
    return _x;
}

function getOffsetY( el ) {
 try
 {
    var _y = 0;
    while( el &amp;amp;&amp;amp; !isNaN( el.offsetTop ) ) 
    {
        _y += el.offsetTop - el.scrollTop;
        el = el.parentNode;
    }
    return _y;
 }
 catch (exc)
 {
   alert("sideMenu.js, getOffsetY problem, "+exc);
   return 0;
 }
}

function getXFromEvent(e)
{
 var x=0;

  if (e.pageX)
     x=e.pageX;

  return x;  
}

function getYFromEvent(e)
{
 var y=0;

  if (e.pageY)
     y=e.pageY;

  return y;  
}
&lt;/pre&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ajax/421741/421741/ReadMessage.aspx#421741</guid>
      <pubDate>Mon, 14 Feb 2011 11:53:12 -0700</pubDate>
    </item>
    <item>
      <title>Request Advice for a program Java+ Apache</title>
      <link>http://www.programmersheaven.com/mb/java/421623/421623/ReadMessage.aspx#421623</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/ferdinandng/"&gt;ferdinandng&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/421623/421623/ReadMessage.aspx#421623"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;Dear All,&lt;br /&gt;
&lt;br /&gt;
I have to implement a "real time" system on Unix machine to analysis from real time data and present it in a graphic user interface.&lt;br /&gt;
&lt;br /&gt;
Currently I am thinking of Java due to its platform independent capacbility compare to C++, and the GUI I am thinking of using the web service such as Apache.&lt;br /&gt;
&lt;br /&gt;
Since I havn't develop anything in Apache before, I am worried that the display of data in graph in apache would not suitable for the real time services?&lt;br /&gt;
&lt;br /&gt;
I therefore request your advices on if Apache should be the way to go or there are other new technology around for web kind of display (for the easiest for maintance) but specifically tailor for real time display?&lt;br /&gt;
&lt;br /&gt;
Thank you very much&lt;br /&gt;
Ferdinand Ng</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/421623/421623/ReadMessage.aspx#421623</guid>
      <pubDate>Wed, 09 Feb 2011 20:46:14 -0700</pubDate>
    </item>
    <item>
      <title>Re: Using XML in Java</title>
      <link>http://www.programmersheaven.com/mb/java/420529/420608/ReadMessage.aspx#420608</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Josh+Code/"&gt;Josh Code&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/420529/420608/ReadMessage.aspx#420608"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;Look at this:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.java-tips.org/java-se-tips/javax.xml.parsers/how-to-read-xml-file-in-java.html"&gt;http://www.java-tips.org/java-se-tips/javax.xml.parsers/how-to-read-xml-file-in-java.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/420529/420608/ReadMessage.aspx#420608</guid>
      <pubDate>Wed, 29 Dec 2010 19:20:01 -0700</pubDate>
    </item>
    <item>
      <title>combine int and string</title>
      <link>http://www.programmersheaven.com/mb/java/420119/420119/ReadMessage.aspx#420119</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/dinga94/"&gt;dinga94&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/420119/420119/ReadMessage.aspx#420119"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;hi all,&lt;br /&gt;
using netbeans with mySQL. how can i cobime data from two tables to get and entry on third column eg&lt;br /&gt;
table one called patients has &lt;br /&gt;
IDint(auto primary),patient_name(string),patient_numb(string).&lt;br /&gt;
on my GUI&lt;br /&gt;
enter name eg smith&lt;br /&gt;
i want this to be generated Smi-0001 &lt;br /&gt;
0001 being the IDint&lt;br /&gt;
i can achieve this in eclipse but don't know how to go about it in netbeans environment; if u run this u c what i mean ...&lt;br /&gt;
package utils;&lt;br /&gt;
&lt;br /&gt;
 import java.awt.Container;&lt;br /&gt;
&lt;br /&gt;
import javax.swing.*;&lt;br /&gt;
import java.awt.event.*;&lt;br /&gt;
import java.text.DecimalFormat; &lt;br /&gt;
&lt;br /&gt;
public class CombineFields extends JFrame implements ActionListener{&lt;br /&gt;
	&lt;br /&gt;
	private static final long serialVersionUID = 1L;&lt;br /&gt;
	&lt;br /&gt;
	private JTextField txtRegion,txtId_number,txtResult ;&lt;br /&gt;
	private JLabel lblRegion, lblId_number, lblResult;&lt;br /&gt;
	String reg, id ,temp_reg, temp_result, dash = "-" ;&lt;br /&gt;
	double temp_id, to_deci = 0.00001;&lt;br /&gt;
		&lt;br /&gt;
	public CombineFields(){&lt;br /&gt;
		&lt;br /&gt;
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&lt;br /&gt;
		this.setTitle("Generate work number");&lt;br /&gt;
		&lt;br /&gt;
		Container cont = getContentPane();&lt;br /&gt;
		cont.setLayout(null);&lt;br /&gt;
		&lt;br /&gt;
		lblRegion = new JLabel("Region: ",SwingConstants.RIGHT);&lt;br /&gt;
		lblId_number = new JLabel("Id Numb: ",SwingConstants.RIGHT);&lt;br /&gt;
		lblResult = new JLabel("WorkNumb: ",SwingConstants.RIGHT);&lt;br /&gt;
				&lt;br /&gt;
		txtRegion = new JTextField();&lt;br /&gt;
		txtId_number = new JTextField();&lt;br /&gt;
		txtResult = new JTextField();&lt;br /&gt;
				&lt;br /&gt;
		txtResult.setEditable(false);&lt;br /&gt;
		&lt;br /&gt;
				&lt;br /&gt;
		cont.add(lblRegion);&lt;br /&gt;
		cont.add(txtRegion);&lt;br /&gt;
		cont.add(lblId_number);&lt;br /&gt;
		cont.add(txtId_number);&lt;br /&gt;
		cont.add(lblResult);&lt;br /&gt;
		cont.add(txtResult);&lt;br /&gt;
				&lt;br /&gt;
		txtId_number.addActionListener(this);&lt;br /&gt;
				&lt;br /&gt;
		lblRegion.setBounds(10,40,90,25);&lt;br /&gt;
		txtRegion.setBounds(100,40,90,25);&lt;br /&gt;
		lblId_number.setBounds(10,80,90,25);&lt;br /&gt;
		txtId_number.setBounds(100,80,90,25);&lt;br /&gt;
		lblResult.setBounds(10,120,90,25);&lt;br /&gt;
		txtResult.setBounds(100,120,90,25);&lt;br /&gt;
						&lt;br /&gt;
		setSize(300,350);&lt;br /&gt;
		setVisible(true);&lt;br /&gt;
					&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	public void actionPerformed(ActionEvent event){&lt;br /&gt;
		&lt;br /&gt;
		 DecimalFormat precision = new DecimalFormat( "0.00000" );&lt;br /&gt;
		  &lt;br /&gt;
		 reg = txtRegion.getText();&lt;br /&gt;
		 temp_reg = reg.substring(0,3);&lt;br /&gt;
		 temp_reg = temp_reg.concat(dash);&lt;br /&gt;
		 &lt;br /&gt;
		 id = txtId_number.getText();&lt;br /&gt;
		 temp_id = Integer.parseInt(id);&lt;br /&gt;
		 &lt;br /&gt;
		 to_deci = to_deci * temp_id;&lt;br /&gt;
		 String shortString = (precision.format(to_deci));&lt;br /&gt;
		 temp_result = shortString.substring(2);&lt;br /&gt;
		 temp_reg = temp_reg.concat(temp_result);&lt;br /&gt;
		 txtResult.setText(temp_reg);&lt;br /&gt;
		 			&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	public static void main(String args[]){&lt;br /&gt;
	&lt;br /&gt;
		new CombineFields();&lt;br /&gt;
		&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
} &lt;br /&gt;
&lt;br /&gt;
any help pls.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/420119/420119/ReadMessage.aspx#420119</guid>
      <pubDate>Tue, 07 Dec 2010 02:09:44 -0700</pubDate>
    </item>
    <item>
      <title>Applet Help</title>
      <link>http://www.programmersheaven.com/mb/java/420054/420054/ReadMessage.aspx#420054</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/bogdanul2003/"&gt;bogdanul2003&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/420054/420054/ReadMessage.aspx#420054"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;I made an applet that works fine when ran from HTML&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Body&amp;gt;&lt;br /&gt;
&amp;lt;Applet code="Simple.class" width=800 Height=100&amp;gt;&lt;br /&gt;
&amp;lt;/Applet&amp;gt;&lt;br /&gt;
&amp;lt;/Body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
after this I executed "jar cvf simple.jar simple.class" but this time I can't get it to run from HTML&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Body&amp;gt;&lt;br /&gt;
&amp;lt;Applet CODE="Simple.class"&lt;br /&gt;
  ARCHIVE = "Simple.jar" width=800 Height=100&amp;gt;&lt;br /&gt;
&amp;lt;/Applet&amp;gt;&lt;br /&gt;
&amp;lt;/Body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Can you tell me what I did wrong ?</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/420054/420054/ReadMessage.aspx#420054</guid>
      <pubDate>Fri, 03 Dec 2010 15:25:20 -0700</pubDate>
    </item>
    <item>
      <title>calling windows api from java applet</title>
      <link>http://www.programmersheaven.com/mb/java/419949/419949/ReadMessage.aspx#419949</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/bogdanul2003/"&gt;bogdanul2003&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/419949/419949/ReadMessage.aspx#419949"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;I am trying to call some widows APIs from a browser java applet but I can't figure out how to do this. First of all I want to know if it is possible to call windows APIs and second if there is something easier then JNI to do this ?&lt;br /&gt;
&lt;br /&gt;
10x</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/419949/419949/ReadMessage.aspx#419949</guid>
      <pubDate>Fri, 26 Nov 2010 15:58:43 -0700</pubDate>
    </item>
    <item>
      <title>Re: send information from applet to server</title>
      <link>http://www.programmersheaven.com/mb/java/419163/419824/ReadMessage.aspx#419824</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Josh+Code/"&gt;Josh Code&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/419163/419824/ReadMessage.aspx#419824"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;Crucial to solving your problem is starting out with the ability to write server side scripts that can get work down on the back end.  If you don't have these skills, I doubt there exists any solution to your problem.&lt;br /&gt;
&lt;br /&gt;
Another idea that is simpler than the file upload is to represent the image as vector data.  If you collect the data on the server in a database, you could use small requests to just update the server on actions performed by the user.  By keeping the messages small, you can pack the information into parameters of a GET request.&lt;br /&gt;
&lt;br /&gt;
When you need to rasterize the image, you could use some server side image drawing routines like PHP's GD and image functions.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/419163/419824/ReadMessage.aspx#419824</guid>
      <pubDate>Sat, 20 Nov 2010 17:39:16 -0700</pubDate>
    </item>
    <item>
      <title>ASP.NET Site Performance Secrets</title>
      <link>http://www.programmersheaven.com/book/937-ASP.NET+Site+Performance+Secrets/info.aspx</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Duanesm/"&gt;Duanesm&lt;/a&gt; submitted a new &lt;a href="http://www.programmersheaven.com/book/937-ASP.NET+Site+Performance+Secrets/info.aspx"&gt;book&lt;/a&gt;.&lt;/p&gt;This book starts with introducing the reader to techniques for diagnosing performance issues using Waterfall charts, and this is followed with subsequent chapters focusing on each aspect of a website. Finally the book concludes with effectively load-testing an environment in order to measure the change in performance.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/book/937-ASP.NET+Site+Performance+Secrets/info.aspx</guid>
      <pubDate>Fri, 19 Nov 2010 04:22:11 -0700</pubDate>
    </item>
    <item>
      <title>Re: send information from applet to server</title>
      <link>http://www.programmersheaven.com/mb/java/419163/419522/ReadMessage.aspx#419522</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Josh+Code/"&gt;Josh Code&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/419163/419522/ReadMessage.aspx#419522"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;I have an idea that I'm confident would work but it is a bit complicated.  I'll explain the idea here:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Get the server to handle a file upload.&lt;br /&gt;
&lt;/strong&gt;&lt;br /&gt;
Set up a server side script on the server.  How you do this will depend on the server supporting server-side technology like PHP or something else.  If you are familiar with handling a file upload using PHP, that is basically all you'd need.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Get the applet to send the image data as a file upload&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Any applet can send HTTP requests to the server as long as it is the same domain that the applet is in.  For example, the applet at &lt;a href="http://example.com/applet.html"&gt;http://example.com/applet.html&lt;/a&gt; can send requests to example.com but it can't send to example2.com due to security limitations.&lt;br /&gt;
&lt;br /&gt;
The java.net.URL class can be used for sending GET-method requests but for simulating a file upload, you'll have to use POST.  To do that, you can use java.io.Socket to connect with the server and implement the HTTP request yourself.  The request header can be quite simple like:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
POST /imageuploadhandler.php HTTP/1.1
Encoding: multipart/form-data

&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
The body of the request would have to be encoded in a special format using parameters handled by your imageuploadhandler script.  I made a web server a while ago with file upload support but can't remember all the formatting rules for multipart/form-data.  I remember each parameter being split into multiple properties.  The file contents is given with a marker at the beginning and marker at the end.  The file size, file name are all separated.  If you are serious about this, I suggest using Wireshark to take a look at messages from regular web browser file uploads so you can see how to replicate them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This might be a similar implementation of a similar idea that could avoid the complicated steps above:&lt;br /&gt;
&lt;a href="http://www.javaatwork.com/"&gt;javaatwork&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/419163/419522/ReadMessage.aspx#419522</guid>
      <pubDate>Wed, 03 Nov 2010 23:06:44 -0700</pubDate>
    </item>
    <item>
      <title>Re: Largest number of integers in a row within an array</title>
      <link>http://www.programmersheaven.com/mb/java/419312/419510/ReadMessage.aspx#419510</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Josh+Code/"&gt;Josh Code&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/419312/419510/ReadMessage.aspx#419510"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;That problem is closely related to finding the maximum number within an array.  It can be done sequentially in O(n) time where n is proportional to length of array.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This method wasn't tested by compiling and running but it might work and is definitely close to what you want:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
int getLengthOfMaximumSequenceOfZeros(int a[])
{

int maxLen=0;
int curLen=0;

// loop through all elements in the array.
for (int i=0;i&amp;lt;a.length;i++)
{
  if (a[i]==0)
  {
     curLen++; // sequence is getting longer by 1.
  }
  else // restarting new sequence of zeros
  {
    // if the sequence ending is longer, remember its length.
    if (curLen&amp;gt;maxLen) 
       maxLen = curLen;

    curLen=0; // current sequence has length 0 again.
  }
}
// if longest sequence goes right to the end of array
if (curLen&amp;gt;maxLen) 
   maxLen = curLen;

return maxLen;
}
&lt;/pre&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/419312/419510/ReadMessage.aspx#419510</guid>
      <pubDate>Wed, 03 Nov 2010 13:44:49 -0700</pubDate>
    </item>
    <item>
      <title>Re: Cannot compile Java application</title>
      <link>http://www.programmersheaven.com/mb/java/419436/419508/ReadMessage.aspx#419508</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Josh+Code/"&gt;Josh Code&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/419436/419508/ReadMessage.aspx#419508"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;Your file is in a package named sarf.ui and this will affect the kind of compiling command you have to use and where to store your file.&lt;br /&gt;
&lt;br /&gt;
Make a file directory structure like this for your code:&lt;br /&gt;
sarf&lt;br /&gt;
 - ui&lt;br /&gt;
 -   - MainApp.java&lt;br /&gt;
&lt;br /&gt;
In other words, make directory sarf.  make a directory ui to go within sarf.  make file MainApp.java to go within ui.&lt;br /&gt;
&lt;br /&gt;
Your MainApp.java had some undeclared variables like frame and screensize so it was updated to work.  Here is the contents of MainApp.java:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
package sarf.ui;

import java.awt.Toolkit;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import java.awt.Dimension;
import javax.swing.plaf.metal.MetalLookAndFeel;
import javax.swing.JOptionPane;
import javax.swing.JFrame;

/**
 *

Title:

 *
 *

Description:

 *
 *

Copyright: Copyright (c) 2006

 *
 *

Company:

 *
 * @author not attributable
 * @version 1.0
 */
public class MainApp {
    boolean packFrame = false;
  JFrame frame;

    /**
     * Construct and show the application.
     */
    public MainApp() {
        // create the frame.
        frame = new JFrame("The Window");
        frame.setSize(400,400);
        Toolkit toolkit = Toolkit.getDefaultToolkit();
        Dimension screenSize = toolkit.getScreenSize(); 
       
        // Center the window


        Dimension frameSize = frame.getSize();
        if (frameSize.height &amp;gt; screenSize.height) {
            frameSize.height = screenSize.height;
        }
        if (frameSize.width &amp;gt; screenSize.width) {
            frameSize.width = screenSize.width;
        }
        frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
        frame.setVisible(true);
    }

    /**
     * Application entry point.
     *
     * @param args String[]
     */
    public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                try {
                    //MetalLookAndFeel.setCurrentTheme(new javax.swing.plaf.metal.OceanTheme());
                    UIManager.setLookAndFeel(MetalLookAndFeel.class.getName());
                }
                catch (Exception exception) {
                    exception.printStackTrace();
                }

                new MainApp();
            }
        });
    }
}
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
To compile that from command line, go to the directory above sarf, the root directory of your code.  From there, use this command:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
javac sarf/ui/*.java
&lt;/pre&gt; &lt;br /&gt;
&lt;br /&gt;
To run the resulting .class file, execute from the same directory as compilation, the following command:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
java sarf.ui.MainApp
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Without the line "package sarf.ui;" in your code, there would be no need to worry about the directory structure.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/419436/419508/ReadMessage.aspx#419508</guid>
      <pubDate>Wed, 03 Nov 2010 13:33:28 -0700</pubDate>
    </item>
    <item>
      <title>Learning Ext JS 3.2</title>
      <link>http://www.programmersheaven.com/book/933-Learning+Ext+JS+3.2/info.aspx</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Duanesm/"&gt;Duanesm&lt;/a&gt; submitted a new &lt;a href="http://www.programmersheaven.com/book/933-Learning+Ext+JS+3.2/info.aspx"&gt;book&lt;/a&gt;.&lt;/p&gt;This book helps users to integrate their existing data and web services with data-driven web applications using the Ext JS framework. This interactive tutorial will help developers to enhance their JavaScript skills by using Ext's DOM and AJAX helpers, and extending Ext JS through custom components. Using this book, users will be able to build great-looking and friendly forms by using client and server-side field validation, form loading, submission, field customization, and layout techniques. Users will learn to create bar charts, linear charts, and pie charts using the chart widget to display information in a simple way. They will be able to create their own custom library extensions, and by using theming support, will be able to change the visual style of Ext JS.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/book/933-Learning+Ext+JS+3.2/info.aspx</guid>
      <pubDate>Tue, 19 Oct 2010 23:24:34 -0700</pubDate>
    </item>
    <item>
      <title>Re: Making a Java Application Into An Executable File</title>
      <link>http://www.programmersheaven.com/mb/java/418850/419153/ReadMessage.aspx#419153</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Josh+Code/"&gt;Josh Code&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/418850/419153/ReadMessage.aspx#419153"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;You could also try &lt;a href="http://gcc.gnu.org/java/"&gt;GCJ (GNU Compiler for Java)&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
It is designed to compile native executable code from Java.  It doesn't work perfectly all the time but it is worth a try.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/418850/419153/ReadMessage.aspx#419153</guid>
      <pubDate>Fri, 15 Oct 2010 17:09:17 -0700</pubDate>
    </item>
    <item>
      <title>Re: need the attention of a java programmer..</title>
      <link>http://www.programmersheaven.com/mb/java/419017/419152/ReadMessage.aspx#419152</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Josh+Code/"&gt;Josh Code&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/419017/419152/ReadMessage.aspx#419152"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;&lt;pre class="sourcecode"&gt;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class tank extends JApplet implements KeyListener
{
int x,y;
int enemies,hits;
private Color TANK_COLOR = new Color(0,100,0);

public void init()
{
  x=100;
  y=100;
  enemies=10;
  hits=0;
  resize(500,500);

  addKeyListener(this);
}

private void drawBackground(Graphics c)
{
  c.setColor(Color.yellow);
  c.fillRect(0,0,getWidth(),getHeight());
}

private void drawTank(Graphics c)
{
  c.setColor(TANK_COLOR);
  c.fillRect(x,y,10,10);
}

public void paint(Graphics c)
{
  drawBackground(c);
  drawTank(c);

  c.setColor(Color.BLACK);
  c.drawString("ENEMIES : " + enemies,50,30);
  c.drawString("HITS : " + hits,375,30);
}

private void moveDown()
{
  y+=10;
}

private void moveUp()
{
  y-=10;
}

private void moveLeft()
{
  x-=10;
}

private void moveRight()
{
  x+=10;
}

public void keyTyped(KeyEvent ev){}
public void keyReleased(KeyEvent ev){}
public void keyPressed(KeyEvent ev)
{
 int code = ev.getKeyCode();

  switch (code)
  {
    case 38: // up arrow
       moveUp();
       break;
    case 40: // down arrow
       moveDown();
       break;
    case 39: // right arrow
       moveRight();
       break;
    case 37: // left arrow
       moveLeft();
       break;
  }
  repaint();
}
}
&lt;/pre&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/419017/419152/ReadMessage.aspx#419152</guid>
      <pubDate>Fri, 15 Oct 2010 16:52:35 -0700</pubDate>
    </item>
    <item>
      <title>Re: How to make JApplet run as application using JFrame?</title>
      <link>http://www.programmersheaven.com/mb/java/418959/419151/ReadMessage.aspx#419151</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Josh+Code/"&gt;Josh Code&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/418959/419151/ReadMessage.aspx#419151"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;That exception shows a stack starting with getDocumentBase().&lt;br /&gt;
&lt;br /&gt;
I'm not sure how you'd get your audio clips playing in a desktop application but you can just eliminate that for the time being.&lt;br /&gt;
&lt;br /&gt;
To eliminate the sound, this code should go:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
     soundFile[1] = getAudioClip(getDocumentBase(),"sound1.au"); 
     soundFile[2] = getAudioClip(getDocumentBase(),"claves.wav")
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Any references to soundFile should be commented out or removed.  Any calls to getDocumentBase() should be eliminated because that method is not appropriate for a desktop application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/418959/419151/ReadMessage.aspx#419151</guid>
      <pubDate>Fri, 15 Oct 2010 15:54:43 -0700</pubDate>
    </item>
    <item>
      <title>Move cursor in a textarea</title>
      <link>http://www.programmersheaven.com/mb/java-script/419042/419042/ReadMessage.aspx#419042</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/MFH/"&gt;MFH&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java-script/419042/419042/ReadMessage.aspx#419042"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java-script/Board.aspx"&gt;JavaScript&lt;/a&gt; forum.&lt;/p&gt;Hi everybody,&lt;br /&gt;
does anyone know how to place the cursor in a precise position of the text in a textarea?</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java-script/419042/419042/ReadMessage.aspx#419042</guid>
      <pubDate>Sun, 10 Oct 2010 08:30:16 -0700</pubDate>
    </item>
    <item>
      <title>Manipulate the value of an input box based on whether a checkbox</title>
      <link>http://www.programmersheaven.com/mb/java-script/418973/418973/ReadMessage.aspx#418973</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/chineerat/"&gt;chineerat&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java-script/418973/418973/ReadMessage.aspx#418973"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java-script/Board.aspx"&gt;JavaScript&lt;/a&gt; forum.&lt;/p&gt;Hi!&lt;br /&gt;
&lt;br /&gt;
I am trying to manipulate the value of an input box based on whether a checkbox is checked or not.&lt;br /&gt;
example &lt;br /&gt;
checked  input = 1600 and enabled&lt;br /&gt;
unchecked  input = 0 and disabled&lt;br /&gt;
&lt;br /&gt;
I am having 2 problems:&lt;br /&gt;
1) When the page is loaded I get unchecked and input = 1600: it should be : either &lt;br /&gt;
checked  input = 1600 and enabled&lt;br /&gt;
or &lt;br /&gt;
unchecked  input = 0 and disabled&lt;br /&gt;
&lt;br /&gt;
2) When the checkbox is checked for the 2nd time the input remains 0  it should go back to the initial value 1600&lt;br /&gt;
&lt;br /&gt;
can anyone help me?&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;script language="JavaScript"&amp;gt;
&amp;lt;!--
function enable_text(status)
{
if (status== true){
var var_gate_request_original = document.f1.GateRequest0.value ; 

document.f1.GateRequest0.disabled =false;
document.f1.GateRequest0.value = var_gate_request_original ;
}

if (status== false){

var var_gate_request_original = document.f1.GateRequest0.value ; 
var var_gate_request_zero = 0 ;
	
document.f1.GateRequest0.value = var_gate_request_zero;
document.f1.GateRequest0.disabled =true;
}


}
//--&amp;gt;
&amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;&amp;lt;form  name=f1  method='post'&amp;gt;
&amp;lt;table width="200" border="1"&amp;gt;
  &amp;lt;tr&amp;gt;
    &amp;lt;td&amp;gt;&amp;lt;input name="R1" type="checkbox" value=""  onclick='enable_text(this.checked)'/&amp;gt;&amp;lt;/td&amp;gt;
    &amp;lt;td&amp;gt;&amp;lt;input name="GateRequest0" type="text" value="1600" /&amp;gt;&amp;lt;/td&amp;gt;
  &amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;
&amp;lt;/form&amp;gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java-script/418973/418973/ReadMessage.aspx#418973</guid>
      <pubDate>Wed, 06 Oct 2010 00:26:29 -0700</pubDate>
    </item>
    <item>
      <title>Re: How to make JApplet run as application using JFrame?</title>
      <link>http://www.programmersheaven.com/mb/java/418959/418966/ReadMessage.aspx#418966</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Josh+Code/"&gt;Josh Code&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/418959/418966/ReadMessage.aspx#418966"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;How do you know it doesn't run?&lt;br /&gt;
&lt;br /&gt;
What error messages do you get if any?  Copy them directly.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/418959/418966/ReadMessage.aspx#418966</guid>
      <pubDate>Tue, 05 Oct 2010 17:36:58 -0700</pubDate>
    </item>
    <item>
      <title>WordPress 3.0 jQuery</title>
      <link>http://www.programmersheaven.com/book/928-WordPress+3.0+jQuery/info.aspx</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Duanesm/"&gt;Duanesm&lt;/a&gt; submitted a new &lt;a href="http://www.programmersheaven.com/book/928-WordPress+3.0+jQuery/info.aspx"&gt;book&lt;/a&gt;.&lt;/p&gt;WordPress 3.0 jQuery covers the best practices for jQuery within WordPress development, some of which include setting up a WordPress sandbox, enhancement tips and suggestions, coding, testing and debugging. It helps developers create advanced animations using the UI plugin  to their advantage within WordPress and create custom jQuery plugins for their website.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/book/928-WordPress+3.0+jQuery/info.aspx</guid>
      <pubDate>Tue, 05 Oct 2010 04:31:16 -0700</pubDate>
    </item>
    <item>
      <title>Re: pretty simple javascript question</title>
      <link>http://www.programmersheaven.com/mb/java/418521/418926/ReadMessage.aspx#418926</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Beekman/"&gt;Beekman&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/418521/418926/ReadMessage.aspx#418926"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;I dont't exactly what all this code should do, but you try to set the font size using 'FontSize:', tha probably should be 'font-size:'&lt;br /&gt;
&lt;br /&gt;
I think&lt;br /&gt;
function putspan(backcolor, forecolor) {&lt;br /&gt;
document.write("&amp;lt;span id='cntdwn' style='background-color:" + backcolor +&lt;br /&gt;
"; color:" + forecolor +"; FontSize:" + (6) +"'&amp;gt;&amp;lt;/span&amp;gt;");&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
should be something like&lt;br /&gt;
&lt;br /&gt;
function putspan(backcolor, forecolor) {&lt;br /&gt;
document.write("&amp;lt;span id='cntdwn' style='background-color:" + backcolor +&lt;br /&gt;
"; color:" + forecolor +"; font-size:" + FontSize +"pt'&amp;gt;&amp;lt;/span&amp;gt;");&lt;br /&gt;
}</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/418521/418926/ReadMessage.aspx#418926</guid>
      <pubDate>Sat, 02 Oct 2010 00:42:10 -0700</pubDate>
    </item>
    <item>
      <title>Re: Making a Java Application Into An Executable File</title>
      <link>http://www.programmersheaven.com/mb/java/418850/418925/ReadMessage.aspx#418925</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Beekman/"&gt;Beekman&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/418850/418925/ReadMessage.aspx#418925"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;You can't really make an exe from a java program, because it has to run in the Virutal Machine.&lt;br /&gt;
&lt;br /&gt;
The closest you can come to an executable program is an executable jar file. But if you want to run the jar on a different computer, a Java Virtual Machine must be running. If it's not, it should be installed before you can run your jar.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/418850/418925/ReadMessage.aspx#418925</guid>
      <pubDate>Sat, 02 Oct 2010 00:33:54 -0700</pubDate>
    </item>
    <item>
      <title>Re: Random images and links in a table - HELP!</title>
      <link>http://www.programmersheaven.com/mb/java-script/418794/418892/ReadMessage.aspx#418892</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Josh+Code/"&gt;Josh Code&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java-script/418794/418892/ReadMessage.aspx#418892"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java-script/Board.aspx"&gt;JavaScript&lt;/a&gt; forum.&lt;/p&gt;I'm not sure what you meant by clicking to a URL.  Assuming you want clicking to randomly select a new image, this is what you want.  If you want a caption and web document url associated with each image, that be done easily enough but it isn't done in the example below.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&amp;gt;
&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body onload="initImages()"&amp;gt;
&amp;lt;style type='text/css'&amp;gt;

&amp;lt;/style&amp;gt;
&amp;lt;script language="JavaScript" type="text/javascript"&amp;gt;&amp;lt;!--

// constructor
function CaptionedImage(url,caption)
{
  this.url = url;
  this.caption = caption;
}

var image = new Array();
image[0] = new CaptionedImage('https://www.kqimageserver.com/pwimages/new/testimages/random1.jpg',"Pic 1 caption");
image[1] = new CaptionedImage('https://www.kqimageserver.com/pwimages/new/testimages/random2.jpg',"Pic 2 caption");
image[2] = new CaptionedImage('https://www.kqimageserver.com/pwimages/new/testimages/random3.jpg',"Pic 3 caption");
image[3] = new CaptionedImage('https://www.kqimageserver.com/pwimages/new/testimages/random4.jpg',"Pic 4 caption");
image[4] = new CaptionedImage('https://www.kqimageserver.com/pwimages/new/testimages/random5.jpg',"Pic 5 caption");
image[5] = new CaptionedImage('https://www.kqimageserver.com/pwimages/new/testimages/random6.jpg',"Pic 6 caption");
image[6] = new CaptionedImage('https://www.kqimageserver.com/pwimages/new/testimages/random.jpg',"Pic 7 caption");
image[7] = new CaptionedImage('https://www.kqimageserver.com/pwimages/new/testimages/random7.jpg',"Pic 8 caption");
image[8] = new CaptionedImage('https://www.kqimageserver.com/pwimages/new/testimages/random8.jpg',"Pic 9 caption");
image[9] = new CaptionedImage('https://www.kqimageserver.com/pwimages/new/testimages/random9.jpg',"Pic 10 caption");
image[10] = new CaptionedImage('https://www.kqimageserver.com/pwimages/new/testimages/random10.jpg',"Pic 11 caption");



CaptionedImage.prototype.getAsElement = function(idVal)
{
 var div = document.createElement("div");
 var img = document.createElement("img");
  img.setAttribute("src",this.url);
  img.setAttribute("alt",this.caption);
  img.setAttribute("title",this.caption);
  div.appendChild(img);
  div.appendChild(document.createElement("br"));
 var caption=document.createElement("span");
  caption.appendChild(document.createTextNode(this.caption));

  div.appendChild(caption);

  img.onclick=Function("imageClicked('"+idVal+"')");

 div.setAttribute("id",idVal);
 div.id=idVal;

 return div;
}

function initImages()
{
 var tr=document.getElementById("images");

  // loop through images.
  for (var i=0;i&amp;lt;4;i++)
  {
    var td=document.createElement("td");
    var random_index = Math.floor(Math.random()*image.length);
     td.appendChild(image[random_index].getAsElement("image_"+i));

    tr.appendChild(td);
  }
}

function imageClicked(id)
{
 var div=document.getElementById(id);

 var random_index = Math.floor(Math.random()*image.length);
 var newImage=image[random_index];
 var parent=div.parentNode;

  parent.removeChild(div);
  parent.appendChild(newImage.getAsElement(id));
}

//--&amp;gt;
&amp;lt;/script&amp;gt;

&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;

&amp;lt;div style="width:650px; margin-left:9px";&amp;gt;&amp;lt;p class="page_title"&amp;gt;random image test&amp;lt;/p&amp;gt;
&amp;lt;table width='630' cellpadding='0' cellspacing='0' bgcolor="#ffffff" align="left" style="margin-left:6px;"&amp;gt;
&amp;lt;tr id="images"&amp;gt;
&amp;lt;/tr&amp;gt;

&amp;lt;/table&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java-script/418794/418892/ReadMessage.aspx#418892</guid>
      <pubDate>Wed, 29 Sep 2010 22:41:13 -0700</pubDate>
    </item>
    <item>
      <title>Re: How to print next date corresponding to the date entered in JAVA</title>
      <link>http://www.programmersheaven.com/mb/java/418647/418736/ReadMessage.aspx#418736</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/smarsam28/"&gt;smarsam28&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/418647/418736/ReadMessage.aspx#418736"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;Thanks a lot. :)&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/418647/418736/ReadMessage.aspx#418736</guid>
      <pubDate>Fri, 17 Sep 2010 07:43:57 -0700</pubDate>
    </item>
    <item>
      <title>How to print next date corresponding to the date entered in JAVA</title>
      <link>http://www.programmersheaven.com/mb/java/418647/418647/ReadMessage.aspx#418647</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/smarsam28/"&gt;smarsam28&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/418647/418647/ReadMessage.aspx#418647"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;i want to write a program which takes valid date as input in format mm/dd/yyyy and outputs the next days date, considering all boundary conditions.&lt;br /&gt;
&lt;br /&gt;
Example: If I input 02/18/2010 the output of program should be 02/19/2010.&lt;br /&gt;
&lt;br /&gt;
i wrote the code to validate the date:&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;public boolean isValidDate(String date)&lt;br /&gt;
{&lt;br /&gt;
    SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");&lt;br /&gt;
    Date testDate = null;&lt;br /&gt;
    try&lt;br /&gt;
    {      testDate = sdf.parse(date);&lt;br /&gt;
    }&lt;br /&gt;
    catch (ParseException e)&lt;br /&gt;
    {      errorMessage = "the date you provided is in an invalid date"       + " format.";&lt;br /&gt;
      return false;&lt;br /&gt;
    }&lt;br /&gt;
    if (!sdf.format(testDate).equals(date))&lt;br /&gt;
    {      errorMessage = "The date that you provided is invalid.";&lt;br /&gt;
           return false;&lt;br /&gt;
    }&lt;br /&gt;
    return true;&lt;br /&gt;
}&lt;br /&gt;
&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the code that prints next date:&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;&lt;br /&gt;
&lt;br /&gt;
public class NextDate&lt;br /&gt;
{  public static void main(String[] args) &lt;br /&gt;
   {&lt;br /&gt;
    int oneDay = 1000 * 60 * 60 * 24;&lt;br /&gt;
    Date date = new Date();&lt;br /&gt;
    SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yy");&lt;br /&gt;
    String currDate = dateFormat.format(date.getTime());&lt;br /&gt;
    String nextDate = dateFormat.format(date.getTime() + oneDay);&lt;br /&gt;
    System.out.println("Currnent date: " + currDate);&lt;br /&gt;
    System.out.println("Next date: " + nextDate);&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;/em&gt;&lt;br /&gt;
now the problem i'm facing is how to make the user input the complete date and how to convert the date into the required format. Also i'm confused about the boundary value checks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/418647/418647/ReadMessage.aspx#418647</guid>
      <pubDate>Thu, 09 Sep 2010 13:25:38 -0700</pubDate>
    </item>
    <item>
      <title>InvocationTargetException !!!</title>
      <link>http://www.programmersheaven.com/mb/java/418637/418637/ReadMessage.aspx#418637</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/dinga94/"&gt;dinga94&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/418637/418637/ReadMessage.aspx#418637"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;&lt;br /&gt;
hi everyone,&lt;br /&gt;
&lt;br /&gt;
 could someone pls help as to why this error occurs.&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; Caused by: java.lang.reflect.InvocationTargetException &lt;br /&gt;
&lt;br /&gt;
 i have a desk top app link to a db.(javabeans n mysql)&lt;br /&gt;
 i cannot seem to save check_box values from my editor. however i can save numbers  and string but the chcbox give the titled error.&lt;br /&gt;
&lt;br /&gt;
anybody exprienced similar problem&lt;br /&gt;
&lt;br /&gt;
regards to all,&lt;br /&gt;
&lt;br /&gt;
 chris.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/418637/418637/ReadMessage.aspx#418637</guid>
      <pubDate>Thu, 09 Sep 2010 01:21:19 -0700</pubDate>
    </item>
    <item>
      <title>Re: two equal strings return false</title>
      <link>http://www.programmersheaven.com/mb/java/418522/418535/ReadMessage.aspx#418535</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/ColacX/"&gt;ColacX&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/418522/418535/ReadMessage.aspx#418535"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;use string.matches(string s) instead of equals, i also recommend you to post further code with the &lt;pre class="sourcecode"&gt;code tags&lt;/pre&gt; and notepad++ and rjtexteditor&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/418522/418535/ReadMessage.aspx#418535</guid>
      <pubDate>Thu, 02 Sep 2010 14:08:01 -0700</pubDate>
    </item>
    <item>
      <title>literally just starting java...</title>
      <link>http://www.programmersheaven.com/mb/java/418381/418381/ReadMessage.aspx#418381</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/kyle11778/"&gt;kyle11778&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/418381/418381/ReadMessage.aspx#418381"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;so i am taking a java course and want to start early on leaning it since i have the book. i downloaded java and java jdk 6. i made the basic "Hello world" program. opened cmd prompt and put in "javac Welcome.java". gives me some error. this is some of the command prompt errors i get---&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
C:\Users\****&amp;gt;C:\Program Files\Java\jdk1.6.0_21\bin\javac Welcome.java
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\****&amp;gt;C:\ProgramFiles\Java\jdk1.6.0_21\bin\javac Welcome.java
The system cannot find the path specified.

C:\Users\****&amp;gt;C:\Program_Files\Java\jdk1.6.0_21\bin\javac Welcome.java
The system cannot find the path specified.
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
let me know thanks...&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/418381/418381/ReadMessage.aspx#418381</guid>
      <pubDate>Sat, 21 Aug 2010 09:36:51 -0700</pubDate>
    </item>
    <item>
      <title>message for lack of applet support</title>
      <link>http://www.programmersheaven.com/mb/java/418275/418275/ReadMessage.aspx#418275</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Josh+Code/"&gt;Josh Code&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/418275/418275/ReadMessage.aspx#418275"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;How can you do a platform independent message display for applets that will be displayed only if the browser does not have Java installed and working?  I tried a few things below but they don't work well enough.  If you have any other ideas, please let me know.&lt;br /&gt;
&lt;br /&gt;
Generally, applets are coded like this when you want to say something in browsers that do not support Java applets.&lt;br /&gt;
&lt;pre class="sourcecode"&gt; &amp;lt;applet code="SlideShowApplet"
archive="slideshow.jar" width="778" height="295" 
&amp;gt;
&amp;lt;a href="http://www.java.com/en/download/"&amp;gt;Install Java&amp;lt;/a&amp;gt; to take full advantage of this page.
 &amp;lt;/applet&amp;gt;&lt;/pre&gt;&lt;br /&gt;
This works fine in Firefox but not in many other browsers.&lt;br /&gt;
&lt;br /&gt;
This does not work in all web browsers.  In Chrome and Google, I found that the Java pluggin area will hide the hyperlink shown above.&lt;br /&gt;
&lt;br /&gt;
The following code was tested in Google Chrome and keeps failing to show the hyperlink when Java applets are not supported.&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" 
              archive="slideshow.jar" 
              type="application/x-java-applet"
                width="778" height="295" &amp;gt; 

&amp;lt;param name="archive" value="slideshow.jar" /&amp;gt;
&amp;lt;param name="code" value="SlideShowApplet" /&amp;gt;

&amp;lt;a href="http://www.java.com/en/download/"&amp;gt;Install Java&amp;lt;/a&amp;gt;

        &amp;lt;/object&amp;gt; 
&lt;/pre&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/418275/418275/ReadMessage.aspx#418275</guid>
      <pubDate>Tue, 10 Aug 2010 22:57:36 -0700</pubDate>
    </item>
    <item>
      <title>Pointers in Java</title>
      <link>http://www.programmersheaven.com/mb/java/418170/418170/ReadMessage.aspx#418170</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/VinayKhare/"&gt;VinayKhare&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/418170/418170/ReadMessage.aspx#418170"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;hello,&lt;br /&gt;
&lt;br /&gt;
I need to create a chain of objects, with links in common.&lt;br /&gt;
In C++, I made a class like.&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
//Linked List of 10 nodes.
class link{
 link *left;
 int data;
 link * right;
 public:
 CreateLink(link *a,link *b){
  left = a;
  right = b;
 }
};

int main(){
 link obj[10];
 obj[0].CreateLink(NULL,&amp;amp;obj[1]);
 for(i=1;i&amp;lt;9;i++){
  obj[i].CreateLink(obj[i-1],obj[i+1]); 
 }
 obj[9].CreateLink(&amp;amp;obj[8],NULL);
}
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
How would I achieve the same task in Java without using LinkedList or List type or classes??&lt;br /&gt;
&lt;br /&gt;
I want to make a variable(int,char etc) that is common to two adjacent objects and not to all the objects of that class!&lt;br /&gt;
&lt;br /&gt;
Please help.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Vinay &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/418170/418170/ReadMessage.aspx#418170</guid>
      <pubDate>Tue, 03 Aug 2010 23:09:16 -0700</pubDate>
    </item>
    <item>
      <title>Re: question related to webservices</title>
      <link>http://www.programmersheaven.com/mb/java-script/415379/418103/ReadMessage.aspx#418103</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/mac_doggie/"&gt;mac_doggie&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java-script/415379/418103/ReadMessage.aspx#418103"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java-script/Board.aspx"&gt;JavaScript&lt;/a&gt; forum.&lt;/p&gt;: i want to be able to read the serial port and based on the command &lt;br /&gt;
: send an email via web services, what is the best way to achieve that &lt;br /&gt;
: , using which language?&lt;br /&gt;
: &lt;br /&gt;
Since javascript isn't allowed to do anything with the com RSR232, USB etc, I think it's better to use something like Java or C++ for that part. The application will have to run on the client computer to read the port and send an HTTP request to some webserver that can handle the mailsending. This part can also be  java, but can also be done with PHP, depending on what your provider supports. I would use PHP because that's my favorite language, but you can basicly choose what you like for it.&lt;br /&gt;
&lt;br /&gt;
&lt;img src="http://www.programmersheaven.com/images/Community/twink.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;
-mac-&lt;br /&gt;
mailto:mac_doggie@hotmail.com&lt;br /&gt;
the Netherlands...&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java-script/415379/418103/ReadMessage.aspx#418103</guid>
      <pubDate>Fri, 30 Jul 2010 15:52:30 -0700</pubDate>
    </item>
    <item>
      <title>Re: Using interval or setTimeout with multiple iterations</title>
      <link>http://www.programmersheaven.com/mb/java-script/415679/418102/ReadMessage.aspx#418102</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/mac_doggie/"&gt;mac_doggie&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java-script/415679/418102/ReadMessage.aspx#418102"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java-script/Board.aspx"&gt;JavaScript&lt;/a&gt; forum.&lt;/p&gt;A bit late perhaps but if you are still lokking for a solution, try this:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://mootools.net/docs/more/Class/Chain.Wait"&gt;http://mootools.net/docs/more/Class/Chain.Wait&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
mootools is a javascript framework with a lot of cool stuff built in. The chain lets you run functions one by one and with wait in between you can pause... Looks like the answer to your problem...&lt;br /&gt;
&lt;br /&gt;
-mac-&lt;br /&gt;
&lt;img src="http://www.programmersheaven.com/images/Community/twink.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;
-mac-&lt;br /&gt;
mailto:mac_doggie@hotmail.com&lt;br /&gt;
the Netherlands...&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java-script/415679/418102/ReadMessage.aspx#418102</guid>
      <pubDate>Fri, 30 Jul 2010 15:47:52 -0700</pubDate>
    </item>
    <item>
      <title>Re: Ajax to download a file</title>
      <link>http://www.programmersheaven.com/mb/java-script/418005/418101/ReadMessage.aspx#418101</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/mac_doggie/"&gt;mac_doggie&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java-script/418005/418101/ReadMessage.aspx#418101"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java-script/Board.aspx"&gt;JavaScript&lt;/a&gt; forum.&lt;/p&gt;Of you use AJAX to download the file, you don't need an Iframe. If you do use an IFrame, you don't need AJAX. It's one of the two... I would prefer AJAX, simply because it gives you more freedom... Except it you want to display a full page including head and body tags and included scripts from a third party, then I would suggest using an IFrame so you can really seperate it from your own HTML and the scripts won't conflict etc.&lt;br /&gt;
&lt;br /&gt;
If you're a beginner with AJAX, I could really recommend to use some JavaScript Framework with build in AJAX support like mootools, scriptaculous or jquery. I never used jquery, but I did use mootools and scriptaculous and I would say that mootools is easier to master because documentation is very good on their site. scriptaculous is also very powerfull and some say even better then mootools (http://mootools.net/), but if you're not allready a guru, you need to put in a lot of time to google for examples on everything..., So I would say check out mootools and try something like this:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;scrip language="text/javascript"&amp;gt;

function GetMyAJAXFile() {
  var myHTMLRequest = new Request.HTML({
     url:'myDocument.html',
     onSuccess: function(responseTree, responseElements, responseHTML, responseJavaScript) {
        // This will b e triggered after the document is loaded succesfully
        //
        $('MyDiv').innerHTML = responseHTML;
     }
}).post();
}
&amp;lt;/script&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
The dollar function is short for document.getELementById() very handy and you'll use that one quite often. With this example you'll get the data and place it inside a div element. No Iframe needed. Make sure the document you load is just HTML without &amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt; around it, because it will be rendered inside the current HTML file.&lt;br /&gt;
&lt;br /&gt;
Hope this helps ya out. (I didn;t test the example above, but it will steer you in a direction I hope. Check out the documentation on the mootools.net site for more cool stuff you can do with it.)&lt;br /&gt;
&lt;img src="http://www.programmersheaven.com/images/Community/twink.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;
-mac-&lt;br /&gt;
mailto:mac_doggie@hotmail.com&lt;br /&gt;
the Netherlands...&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java-script/418005/418101/ReadMessage.aspx#418101</guid>
      <pubDate>Fri, 30 Jul 2010 15:41:32 -0700</pubDate>
    </item>
    <item>
      <title>Re: How would I go about making an auto-typer?</title>
      <link>http://www.programmersheaven.com/mb/java-script/418096/418100/ReadMessage.aspx#418100</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/mac_doggie/"&gt;mac_doggie&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java-script/418096/418100/ReadMessage.aspx#418100"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java-script/Board.aspx"&gt;JavaScript&lt;/a&gt; forum.&lt;/p&gt;Dude,&lt;br /&gt;
&lt;br /&gt;
This is a javascript forum... private functions and imports... I think your confused with Action Script ? Are programming in Flash?&lt;br /&gt;
&lt;br /&gt;
What do you mean with an autotyper. It's not like it's a real word that exists or something. Sounds like you saw something cool and want to make it yourself, but if you don't discribe what you mean than I don''t think anyone will know ehat you mean with autotyper...&lt;br /&gt;
&lt;br /&gt;
I can make an autotyper script like this:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;script language="text/javascript"&amp;gt;
document.write('auto');
&amp;lt;/script&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
it's types the word auto, so I figure this will pass as an autotyper...?&lt;br /&gt;
&lt;br /&gt;
&lt;img src="http://www.programmersheaven.com/images/Community/twink.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;
&lt;br /&gt;
Some more details please...&lt;br /&gt;
&lt;br /&gt;
&lt;img src="http://www.programmersheaven.com/images/Community/twink.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;
-mac-&lt;br /&gt;
mailto:mac_doggie@hotmail.com&lt;br /&gt;
the Netherlands...&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java-script/418096/418100/ReadMessage.aspx#418100</guid>
      <pubDate>Fri, 30 Jul 2010 15:23:31 -0700</pubDate>
    </item>
    <item>
      <title>Java Frameworks</title>
      <link>http://www.programmersheaven.com/mb/java/417756/417756/ReadMessage.aspx#417756</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/ammar_iran/"&gt;ammar_iran&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/417756/417756/ReadMessage.aspx#417756"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;who can help this topic&lt;br /&gt;
the only thing i know :&lt;br /&gt;
1) maplet is &lt;a href="http://www.ibm.com/developerworks/library/j-dyn0603/"&gt;reflect &lt;/a&gt;base&lt;br /&gt;
2) maplet follows &lt;a href="https://www.ibm.com/developerworks/mydeveloperworks/groups/service/forum/topicThread?topicUuid=19c7d1a0-d2b4-4f8b-bc97-a437232b30c2"&gt;JWMS architect&lt;/a&gt; (JWMS is based on MVC but more useful)</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/417756/417756/ReadMessage.aspx#417756</guid>
      <pubDate>Fri, 09 Jul 2010 12:33:15 -0700</pubDate>
    </item>
    <item>
      <title>Re: Connection String</title>
      <link>http://www.programmersheaven.com/mb/java/417568/417709/ReadMessage.aspx#417709</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/djgalore/"&gt;djgalore&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/417568/417709/ReadMessage.aspx#417709"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;you could use a .properties file containing all your initial configurations.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/417568/417709/ReadMessage.aspx#417709</guid>
      <pubDate>Wed, 07 Jul 2010 01:58:32 -0700</pubDate>
    </item>
    <item>
      <title>Re: keyboard input problem</title>
      <link>http://www.programmersheaven.com/mb/java/417552/417554/ReadMessage.aspx#417554</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/anthrax11/"&gt;anthrax11&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/417552/417554/ReadMessage.aspx#417554"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;You need to save the state of the movement.&lt;br /&gt;
&lt;br /&gt;
For example, when the left key is pressed, then do something like "movingLeft = true". When the left key is released (you should override keyReleased in the KeyListener), then do "movingLeft = false".&lt;br /&gt;
&lt;br /&gt;
If you do this for every key, then you know exactly which keys are pressed at the moment. Then, every time you update Mario's position, you can check these variables, so your periodically updated game loop would look something like this:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
if(movingLeft){
  mario.moveLeft();
}
if(movingRight){
  mario.moveRight();
}
&lt;/pre&gt;&lt;br /&gt;
Well, that's the general idea. I hope it helps!</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/417552/417554/ReadMessage.aspx#417554</guid>
      <pubDate>Tue, 29 Jun 2010 15:27:05 -0700</pubDate>
    </item>
    <item>
      <title>Re: Create Objects on Demand?</title>
      <link>http://www.programmersheaven.com/mb/java/417471/417486/ReadMessage.aspx#417486</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/anthrax11/"&gt;anthrax11&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/417471/417486/ReadMessage.aspx#417486"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;Variables can't be named at runtime.&lt;br /&gt;
&lt;br /&gt;
I think what you want to do is have a resizable array to which you can add Marbles.&lt;br /&gt;
Then, to give the Marbles a unique name, add an extra name field to the object.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
--------------------Marble.java
public class Marble {

	protected String size;
	protected String color;
	protected String name;

	//Default Constructor
	Marble() {
		size = "small";
		color = "blue";
		name = null;
	}

	Marble(String name) {
		size = "small";
		color = "blue";
		this.name = name;
	}
}

-------------------MarbleController.java
import java.util.Scanner;

public class MarbleController {

	public static void main(String[] args) {

		List&amp;lt;Marble&amp;gt; marbles = new ArrayList&amp;lt;Marble&amp;gt;();

		Scanner keyboard = new Scanner(System.in);	

		System.out.println("Enter a name for an Marble and press Enter");
		String marbleName = keyboard.nextLine();

		Marble marble = new Marble(marbleName);
		marbles.add(marble);
	}
}
&lt;/pre&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/417471/417486/ReadMessage.aspx#417486</guid>
      <pubDate>Sun, 27 Jun 2010 08:48:21 -0700</pubDate>
    </item>
    <item>
      <title>Re: NetBeans IDE very slow to load</title>
      <link>http://www.programmersheaven.com/mb/java/417070/417347/ReadMessage.aspx#417347</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/AnyKate/"&gt;AnyKate&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/417070/417347/ReadMessage.aspx#417347"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;Try uninstalling the plugins that you dont need from the NetBeans IDE. That will help the NetBeans to load faster.&lt;br /&gt;
As a last option, try upgrading to Netbeans IDE version 6.9.&lt;br /&gt;
Thats amazingly fast!&lt;br /&gt;
&lt;br /&gt;
Hope that helps!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/417070/417347/ReadMessage.aspx#417347</guid>
      <pubDate>Mon, 21 Jun 2010 01:58:41 -0700</pubDate>
    </item>
    <item>
      <title>JavaFX not running on web</title>
      <link>http://www.programmersheaven.com/mb/java/417310/417310/ReadMessage.aspx#417310</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/mabilalmirza/"&gt;mabilalmirza&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/417310/417310/ReadMessage.aspx#417310"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;I made a Sound Recorder in JavaFX. I am having some problems with it.&lt;br /&gt;
&lt;br /&gt;
1. While running standalone, sometimes it runns smooth, and sometimes it hangs.&lt;br /&gt;
&lt;br /&gt;
2. In Web launcher or in browser, it load initial screen but when I call a thread to capture audio, it hangs. Web launcher shows a warning icon.&lt;br /&gt;
Muhammad Abdullah Bilal Mirza</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/417310/417310/ReadMessage.aspx#417310</guid>
      <pubDate>Sat, 19 Jun 2010 03:35:56 -0700</pubDate>
    </item>
    <item>
      <title>Java Applet Attach/Detach</title>
      <link>http://www.programmersheaven.com/mb/java/417280/417280/ReadMessage.aspx#417280</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Delphi/"&gt;Delphi&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/417280/417280/ReadMessage.aspx#417280"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;Hello.&lt;br /&gt;
&lt;br /&gt;
Normally I code in C/C++, but I've recently started Java. One of the things I'm trying is to make an applet for a web page that does the following:&lt;br /&gt;
&lt;br /&gt;
1.) Starts out embedded like a normal applet.&lt;br /&gt;
2.) If the user clicks on a menu/button/whatever designed to let them "detach" the applet and place it into a new window, this should happen. The space where the applet was should probably hide/disable the current functionality and pass this all to the new window.&lt;br /&gt;
3.) If the user closes the new window or clicks on a menu/button/whatever designed to let them "attach" the applet, it will return to the web browser and the window would close/hide.&lt;br /&gt;
&lt;br /&gt;
Obviously, the "state" of all the components should be kept. I don't just want to make a "new" window, I want to make a copy of it, but only allow one to be active at any given time.&lt;br /&gt;
&lt;br /&gt;
Two examples of something similar in functionality to what I'm trying, although the applications have little in common with what I'm working on:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.mudconnect.com/java/Telnet/"&gt;http://www.mudconnect.com/java/Telnet/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://dogfeathers.com/java/hyperslice.html"&gt;http://dogfeathers.com/java/hyperslice.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Despite some searching and some trial and error of my own, I've been unable to get this right, though I feel like it's something that should be fairly simple.&lt;br /&gt;
&lt;br /&gt;
Any suggestions or advice would be appreciated.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/417280/417280/ReadMessage.aspx#417280</guid>
      <pubDate>Thu, 17 Jun 2010 11:37:47 -0700</pubDate>
    </item>
    <item>
      <title>Re: detecting DOM change event</title>
      <link>http://www.programmersheaven.com/mb/java-script/371748/417248/ReadMessage.aspx#417248</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/PeterTheMaster/"&gt;PeterTheMaster&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java-script/371748/417248/ReadMessage.aspx#417248"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java-script/Board.aspx"&gt;JavaScript&lt;/a&gt; forum.&lt;/p&gt;This post has been deleted.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java-script/371748/417248/ReadMessage.aspx#417248</guid>
      <pubDate>Wed, 16 Jun 2010 04:28:00 -0700</pubDate>
    </item>
    <item>
      <title>Re: detecting DOM change event</title>
      <link>http://www.programmersheaven.com/mb/java-script/371748/417247/ReadMessage.aspx#417247</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/PeterTheMaster/"&gt;PeterTheMaster&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java-script/371748/417247/ReadMessage.aspx#417247"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java-script/Board.aspx"&gt;JavaScript&lt;/a&gt; forum.&lt;/p&gt;This post has been deleted.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java-script/371748/417247/ReadMessage.aspx#417247</guid>
      <pubDate>Wed, 16 Jun 2010 04:27:33 -0700</pubDate>
    </item>
    <item>
      <title>Re: detecting DOM change event</title>
      <link>http://www.programmersheaven.com/mb/java-script/371748/417246/ReadMessage.aspx#417246</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/PeterTheMaster/"&gt;PeterTheMaster&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java-script/371748/417246/ReadMessage.aspx#417246"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java-script/Board.aspx"&gt;JavaScript&lt;/a&gt; forum.&lt;/p&gt;i am interested in that reply too.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java-script/371748/417246/ReadMessage.aspx#417246</guid>
      <pubDate>Wed, 16 Jun 2010 04:27:31 -0700</pubDate>
    </item>
    <item>
      <title>Youtube OnComplete?</title>
      <link>http://www.programmersheaven.com/mb/java/416975/416975/ReadMessage.aspx#416975</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/wh1tepaint/"&gt;wh1tepaint&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/416975/416975/ReadMessage.aspx#416975"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
I would like to be able to play a YouTube video and then change the DIV tag contents upon completion of the video.  Is there a way I can detect when the video has completed (preferably with JS)&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/416975/416975/ReadMessage.aspx#416975</guid>
      <pubDate>Wed, 02 Jun 2010 12:47:59 -0700</pubDate>
    </item>
    <item>
      <title>Input from keyboard</title>
      <link>http://www.programmersheaven.com/mb/java/416871/416871/ReadMessage.aspx#416871</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/rashmigalagali/"&gt;rashmigalagali&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/416871/416871/ReadMessage.aspx#416871"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;Can anyone please explain how to read an input to a java code from keyboard.Please explain with an example.&lt;br /&gt;
&lt;br /&gt;
Thanks &amp;amp; Regards,&lt;br /&gt;
&lt;br /&gt;
Rashmi&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/416871/416871/ReadMessage.aspx#416871</guid>
      <pubDate>Sun, 30 May 2010 22:23:16 -0700</pubDate>
    </item>
    <item>
      <title>Improve the DB performance</title>
      <link>http://www.programmersheaven.com/mb/java/416778/416778/ReadMessage.aspx#416778</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/G.Manivannan/"&gt;G.Manivannan&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/java/416778/416778/ReadMessage.aspx#416778"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/java/Board.aspx"&gt;Java&lt;/a&gt; forum.&lt;/p&gt;Hai,&lt;br /&gt;
&lt;br /&gt;
I am maintaining one web application which is done in Java &amp;amp; Oracle 10g &amp;amp; Jasper reports(Reporting tool for Java).&lt;br /&gt;
&lt;br /&gt;
We will be generating Monthly report or Daily report or Report between two Dates (Ex. Invoice Statements)&lt;br /&gt;
I am sending query to database which contains 4 sub queries and collecting data from at least 4 tables.&lt;br /&gt;
The time taking for query processing and  showing  report is  almost  3 to 5 minutes.&lt;br /&gt;
Still I want to reduce the time in terms of seconds.&lt;br /&gt;
Here where the Database caching concepts will be implemented.&lt;br /&gt;
&lt;br /&gt;
How to go-a-head to fix up this issue?&lt;br /&gt;
Can I use Stored Procedures for this?&lt;br /&gt;
If you know about Database Caching in Java &amp;amp; Oracle please guide me to implement.&lt;br /&gt;
&lt;br /&gt;
I have searched a lot in Google, but I feel I didn't get any good article or code.&lt;br /&gt;
Thanks in Advance.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Manivannan.G</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/416778/416778/ReadMessage.aspx#416778</guid>
      <pubDate>Thu, 27 May 2010 06:38:08 -0700</pubDate>
    </item>
  </channel>
</rss>