<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title><![CDATA[Java Programming Forums - The Java Community - What's Wrong With My Code?]]></title>
		<link>http://www.javaprogrammingforums.com/</link>
		<description>PLEASE MAKE AN EFFORT TO POST IN THE CORRECT FORUM BELOW FIRST!</description>
		<language>en</language>
		<lastBuildDate>Tue, 18 Jun 2013 04:17:08 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.javaprogrammingforums.com/images/misc/rss.png</url>
			<title><![CDATA[Java Programming Forums - The Java Community - What's Wrong With My Code?]]></title>
			<link>http://www.javaprogrammingforums.com/</link>
		</image>
		<item>
			<title>How to read different data segments from a text file?</title>
			<link>http://www.javaprogrammingforums.com/whats-wrong-my-code/30061-how-read-different-data-segments-text-file.html</link>
			<pubDate>Tue, 18 Jun 2013 04:08:31 GMT</pubDate>
			<description>i am trying to read this data from a text file 
 
//contains an account no. of type string followed by account balance of type double 
3000 1200.00...</description>
			<content:encoded><![CDATA[<div>i am trying to read this data from a text file<br />
<br />
//contains an account no. of type string followed by account balance of type double<br />
3000 1200.00<br />
1000 300.00<br />
4000 8000.00<br />
// the 0 represents the start of a new data segment<br />
0<br />
// contains a transaction type either DEP &quot;deposit&quot; or WID &quot;withdrawal&quot; of type String followed by an account no. of type String and &quot;amount&quot; of the particular transaction either<br />
DEP 3000 600.00<br />
WID 4000 2000.00<br />
// the PRINT represents the end of file and print all the account information<br />
PRINT<br />
<br />
The question is, Read the data from the file, store the account information in objects in an array and perform the specific transactions and finally print the Information<br />
<br />
 i am able to read the text file and store the first data segment containing the account no and balance into an object in an array<br />
however, my problem is reading  the data segment from 0 and storing the transactions<br />
<br />
PLEASE HELP..ANY SUGGESTIONS..<br />
Regards<br />
aNiL</div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/whats-wrong-my-code/"><![CDATA[What's Wrong With My Code?]]></category>
			<dc:creator>alutchman</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/whats-wrong-my-code/30061-how-read-different-data-segments-text-file.html</guid>
		</item>
		<item>
			<title>What is wrong with my code</title>
			<link>http://www.javaprogrammingforums.com/whats-wrong-my-code/30058-what-wrong-my-code.html</link>
			<pubDate>Mon, 17 Jun 2013 20:13:26 GMT</pubDate>
			<description>I was following a tutorial exactly, i made sure everything looked the same but it still doesnt work. 
I am using the latest version of NetBeans 7.3.1...</description>
			<content:encoded><![CDATA[<div>I was following a tutorial exactly, i made sure everything looked the same but it still doesnt work.<br />
I am using the latest version of NetBeans 7.3.1<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><div class="" style="font-family:monospace;"><pre style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">package javagame;
&nbsp;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.KeyAdapter; 
import java.awt.event.KeyEvent;
import javax.swing.JFrame;
&nbsp;
public class JavaGame extends JFrame {
&nbsp;
    int x, y;
    private Image dbImage;
    private Graphics dbg;
&nbsp;
    public class AL extends KeyAdapter {
        public void KeyPressed(KeyEvent e){
           int KeyCode = e.getKeyCode();        
           if(KeyCode == e.VK_LEFT) {
              x--;
           }
           if(KeyCode == e.VK_RIGHT) {
               x++;
           }
            if(KeyCode == e.VK_UP) {
               y--;
           }
             if(KeyCode == e.VK_DOWN) {
               y++;
&nbsp;
           }
    }
    public void KeyReleased (KeyEvent e) {
&nbsp;
    }   
  }
  public JavaGame (){
    addKeyListener(new JavaGame.AL());    
    setTitle(&quot;Java Game&quot;);
    setSize(500, 500);
    setResizable(true);
    setVisible(true);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
&nbsp;
    x = 150;
    y = 150;
}
&nbsp;
  public void paint(Graphics g){
      dbImage = createImage(getWidth(), getHeight());
      dbg = dbImage.getGraphics();
      paintComponent(dbg);
      g.drawImage(dbImage, 0, 0, this);
  }
&nbsp;
  public void paintComponent(Graphics g){
      g.fillOval(x, y, 15, 15);
      repaint(); 
  }
&nbsp;
  public static void main(String&#91;&#93; args){
      new JavaGame(); 
  }
&nbsp;
}</pre></div></code><hr />
</div> </div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/whats-wrong-my-code/"><![CDATA[What's Wrong With My Code?]]></category>
			<dc:creator>chaffee</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/whats-wrong-my-code/30058-what-wrong-my-code.html</guid>
		</item>
		<item>
			<title>Recursive Method to count vowel</title>
			<link>http://www.javaprogrammingforums.com/whats-wrong-my-code/30053-recursive-method-count-vowel.html</link>
			<pubDate>Mon, 17 Jun 2013 16:13:43 GMT</pubDate>
			<description><![CDATA[public static void main(String[] args) { 
        Scanner input = new Scanner(System.in); 
        System.out.print("Enter a string: "); 
       ...]]></description>
			<content:encoded><![CDATA[<div>public static void main(String[] args) {<br />
        Scanner input = new Scanner(System.in);<br />
        System.out.print(&quot;Enter a string: &quot;);<br />
        String word = input.nextLine();<br />
        int i = 0, count = 0;<br />
        checkVowel(word, i, word.length()-1, count);   <br />
    }<br />
    <br />
    public static void checkVowel(String word, int start, int last, int count) {<br />
        if (start == last)<br />
        {<br />
            System.out.println(&quot;Total number of vowel is &quot; + count);<br />
        }<br />
        else<br />
        {  <br />
            if (word.charAt(start) == 'a' || word.charAt(start) == 'e' || word.charAt(start) == 'i' ||<br />
                word.charAt(start) == 'o' || word.charAt(start) == 'u') {<br />
                count++;<br />
            }<br />
            checkVowel(word, start++, last, count);<br />
        }           <br />
    }<br />
<br />
<br />
this is my code, but somehow i gt &quot;Exception in thread &quot;main&quot; java.lang.StackOverflowError&quot; , can anyone help find what's the problem??</div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/whats-wrong-my-code/"><![CDATA[What's Wrong With My Code?]]></category>
			<dc:creator>hofamilyiiii</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/whats-wrong-my-code/30053-recursive-method-count-vowel.html</guid>
		</item>
		<item>
			<title>Connect to linux server</title>
			<link>http://www.javaprogrammingforums.com/whats-wrong-my-code/30051-connect-linux-server.html</link>
			<pubDate>Mon, 17 Jun 2013 10:32:12 GMT</pubDate>
			<description>I am connecting to linux server using java , i want to automate the process so that the java code runs every half an hour .How can I do it ?</description>
			<content:encoded><![CDATA[<div>I am connecting to linux server using java , i want to automate the process so that the java code runs every half an hour .How can I do it ?</div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/whats-wrong-my-code/"><![CDATA[What's Wrong With My Code?]]></category>
			<dc:creator>ggupta</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/whats-wrong-my-code/30051-connect-linux-server.html</guid>
		</item>
		<item>
			<title><![CDATA[Is it possible for me to simplify this code to not use "super" here  - I did not understand this]]></title>
			<link>http://www.javaprogrammingforums.com/whats-wrong-my-code/30048-possible-me-simplify-code-not-use-super-here-i-did-not-understand.html</link>
			<pubDate>Mon, 17 Jun 2013 09:34:00 GMT</pubDate>
			<description><![CDATA[public class Reset extends JButton { 
        Reset() { 
            super("Reset"); 
            super.setText("Reset"); 
            int h = 20, w...]]></description>
			<content:encoded><![CDATA[<div>public class Reset extends JButton {<br />
        Reset() {<br />
            super(&quot;Reset&quot;);<br />
            super.setText(&quot;Reset&quot;);<br />
            int h = 20, w = 20;<br />
            int x = 0 * 20; int y = 7 * 30;<br />
            setBounds(x, y, h, w);<br />
            addActionListener(new ResetActionListener()); setVisible(true);<br />
        }<br />
        private class ResetActionListener implements ActionListener {<br />
            public void actionPerformed(ActionEvent ae) {<br />
                ConnectClient.reset();<br />
            }<br />
        }<br />
    }</div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/whats-wrong-my-code/"><![CDATA[What's Wrong With My Code?]]></category>
			<dc:creator>sumoon</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/whats-wrong-my-code/30048-possible-me-simplify-code-not-use-super-here-i-did-not-understand.html</guid>
		</item>
		<item>
			<title>Need Help For Adding image into Word document Using APache POI</title>
			<link>http://www.javaprogrammingforums.com/whats-wrong-my-code/30047-need-help-adding-image-into-word-document-using-apache-poi.html</link>
			<pubDate>Mon, 17 Jun 2013 07:44:11 GMT</pubDate>
			<description>Hi, 
 
We are creating word document using Apache POI and need to write image into word document using Apache POI but we are unable to get images in...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
We are creating word document using Apache POI and need to write image into word document using Apache POI but we are unable to get images in word document . Please any one help us regarding this.<br />
<br />
Thanks,</div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/whats-wrong-my-code/"><![CDATA[What's Wrong With My Code?]]></category>
			<dc:creator>nareshdev</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/whats-wrong-my-code/30047-need-help-adding-image-into-word-document-using-apache-poi.html</guid>
		</item>
		<item>
			<title>java pizza program beginerr</title>
			<link>http://www.javaprogrammingforums.com/whats-wrong-my-code/30044-java-pizza-program-beginerr.html</link>
			<pubDate>Mon, 17 Jun 2013 01:43:07 GMT</pubDate>
			<description>I am wondering why my code is not working for getting the toppings the user inputs as a number.</description>
			<content:encoded><![CDATA[<div>I am wondering why my code is not working for getting the toppings the user inputs as a number.</div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/whats-wrong-my-code/"><![CDATA[What's Wrong With My Code?]]></category>
			<dc:creator>nikki101</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/whats-wrong-my-code/30044-java-pizza-program-beginerr.html</guid>
		</item>
		<item>
			<title>User input error help.</title>
			<link>http://www.javaprogrammingforums.com/whats-wrong-my-code/30041-user-input-error-help.html</link>
			<pubDate>Sun, 16 Jun 2013 23:50:16 GMT</pubDate>
			<description>Alright so basically today I decided I wanted to learn Java as it has been on my to do list for about 6 months now and basically I asked a few...</description>
			<content:encoded><![CDATA[<div>Alright so basically today I decided I wanted to learn Java as it has been on my to do list for about 6 months now and basically I asked a few friends who knew how to program and they redirected me to thenewboston's tutorials on java programming. Everything was going smooth for awhile I was understanding everything he said and I was taking notes and such and then I got on to his user input tutorial. Now I listened to what he said, took notes on what he said what this and that did, and typed in what he wrote down. Now what happened whenever I ran it on Eclipse is that it gave me this error message.<font color="#FF0000">Exception in thread &quot;main&quot; java.lang.Error: Unresolved compilation problem: The method nextline() is undefined for the type Scanner at apples.main(apples.java:6)</font>Could someone please help on what I should do. The code to what I'm trying to use to get user input is this....<br />
<div class="bbcode_container">
	<div class="bbcode_description">Quote:</div>
	<div class="bbcode_quote printable">
		<hr />
		
			import java.util.Scanner;<br />
<br />
public class apples{<br />
	public static void main(String args[]){<br />
		Scanner bucky = new Scanner(System.in);<br />
		System.out.println(bucky.nextline());<br />
	}<br />
}
			
		<hr />
	</div>
</div></div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/whats-wrong-my-code/"><![CDATA[What's Wrong With My Code?]]></category>
			<dc:creator>Puffy Fawter</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/whats-wrong-my-code/30041-user-input-error-help.html</guid>
		</item>
		<item>
			<title>global variables for threads</title>
			<link>http://www.javaprogrammingforums.com/whats-wrong-my-code/30039-global-variables-threads.html</link>
			<pubDate>Sun, 16 Jun 2013 16:45:33 GMT</pubDate>
			<description>hey i have java assignment ,its like these i have 2 mythreads class which extend the original thread  and main , in which class i need to put global...</description>
			<content:encoded><![CDATA[<div>hey i have java assignment ,its like these i have 2 mythreads class which extend the original thread  and main , in which class i need to put global variables for both thread and main  to use,and how from thread code or main code itself i can reach them(use them as well)</div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/whats-wrong-my-code/"><![CDATA[What's Wrong With My Code?]]></category>
			<dc:creator>barhom</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/whats-wrong-my-code/30039-global-variables-threads.html</guid>
		</item>
		<item>
			<title>how to print matrix into file ?</title>
			<link>http://www.javaprogrammingforums.com/whats-wrong-my-code/30038-how-print-matrix-into-file.html</link>
			<pubDate>Sun, 16 Jun 2013 12:50:34 GMT</pubDate>
			<description>Hi everyone, 
I want to know that how to write a matrix into text file? 
actually here i am trying to write a program which take no of rows and...</description>
			<content:encoded><![CDATA[<div>Hi everyone,<br />
I want to know that how to write a matrix into text file?<br />
actually here i am trying to write a program which take no of rows and columns from user and also element of matrix and then i want to store that matrix into a separate file(abc.txt) and it's Transpose result<br />
want to store in separate file(xyz.txt). for this i am stuck in, i am not getting idea that how to save my matrix into a file...<br />
i have been searched regarding of my this problem but did not find any clue . let me post my code whatever effort i did to do... <br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><div class="" style="font-family:monospace;"><pre style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">public class MyTransposeOfMatrix {
    public static void main(String&#91;&#93; args) throws FileNotFoundException {
&nbsp;
&nbsp;
        PrintWriter pw =new PrintWriter(
           &quot;D:/SCJP Sun/netbeans/scjp practice/src/com/scjp/braintraser/xyz.txt&quot;);
        int rows, columns;
        System.out.println(&quot;Please enter no of rows:&quot;);
        Scanner sc=new Scanner(System.in);
        rows=sc.nextInt();
        System.out.println(&quot;Please enter no of columns:&quot;);
        columns=sc.nextInt();
        int matrix&#91;&#93;&#91;&#93;=new int&#91;rows&#93;&#91;columns&#93;;
        int tmatrix&#91;&#93;&#91;&#93;=new int&#91;columns&#93;&#91;rows&#93;;
        System.out.println(&quot;please enter element for matrix:&quot;);
        for(int i=0;i&lt;rows;i++){
            for(int j=0;j&lt;columns;j++){
                matrix&#91;i&#93;&#91;j&#93;=sc.nextInt();
            }
       }
&nbsp;
        for(int i=0;i&lt;rows;i++){
            for(int j=0; j&lt;columns; j++){
                tmatrix&#91;i&#93;&#91;j&#93;=matrix&#91;j&#93;&#91;i&#93;;
            }
        }
        System.out.println(&quot;The Matrix is:&quot;);
        for(int i=0; i&lt;rows; i++){
//                pw.print(i);
            for(int j=0; j&lt;columns; j++){
//                System.out.print(matrix&#91;i&#93;&#91;j&#93;+&quot; &quot;);
&nbsp;
                pw.print(matrix&#91;i&#93;&#91;j&#93;); // here trying to print into file
                                        // but it's printing in single line
            }
            System.out.println(&quot;&quot;);
        }
        pw.flush();
        System.out.println(&quot;The Transpose of Matrix is: &quot;);
        for(int i=0; i&lt;columns; i++){
            for(int j=0; j&lt;rows; j++){
                System.out.print(tmatrix&#91;i&#93;&#91;j&#93;+&quot; &quot;);
            }
            System.out.println(&quot;&quot;);
        }
    }
&nbsp;
&nbsp;
}</pre></div></code><hr />
</div> <br />
please help me.....<br />
thanks for your time to read this thread.</div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/whats-wrong-my-code/"><![CDATA[What's Wrong With My Code?]]></category>
			<dc:creator>viki1719</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/whats-wrong-my-code/30038-how-print-matrix-into-file.html</guid>
		</item>
		<item>
			<title><![CDATA[Code doesn't work despite being from book]]></title>
			<link>http://www.javaprogrammingforums.com/whats-wrong-my-code/30037-code-doesnt-work-despite-being-book.html</link>
			<pubDate>Sun, 16 Jun 2013 12:38:24 GMT</pubDate>
			<description>As a quick preface, I bought the book Teach yourself Java in 21 Days to, strangely enough, learn Java. Being a complete beginner who has no idea what...</description>
			<content:encoded><![CDATA[<div>As a quick preface, I bought the book <i>Teach yourself Java in 21 Days</i> to, strangely enough, learn Java. Being a complete beginner who has no idea what I'm doing, I tried running the first example program that they gave me, and it didn't work. I reverted back the the Netbeans they used in the book but no luck..Here are the files<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code Java:</div>
                <hr /><code class="bbcode_code"><div class="java" style="font-family:monospace;"><pre style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #7F0055; font-weight: bold;">class</span> VolcanoRobot <span style="color: #000000;">&#123;</span>
    <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> status<span style="color: #000000;">;</span>
    <span style="color: #000066; font-weight: bold;">int</span> speed<span style="color: #000000;">;</span>
    <span style="color: #000066; font-weight: bold;">float</span> temperature<span style="color: #000000;">;</span>
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">void</span> checkTemperature<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
        <span style="color: #7F0055; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>temperature <span style="color: #000000;">&gt;</span> <span style="color: #cc66cc;">660</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
            status <span style="color: #000000;">=</span> <span style="color: #0000ff;">&quot;returning home&quot;</span><span style="color: #000000;">;</span>
            speed <span style="color: #000000;">=</span> <span style="color: #cc66cc;">5</span><span style="color: #000000;">;</span>
        <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #7F0055; font-weight: bold;">void</span> showAttributes<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
        <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #000000;">out</span>.<span style="color: #000000;">println</span><span style="color: #000000;">&#40;</span><span style="color: #0000ff;">&quot;Status: &quot;</span> <span style="color: #000000;">+</span> status<span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
        <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #000000;">out</span>.<span style="color: #000000;">println</span><span style="color: #000000;">&#40;</span><span style="color: #0000ff;">&quot;Speed: &quot;</span> <span style="color: #000000;">+</span> speed<span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
        <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #000000;">out</span>.<span style="color: #000000;">println</span><span style="color: #000000;">&#40;</span><span style="color: #0000ff;">&quot;Temperature: &quot;</span> <span style="color: #000000;">+</span> temperature<span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></code><hr />
</div> <br />
File 2<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code Java:</div>
                <hr /><code class="bbcode_code"><div class="java" style="font-family:monospace;"><pre style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #7F0055; font-weight: bold;">class</span> VolcanoApplication <span style="color: #000000;">&#123;</span>
    <span style="color: #7F0055; font-weight: bold;">public</span> <span style="color: #7F0055; font-weight: bold;">static</span> <span style="color: #7F0055; font-weight: bold;">void</span> main<span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> arguments<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
        VolcanoRobot dante <span style="color: #000000;">=</span> <span style="color: #7F0055; font-weight: bold;">new</span> VolcanoRobot<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
        dante.<span style="color: #000000;">status</span> <span style="color: #000000;">=</span> <span style="color: #0000ff;">&quot;exploring&quot;</span><span style="color: #000000;">;</span>
        dante.<span style="color: #000000;">speed</span> <span style="color: #000000;">=</span> <span style="color: #cc66cc;">2</span><span style="color: #000000;">;</span>
        dante.<span style="color: #000000;">temperature</span> <span style="color: #000000;">=</span> <span style="color: #cc66cc;">510</span><span style="color: #000000;">;</span>
&nbsp;
        dante.<span style="color: #000000;">showAttributes</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
        <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #000000;">out</span>.<span style="color: #000000;">println</span><span style="color: #000000;">&#40;</span><span style="color: #0000ff;">&quot;Increasing speed to 3.&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
        dante.<span style="color: #000000;">speed</span> <span style="color: #000000;">=</span> <span style="color: #cc66cc;">3</span><span style="color: #000000;">;</span>
        dante.<span style="color: #000000;">showAttributes</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
        <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #000000;">out</span>.<span style="color: #000000;">println</span><span style="color: #000000;">&#40;</span><span style="color: #0000ff;">&quot;Changing temperature to 670.&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
        dante.<span style="color: #000000;">temperature</span> <span style="color: #000000;">=</span> <span style="color: #cc66cc;">670</span><span style="color: #000000;">;</span>
        dante.<span style="color: #000000;">showAttributes</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
        <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #000000;">out</span>.<span style="color: #000000;">println</span><span style="color: #000000;">&#40;</span><span style="color: #0000ff;">&quot;Checking the temperature.&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
        dante.<span style="color: #000000;">checkTemperature</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
        dante.<span style="color: #000000;">showAttributes</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></code><hr />
</div> <br />
Thanks in advance</div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/whats-wrong-my-code/"><![CDATA[What's Wrong With My Code?]]></category>
			<dc:creator>Math2</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/whats-wrong-my-code/30037-code-doesnt-work-despite-being-book.html</guid>
		</item>
		<item>
			<title>Draw the Line</title>
			<link>http://www.javaprogrammingforums.com/whats-wrong-my-code/30035-draw-line.html</link>
			<pubDate>Sun, 16 Jun 2013 12:31:24 GMT</pubDate>
			<description>*What is wrong with this code* 
 
___________________________________________________________________________________ 
 
package javaclass; 
  ...</description>
			<content:encoded><![CDATA[<div><b>What is wrong with this code</b><br />
<br />
__________________________________________________  _________________________________<br />
<br />
package javaclass;<br />
  <br />
import java.awt.BorderLayout;<br />
import java.awt.Point;<br />
import java.awt.Graphics;<br />
import java.awt.event.MouseEvent;<br />
import java.awt.event.MouseMotionAdapter;<br />
import javax.swing.JFrame;<br />
import javax.swing.JLabel;<br />
import javax.swing.JPanel;<br />
  <br />
public class PaintPanel extends JPanel {<br />
  <br />
    private int pointCount = 0; // count number of points<br />
    // array of 10000 java.awt.Point references <br />
    private Point points[] = new Point[10000];<br />
  <br />
    // set up GUI and register mouse event handler<br />
    public PaintPanel() { // &#1575;&#1740;&#1606;&#1580;&#1575; &#1605;&#1593;&#1604;&#1608;&#1605; &#1606;&#1740;&#1587;&#1578; &#1670;&#1607; &#1608;&#1585;&#1608;&#1583;&#1740; &#1583;&#1575;&#1585;&#1607;<br />
          <br />
        // handle frame mouse motion event<br />
        addMouseMotionListener(<br />
                new MouseMotionAdapter() { // anonymous inner class           {<br />
                    // store drag coordinates and repaint                       <br />
                    public void mouseDragged(MouseEvent event) {<br />
                        if (pointCount &lt; points.length) {<br />
                            points[ pointCount] = event.getPoint(); // find point<br />
                            pointCount++; // increment number of points in array  <br />
                            repaint(); // repaint JFrame                          <br />
                        } // end if                                              <br />
                    } // end method mouseDragged                                <br />
                } // end anonymous inner class<br />
                ); // end call to addMouseMotionListener<br />
    } // end PaintPanel constructor<br />
  <br />
    // draw oval in a 4-by-4 bounding box at specified location on window<br />
    public void paintComponent(Graphics g) { // &#1575;&#1740;&#1606;&#1580;&#1575; &#1607;&#1605; &#1605;&#1740;&#1711;&#1607; &#1578;&#1593;&#1585;&#1740;&#1601; &#1588;&#1583;&#1607; &#1606;&#1740;&#1587;&#1578;<br />
        super.paintComponent(g); // clears drawing area<br />
        // draw all points in array<br />
        for (int i = 0; i &lt; pointCount; i++) {<br />
            g.fillOval(points[ i].x, points[ i].y, 20, 20);<br />
        }<br />
    } // end method paintComponent<br />
  <br />
    public static void main(String args[]) {<br />
        // create JFrame<br />
        JFrame application = new JFrame(&quot;A simple paint program&quot;);<br />
        PaintPanel paintPanel = new PaintPanel(); // create paint panel<br />
        application.add(paintPanel, BorderLayout.CENTER); // in center<br />
        // create a label and place it in SOUTH of BorderLayout<br />
        application.add(new JLabel(&quot;Drag the mouse to draw&quot;),<br />
                BorderLayout.SOUTH);<br />
        application.setDefaultCloseOperation(JFrame.EXIT_O  N_CLOSE);<br />
        application.setSize(400, 200); // set frame size<br />
        application.setVisible(true); // display frame<br />
    } // end main<br />
} // end class PaintPanel</div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/whats-wrong-my-code/"><![CDATA[What's Wrong With My Code?]]></category>
			<dc:creator>teymoorei</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/whats-wrong-my-code/30035-draw-line.html</guid>
		</item>
		<item>
			<title>return type</title>
			<link>http://www.javaprogrammingforums.com/whats-wrong-my-code/30033-return-type.html</link>
			<pubDate>Sun, 16 Jun 2013 06:32:08 GMT</pubDate>
			<description>public class Name { 
	static int a; 
	int b=0; 
	public void fuck(int d){ 
		a=a+1; 
		b=b+1; 
		System.out.println(a); 
		System.out.println(b);...</description>
			<content:encoded><![CDATA[<div>public class Name {<br />
	static int a;<br />
	int b=0;<br />
	public void fuck(int d){<br />
		a=a+1;<br />
		b=b+1;<br />
		System.out.println(a);<br />
		System.out.println(b);<br />
		System.out.println(d);<br />
		return ;<br />
		<br />
the function is void type.. and in the end i also wrote return..but no value...<br />
the function runs with no error...  why return is not creating a problem</div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/whats-wrong-my-code/"><![CDATA[What's Wrong With My Code?]]></category>
			<dc:creator>shahrukh0603</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/whats-wrong-my-code/30033-return-type.html</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Robot Class]]></title>
			<link>http://www.javaprogrammingforums.com/whats-wrong-my-code/30032-robot-class.html</link>
			<pubDate>Sun, 16 Jun 2013 01:52:59 GMT</pubDate>
			<description><![CDATA[I've been trying to use the Robot class over a network with a server opening notepad and typing some words in on the client desktop though the most I...]]></description>
			<content:encoded><![CDATA[<div>I've been trying to use the Robot class over a network with a server opening notepad and typing some words in on the client desktop though the most I have been able to achieve is to open notepad and even then my client gives an error, the server continues to run until I shut notepad though gives an error too.  &quot;HELOWORLD&quot; instead of &quot;HELLOWORLD&quot; is the output wherever the key cursor is resting even if inside the client code, notepad is left empty. Can anyone please help.<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><div class="" style="font-family:monospace;"><pre style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">import java.net.*;
import java.io.*;
&nbsp;
public class Server{
public static void main(String&#91;&#93;args)throws IOException{
	ServerSocket serverSocket = new ServerSocket(8976);
	Socket socket = null;
	ObjectOutputStream out = null;
&nbsp;
	try{
		socket = serverSocket.accept();
		out = new ObjectOutputStream(socket.getOutputStream());
		out.writeObject(new ControlObject());
	}catch(IOException e){
		e.printStackTrace();
	}finally{
		out.close();
		socket.close();
	}
}
}</pre></div></code><hr />
</div> <div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><div class="" style="font-family:monospace;"><pre style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">import java.io.*;
import java.net.*;
&nbsp;
public class Client{
	public static void main(String&#91;&#93;args)throws IOException, ClassNotFoundException{
		final Socket socket = new Socket(&quot;127.0.0.1&quot;,8976);
		final ObjectInputStream in = new ObjectInputStream(socket.getInputStream());
&nbsp;
&nbsp;
&nbsp;
	    try {
		    Object s = in.readObject();    
		}catch(IOException e){
			e.printStackTrace();
		}finally{
			in.close();
            socket.close();
&nbsp;
		}
&nbsp;
&nbsp;
&nbsp;
	}
}</pre></div></code><hr />
</div> <div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><div class="" style="font-family:monospace;"><pre style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.KeyEvent;
import java.io.IOException;
import java.io.Serializable;
&nbsp;
public class ControlObject implements Serializable{
	public ControlObject() throws IOException {
		try {
			int KeyInput&#91;&#93; = {
					KeyEvent.VK_H,
					KeyEvent.VK_E,
					KeyEvent.VK_L,
					KeyEvent.VK_L,
					KeyEvent.VK_O,
					KeyEvent.VK_W,
					KeyEvent.VK_O,
					KeyEvent.VK_R,
					KeyEvent.VK_L,
					KeyEvent.VK_D,
			};
			Robot robot = new Robot();
			robot.delay(5000);
			Runtime.getRuntime().exec(&quot;notepad&quot;);
			robot.keyPress(KeyEvent.VK_SHIFT);
			for(int i = 0;i&lt;KeyInput.length;i++){
				robot.keyPress(KeyInput&#91;i&#93;);
			}
&nbsp;
			robot.keyRelease(KeyEvent.VK_SHIFT);
		} catch (AWTException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
&nbsp;
	}
}</pre></div></code><hr />
</div> </div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/whats-wrong-my-code/"><![CDATA[What's Wrong With My Code?]]></category>
			<dc:creator>keepStriving</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/whats-wrong-my-code/30032-robot-class.html</guid>
		</item>
		<item>
			<title>GridBagLayout help</title>
			<link>http://www.javaprogrammingforums.com/whats-wrong-my-code/30030-gridbaglayout-help.html</link>
			<pubDate>Sat, 15 Jun 2013 20:45:24 GMT</pubDate>
			<description><![CDATA[Hello, 
 
I am currently creating a GUI using GridBagLayout and I am having an issue with putting JLabels next to JPanels. I'm pairing JLabels with...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I am currently creating a GUI using GridBagLayout and I am having an issue with putting JLabels next to JPanels. I'm pairing JLabels with JTextFields in the same row as titles for data.  For some reason the JLabels seem to be much bigger than the JTextFields even though I used the same Weight. Also there seems to be extra padding to the right of each JLabel because there is a lot of blank space before the JTextField begins.  Ideally I would like the JTextField and JLabels to each take up half of the space in the panel. <br />
<br />
The panel I'm referring to is the far right panel (helper date, helper time, etc.) Here is the code:<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><div class="" style="font-family:monospace;"><pre style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">package NewGui;
&nbsp;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.SystemColor;
&nbsp;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
import javax.swing.UIManager;
import javax.swing.UIManager.LookAndFeelInfo;
import javax.swing.border.BevelBorder;
import javax.swing.border.EtchedBorder;
&nbsp;
public class NewGui extends JFrame {
&nbsp;
	JPanel mainGridBagPanel = new JPanel(new GridBagLayout());
	JPanel topButtonPanel = new JPanel(new GridBagLayout());
&nbsp;
	JPanel helperAddressPanel = new JPanel(new GridBagLayout());
	JPanel helperNamePanel = new JPanel(new GridBagLayout());
	JPanel filerInfoPanel = new JPanel(new GridBagLayout());
	JPanel dupPanel = new JPanel(new GridBagLayout());
&nbsp;
	JButton helpInformationButton = new JButton();
	JButton returnPreviousButton = new JButton();
	JButton viewErrorLogButton = new JButton();
	JLabel listLabel = new JLabel();
&nbsp;
	JLabel helperAddressLabel = new JLabel();
	JTextField helperAddressOne = new JTextField();
	JTextField helperAddressTwo = new JTextField();
	JTextField coLine = new JTextField();
	JLabel codeLabel = new JLabel();
	JTextField code = new JTextField();
	JTextField phoneNbr = new JTextField();
&nbsp;
	JLabel helperNameLabel = new JLabel();
	JTextField addressOne = new JTextField();
	JTextField addressTwo = new JTextField();
	JTextField city = new JTextField();
	JTextField prov = new JTextField();
	JTextField cntry = new JTextField();
	JTextField postalCd = new JTextField();
	JLabel dateLabel = new JLabel();
	JTextField date = new JTextField();
&nbsp;
	JLabel helperDateLabel = new JLabel();
	JTextField helperDate = new JTextField();
	JLabel timeLabel = new JLabel();
	JTextField time = new JTextField();
	JLabel locationLabel = new JLabel();
	JTextField location = new JTextField();
	JLabel descriptionLabel = new JLabel();
	JTextField description = new JTextField();
	JLabel destinationLabel = new JLabel();
	JTextField destination = new JTextField();
	JLabel typeLabel = new JLabel();
	JTextField type = new JTextField();
	JLabel durationLabel = new JLabel();
	JTextField duration = new JTextField();
&nbsp;
&nbsp;
&nbsp;
	public NewGui()
	{
		setPanelInfo();
		setLabels();
		setValues();
&nbsp;
		this.getContentPane().add(mainGridBagPanel);
		GridBagConstraints gb = new GridBagConstraints();
		gb.fill = GridBagConstraints.BOTH;
		gb.gridx = 0;
		gb.gridy = 0;
		gb.weightx = 0.5;
		gb.weighty = 0.5;
		gb.gridwidth = 3;
		gb.insets = new Insets(5,5,0,5); 
		mainGridBagPanel.add(topButtonPanel, gb);
		gb.gridy = 1;
		gb.gridwidth = 1;
		gb.insets = new Insets(5,5,5,0); 
		mainGridBagPanel.add(helperAddressPanel, gb);
		gb.gridx = 1;
		gb.insets = new Insets(5,5,5,0); 
		mainGridBagPanel.add(helperNamePanel, gb);
		gb.gridx = 2;
		gb.insets = new Insets(5,5,5,5); 
		mainGridBagPanel.add(filerInfoPanel, gb);
//		gb.gridx = 3;
//		gb.insets = new Insets(10,10,10,10); 
//		mainGridBagPanel.add(dupPanel, gb);
&nbsp;
		gb.gridx = 0;
		gb.gridy = 0;
		gb.insets = new Insets(5,5,5,0);  
		topButtonPanel.add(helpInformationButton, gb);
		gb.gridx = 1;
		gb.insets = new Insets(5,5,5,0);  
		topButtonPanel.add(listLabel, gb);
		gb.gridx = 2;
		gb.insets = new Insets(5,5,5,0);  
		topButtonPanel.add(returnPreviousButton, gb);
		gb.gridx = 3;
		gb.insets = new Insets(5,5,5,5);  
		topButtonPanel.add(viewErrorLogButton, gb);
&nbsp;
		gb.gridx = 0;
		gb.gridy = 0;
		gb.insets = new Insets(5,5,5,0); 
		helperAddressPanel.add(helperAddressLabel, gb);
		gb.gridy = 1;
		gb.insets = new Insets(0,0,0,0); 
		helperAddressPanel.add(helperAddressOne, gb);
		gb.gridy = 2;
		helperAddressPanel.add(helperAddressTwo, gb);
		gb.gridy = 3;
		helperAddressPanel.add(coLine, gb);
		gb.gridy = 4;
		helperAddressPanel.add(codeLabel, gb);
		gb.gridy = 5;
		helperAddressPanel.add(code, gb);
		gb.gridy = 6;
		helperAddressPanel.add(phoneNbr, gb);
&nbsp;
		gb.gridx = 0;
		gb.gridy = 0;
		gb.gridwidth = 3;
		gb.insets = new Insets(5,5,5,0); 
		helperNamePanel.add(helperNameLabel, gb);
		gb.gridy = 1;
		gb.insets = new Insets(0,0,0,0);
		helperNamePanel.add(addressOne, gb);
		gb.gridy = 2;
		helperNamePanel.add(addressTwo, gb);
		gb.gridy = 3;
		helperNamePanel.add(city, gb);
		gb.gridy = 4;
		gb.gridwidth = 1;
		helperNamePanel.add(prov, gb);
		gb.gridx = 1;
		helperNamePanel.add(cntry, gb);
		gb.gridx = 2;
		helperNamePanel.add(postalCd, gb);
		gb.gridx = 0;
		gb.gridy = 5;
		gb.gridwidth = 3;
		helperNamePanel.add(dateLabel, gb);
		gb.gridy = 6;
		helperNamePanel.add(date, gb);
&nbsp;
		gb.gridx = 0;
		gb.gridy = 0;
		gb.gridwidth = 1;
		gb.insets = new Insets(5,5,5,0);
		filerInfoPanel.add(helperDateLabel, gb);
		gb.gridx = 1;
		gb.insets = new Insets(0,0,0,0);
		filerInfoPanel.add(helperDate, gb);
		gb.gridx = 0;
		gb.gridy = 1;
		gb.insets = new Insets(0,5,0,0);
		filerInfoPanel.add(timeLabel, gb);
		gb.gridx = 1;
		gb.insets = new Insets(0,0,0,0);
		filerInfoPanel.add(time, gb);
		gb.gridx = 0;
		gb.gridy = 2;
		gb.insets = new Insets(0,5,0,0);
		filerInfoPanel.add(locationLabel, gb);
		gb.gridx = 1;
		gb.insets = new Insets(0,0,0,0);
		filerInfoPanel.add(location, gb);
		gb.gridx = 0;
		gb.gridy = 3;
		gb.insets = new Insets(0,5,0,0);
		filerInfoPanel.add(descriptionLabel, gb);
		gb.gridx = 1;
		gb.insets = new Insets(0,0,0,0);
		filerInfoPanel.add(description, gb);
		gb.gridx = 0;
		gb.gridy = 4;
		gb.insets = new Insets(0,5,0,0);
		filerInfoPanel.add(destinationLabel, gb);
		gb.gridx = 1;
		gb.insets = new Insets(0,0,0,0);
		filerInfoPanel.add(destination, gb);
		gb.gridx = 0;
		gb.gridy = 5;
		gb.insets = new Insets(0,5,0,0);
		filerInfoPanel.add(typeLabel, gb);
		gb.gridx = 1;
		gb.insets = new Insets(0,0,0,0);
		filerInfoPanel.add(type, gb);
		gb.gridx = 0;
		gb.gridy = 6;
		gb.insets = new Insets(0,5,0,0);
		filerInfoPanel.add(durationLabel, gb);
		gb.gridx = 1;
		gb.insets = new Insets(0,0,0,0);
		filerInfoPanel.add(duration, gb);
&nbsp;
&nbsp;
	}
&nbsp;
	public void setPanelInfo()
	{
		topButtonPanel.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
		topButtonPanel.setBackground(SystemColor.activeCaption);
&nbsp;
		helperAddressPanel.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
		helperAddressPanel.setBackground(SystemColor.activeCaption);
&nbsp;
		helperNamePanel.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
		helperNamePanel.setBackground(SystemColor.activeCaption);
&nbsp;
		filerInfoPanel.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
		filerInfoPanel.setBackground(SystemColor.activeCaption);
&nbsp;
	}
&nbsp;
	public void setLabels()
	{
&nbsp;
		helpInformationButton.setText(&quot;Help with information&quot;);
		returnPreviousButton.setText(&quot;Return to previous screen&quot;);
		viewErrorLogButton.setText(&quot;View error log&quot;);
		listLabel.setText(&quot;List&quot;);
		listLabel.setHorizontalAlignment(SwingConstants.CENTER);
		listLabel.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED, Color.BLACK, Color.BLACK));
		listLabel.setOpaque(true);
		listLabel.setBackground(SystemColor.control);
&nbsp;
		helperAddressLabel.setText(&quot;Helper Address&quot;);
		codeLabel.setText(&quot;Code&quot;);
&nbsp;
		helperNameLabel.setText(&quot;Helper Name&quot;);
		dateLabel.setText(&quot;Data&quot;);
&nbsp;
		helperDateLabel.setText(&quot;Helper Date&quot;);
		timeLabel.setText(&quot;Time&quot;);
		locationLabel.setText(&quot;Location&quot;);
		descriptionLabel.setText(&quot;Destination&quot;);
		destinationLabel.setText(&quot;Description&quot;);
		typeLabel.setText(&quot;Type&quot;);
		durationLabel.setText(&quot;Duration&quot;);
&nbsp;
&nbsp;
	}
&nbsp;
	public void setValues()
	{
&nbsp;
&nbsp;
	}
&nbsp;
&nbsp;
&nbsp;
	public static void main (String args&#91;&#93;)
	{
&nbsp;
		try {
			for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
				if (&quot;Nimbus&quot;.equals(info.getName())) {
					UIManager.setLookAndFeel(info.getClassName());
					break;
				}
			}
		} catch (Exception e) {
			// If Nimbus is not available, you can set the GUI to another look and feel.
		}
&nbsp;
		NewGui gui = new NewGui();
		gui.pack();
		gui.setVisible(true);
&nbsp;
&nbsp;
&nbsp;
	}
&nbsp;
}</pre></div></code><hr />
</div> <br />
<br />
Any help is greatly appreciated.<br />
<br />
Thanks.</div>

]]></content:encoded>
			<category domain="http://www.javaprogrammingforums.com/whats-wrong-my-code/"><![CDATA[What's Wrong With My Code?]]></category>
			<dc:creator>darren465</dc:creator>
			<guid isPermaLink="true">http://www.javaprogrammingforums.com/whats-wrong-my-code/30030-gridbaglayout-help.html</guid>
		</item>
	</channel>
</rss>
