<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[JavaRanch: "Swing / AWT / SWT / JFace "]]></title>
		<link>http://www.coderanch.com/forums/forums/f-2/Swing-AWT-SWT-JFace</link>
		<description><![CDATA[The newest discussed topics in the forum "Swing / AWT / SWT / JFace "]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Action for JMenuItem.</title>
				<description><![CDATA[Hello, is this possible to add Action for this component?<br /> <br /> <b><a href="http://java.sun.com/javase/6/docs/api/javax/swing/JMenuItem.html" class="api" title="Java API" target="_new" rel="nofollow">JMenuItem</a></b><br /> <br /> I mean this one:<br /> <br /> <img src="http://i39.tinypic.com/25t80uu.jpg" border="0" /><br /> <br /> Bookmark called Html (from screen) is called:    <b>jMenuItem7</b><br /> <br /> And I did something like this:<br /> <br /> <pre> jMenuItem7.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent e) {

				System.out.println(&quot;works&quot;);
			}
		});    </pre><br /> <br /> But nothing happedned.<br /> <br /> Someone can help me? Is there any other way (or maybe its impossible)]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/488145/2194120</guid>
				<link>http://www.coderanch.com/forums/posts/preList/488145/2194120</link>
				<pubDate><![CDATA[Sun, Mar 21 2010 04:35:55 MDT]]></pubDate>
				<author><![CDATA[Mateusz Mysliwiec]]></author>
			</item>
			<item>
				<title>how to add custom swing component into IDE generated JFrame from swing pallete.</title>
				<description><![CDATA[hi,<br /> 'm facing one problem i have one <b>Autosuggestion</b> Field that extends  <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JTextField.html" class="api" title="Java API" target="_new" rel="nofollow">JTextField</a>. <br /> I have designed one <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JFrame.html" class="api" title="Java API" target="_new" rel="nofollow">JFrame</a> using NetBeans IDE's drag and drop. there are JLables and Othere Swing components in <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JFrame.html" class="api" title="Java API" target="_new" rel="nofollow">JFrame</a> added by drag-drop from IDE's Swing pallete.<br /> the problem is i want to add <b>Autosuggestion</b> in <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JFrame.html" class="api" title="Java API" target="_new" rel="nofollow">JFrame</a> , how can i do this, as i dont have this Swing widget in pallete for drag and drop?<br /> <br /> once i tried to put Autosuggestion in <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JFrame.html" class="api" title="Java API" target="_new" rel="nofollow">JFrame</a> by handcoding but it disturbs other components on frame. entrire GUI is disturbed.<br /> please help :cry: <br /> <br /> Thanks in advance 4 your reply.<br /> <br /> ]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/488138/2194104</guid>
				<link>http://www.coderanch.com/forums/posts/preList/488138/2194104</link>
				<pubDate><![CDATA[Sun, Mar 21 2010 03:36:18 MDT]]></pubDate>
				<author><![CDATA[Piyush Patel]]></author>
			</item>
			<item>
				<title>Resizing an image</title>
				<description><![CDATA[I have an image with dimensions 500x500. Is it possible to resize the image to say 20x20 so that it fits into a button? ]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/488107/2193969</guid>
				<link>http://www.coderanch.com/forums/posts/preList/488107/2193969</link>
				<pubDate><![CDATA[Sat, Mar 20 2010 15:07:08 MDT]]></pubDate>
				<author><![CDATA[rohith yenumula]]></author>
			</item>
			<item>
				<title>hard time with swing</title>
				<description><![CDATA[Hello Guys<br /> <br /> How can I make the drawn text moving with this thread ?<br /> <br /> <br /> thread class<br /> <br /> <pre> 

public class MovingThread extends Thread {

  InsidePane pane=new InsidePane();

    public MovingThread() {
    }


    @Override
    public void run(){

      int x=pane.getPosX();
      int y=pane.getPosY();

      while(x&lt;pane.getWidth()){
          x++;

      }

      pane.setPosX(x);
      pane.repaint();


      try{

          Thread.sleep(2000);

      }catch(InterruptedException e){

          e.printStackTrace();
      }


    }

}



  </pre><br /> <br /> <br /> panel class<br /> <pre>   

public class InsidePane extends JPanel{


    private int posX=20;
    private int posY=20;
    private String str=&quot;Test&quot;;

    public int getPosX() {
        return posX;
    }

    public void setPosX(int posX) {
        this.posX = posX;
    }

    public int getPosY() {
        return posY;
    }

    public void setPosY(int poxY) {
        this.posY = poxY;
    }


    public void paintComponent(Graphics g){

        g.drawString(this.str,this.posX, this.posY);

    }

}



 </pre><br /> <br /> <br /> frame class<br /> <br /> <br /> <pre>   


import gui.newpackage.*;
import threads.newpackage.*;
import javax.swing.JFrame;


public class MainWindow extends JFrame {

    InsidePane pane= new InsidePane();


    public MainWindow() {

        Thread mvt=new MovingThread();
        this.setSize(400,400);
        this.setContentPane(pane);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);
        mvt.start();


    }



}




 </pre><br /> <br /> <br /> test class<br /> <pre>    

public class test {

    public static void main(String args[]){

            MainWindow mw=new MainWindow();
            

    }




}



</pre><br /> <br /> <br /> <br /> Thanks<br /> ]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/488020/2193511</guid>
				<link>http://www.coderanch.com/forums/posts/preList/488020/2193511</link>
				<pubDate><![CDATA[Fri, Mar 19 2010 14:22:52 MDT]]></pubDate>
				<author><![CDATA[Faiz Abdelhafid]]></author>
			</item>
			<item>
				<title>How to set Scrollpane Knob color?</title>
				<description><![CDATA[Hi, I tried in vain searching in forums for help with how the change the color of ScrollpPne knob (The scrollbar controller knob). Can someone please let me know?]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/488019/2193506</guid>
				<link>http://www.coderanch.com/forums/posts/preList/488019/2193506</link>
				<pubDate><![CDATA[Fri, Mar 19 2010 14:17:14 MDT]]></pubDate>
				<author><![CDATA[Vikram Ramaswamy]]></author>
			</item>
			<item>
				<title>Line appears in image after scaling</title>
				<description><![CDATA[Hi,<br /> <br /> I'm having a problem with image scaling. When I use the following code to scale an image it ends up with a line either at the bottom or on the right side of the image.<br /> <pre>    
double scale = 1;
if (scaleHeight &gt;= scaleWidth) {
    scale = scaleWidth;
} else {
    scale = scaleHeight;
}
AffineTransform af = new AffineTransform();
af.scale(scale, scale);

AffineTransformOp operation = new AffineTransformOp(af, AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
BufferedImage bufferedThumb = operation.filter(img, null);
</pre><br /> The original image is here: <a class="snap_shots" href="http://tinyurl.com/yzv6r7h" target="_blank" rel="nofollow">http://tinyurl.com/yzv6r7h</a><br /> The scaled image: <a class="snap_shots" href="http://tinyurl.com/yk6e8ga" target="_blank" rel="nofollow">http://tinyurl.com/yk6e8ga</a><br /> <br /> Does anyone know why the line appears?<br /> <br /> Thanks!]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487973/2193231</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487973/2193231</link>
				<pubDate><![CDATA[Fri, Mar 19 2010 07:57:55 MDT]]></pubDate>
				<author><![CDATA[Markus Svensson]]></author>
			</item>
			<item>
				<title>Dialog with scroll bar for text and resizable</title>
				<description><![CDATA[Hi All,<br /> <br /> I want to create a confirmation dialog with text inside having a vertical and horizontal scrollbar also a option to user to resize the dialog. I tried doing this in following way but that doesnt work whenever I try to resize in vertical way the pane also goes to bottom and doesnt resize. Following is the snippet<br /> <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JTextArea.html" class="api" title="Java API" target="_new" rel="nofollow">JTextArea</a> textArea = new <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JTextArea.html" class="api" title="Java API" target="_new" rel="nofollow">JTextArea</a>();<br /> textArea.setText("Some text");<br /> textArea.setRows(10);<br />  textArea.setColumns(90);<br />  <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JScrollPane.html" class="api" title="Java API" target="_new" rel="nofollow">JScrollPane</a> scrollpane = new <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JScrollPane.html" class="api" title="Java API" target="_new" rel="nofollow">JScrollPane</a>(textArea);<br />  <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JPanel.html" class="api" title="Java API" target="_new" rel="nofollow">JPanel</a> panel = new <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JPanel.html" class="api" title="Java API" target="_new" rel="nofollow">JPanel</a>(new VerticalLayout() );<br />  panel.add("bottom",scrollpane );<br /> <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JLabel.html" class="api" title="Java API" target="_new" rel="nofollow">JLabel</a> label = new <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JLabel.html" class="api" title="Java API" target="_new" rel="nofollow">JLabel</a>("testing");<br /> panel.add("bottom",label);	<br /> <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JOptionPane.html" class="api" title="Java API" target="_new" rel="nofollow">JOptionPane</a> optionPane = new <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JOptionPane.html" class="api" title="Java API" target="_new" rel="nofollow">JOptionPane</a>(panel,JOptionPane.QUESTION_MESSAGE,JOptionPane.YES_NO_OPTION);<br /> <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JDialog.html" class="api" title="Java API" target="_new" rel="nofollow">JDialog</a> dialog = optPane.createDialog(null, "Press yes/no");<br /> dialog.setResizable(true);<br /> dialog.setVisible(true);<br /> <br /> Thanks]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487967/2193194</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487967/2193194</link>
				<pubDate><![CDATA[Fri, Mar 19 2010 07:14:57 MDT]]></pubDate>
				<author><![CDATA[aniketh kumar]]></author>
			</item>
			<item>
				<title>Displaying an image in a TextArea</title>
				<description><![CDATA[Is it possible to display an image in a <a href="http://java.sun.com/javase/6/docs/api/java/awt/TextArea.html" class="api" title="Java API" target="_new" rel="nofollow">TextArea</a>?<br /> If so , using what?<br /> <br /> thanks in advance.]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487961/2193174</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487961/2193174</link>
				<pubDate><![CDATA[Fri, Mar 19 2010 06:45:08 MDT]]></pubDate>
				<author><![CDATA[rohith yenumula]]></author>
			</item>
			<item>
				<title>GridLayout with weightx</title>
				<description><![CDATA[Hi guys, in my application that I'm working on, I need to use <a href="http://java.sun.com/javase/6/docs/api/java/awt/GridLayout.html" class="api" title="Java API" target="_new" rel="nofollow">GridLayout</a> but required the GridBagLayout/GridBagConstraints weightx feature. Reason to use is <a href="http://java.sun.com/javase/6/docs/api/java/awt/GridLayout.html" class="api" title="Java API" target="_new" rel="nofollow">GridLayout</a> automatically wrap components to the next line when user resize the GUI where <a href="http://java.sun.com/javase/6/docs/api/java/awt/GridBagLayout.html" class="api" title="Java API" target="_new" rel="nofollow">GridBagLayout</a> does not provides.<br /> <br /> Any idea for this issue? Please advise, thanks!]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487917/2192982</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487917/2192982</link>
				<pubDate><![CDATA[Fri, Mar 19 2010 02:16:54 MDT]]></pubDate>
				<author><![CDATA[Abu Nene]]></author>
			</item>
			<item>
				<title>how to disable cancel button in the input dialog box</title>
				<description><![CDATA[can someone please tell me how to disable the cancel button on the input dialog box. i would also like to disable the close operation. If you can provide an example it will be great]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487888/2192859</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487888/2192859</link>
				<pubDate><![CDATA[Thu, Mar 18 2010 22:49:57 MDT]]></pubDate>
				<author><![CDATA[Bruno Mesta]]></author>
			</item>
			<item>
				<title>Trying to implement autoscrolling on a jpanel that has a jscrollpane.</title>
				<description><![CDATA[The effect I am trying to get is when the user has his/her mouse pointer at a certain pixel location the scroll bar automatically scrolls to the right until, they mouse isnt at that position anymore. Here is what I have so far...<br /> <pre>    
public void mouseMoved(MouseEvent e) {
		
		if(e.getX() &gt;= 900){
                                //gets the current viewport x value and then increments 5 pixels to it
				scrollPane.getViewport().setViewPosition(new Point((int)scrollPane.getViewport().getViewPosition().getX()+5,0));

		}
		System.out.println(e.getX() + &quot;,&quot; + e.getY());
		
	}

</pre><br /> <br /> This works somewhat. The problem is that the mouseMoved event is only fired when the mouse is moved, so to get the scrollpane to scroll you have to constantly move the mouse. Now I looked at other mouse events like mouseEnter or mouseDragged but they have the same problem. Anyone have any ideas?]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487838/2192619</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487838/2192619</link>
				<pubDate><![CDATA[Thu, Mar 18 2010 11:59:27 MDT]]></pubDate>
				<author><![CDATA[Max Eddy]]></author>
			</item>
			<item>
				<title>Issue with Copy and Paste from external source to applet.</title>
				<description><![CDATA[I have a signed applet that I need to allow users to paste images into.  I understand the Clipboard, Transferable, <a href="http://java.sun.com/javase/6/docs/api/java/awt/datatransfer/DataFlavor.html" class="api" title="Java API" target="_new" rel="nofollow">DataFlavor</a> concepts and have been able to get something working.<br /> <br /> I can past any image that I copy from within Internet Explorer, however, when I try to copy it from the desktop (Windows Explorer) the imageFlavor isn't supported.<br /> <br /> OS = Windows 7<br /> JRE is RAD JVM 1.5 (set for 1.4 compatibility)<br /> <br /> When copied from the OS and pasted, this is the only supported <a href="http://java.sun.com/javase/6/docs/api/java/awt/datatransfer/DataFlavor.html" class="api" title="Java API" target="_new" rel="nofollow">DataFlavor</a>...<br /> <pre>
java.awt.datatransfer.DataFlavor[mimetype=application/x-java-file-list;representationclass=java.util.List]
</pre><br /> When copied from within IE (right click, copy) and pasted I get these DataFlavors...<br /> <pre>
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=java.io.Reader]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=java.lang.String]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=java.nio.CharBuffer]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=[C]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=java.io.InputStream;charset=UTF-16]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=java.nio.ByteBuffer;charset=UTF-16]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=[B;charset=UTF-16]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=java.io.InputStream;charset=UTF-8]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=java.nio.ByteBuffer;charset=UTF-8]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=[B;charset=UTF-8]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=java.io.InputStream;charset=UTF-16BE]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=java.nio.ByteBuffer;charset=UTF-16BE]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=[B;charset=UTF-16BE]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=java.io.InputStream;charset=UTF-16LE]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=java.nio.ByteBuffer;charset=UTF-16LE]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=[B;charset=UTF-16LE]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=java.io.InputStream;charset=Cp1252]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=java.nio.ByteBuffer;charset=Cp1252]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=[B;charset=Cp1252]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=java.io.InputStream;charset=ISO-8859-1]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=java.nio.ByteBuffer;charset=ISO-8859-1]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=[B;charset=ISO-8859-1]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=java.io.InputStream;charset=US-ASCII]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=java.nio.ByteBuffer;charset=US-ASCII]
java.awt.datatransfer.DataFlavor[mimetype=text/html;representationclass=[B;charset=US-ASCII]
java.awt.datatransfer.DataFlavor[mimetype=image/x-java-image;representationclass=java.awt.Image]
</pre><br /> <br /> Is there a way to add x-java-image to the list of supported flavors to the clipboard?  Preferably within my applet.<br /> <br /> Thanks in advance.]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487817/2192490</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487817/2192490</link>
				<pubDate><![CDATA[Thu, Mar 18 2010 09:36:46 MDT]]></pubDate>
				<author><![CDATA[Heath Lilley]]></author>
			</item>
			<item>
				<title>overlay window</title>
				<description><![CDATA[How could I make a frame window that stays on top of all other windows... but at the same time isn't in focus?  Like a glass pane that just stays on top of all other windows but does not receive any input focus (all other applications continue as is).  For example: the balloon messages in windows.  They are always on top but they never receive any input focus.  <br /> <br /> Or is it possible for it to receive input focus while all other applications are still unaffected?  Like... if i'm typing in word, and a window pop up.. the word document still receives the keyevents.]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487698/2191850</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487698/2191850</link>
				<pubDate><![CDATA[Wed, Mar 17 2010 18:59:51 MDT]]></pubDate>
				<author><![CDATA[Daniel Gen Li]]></author>
			</item>
			<item>
				<title>frame vs. JFrame</title>
				<description><![CDATA[Is there a difference between using frame or <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JFrame.html" class="api" title="Java API" target="_new" rel="nofollow">JFrame</a> as in the following? As, when I ran the program it operated the same.<br /> <br /> <pre>    
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
</pre><br /> <br /> <pre>    
frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE);
</pre><br /> <br /> Thanks.<br /> ]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487657/2191616</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487657/2191616</link>
				<pubDate><![CDATA[Wed, Mar 17 2010 11:15:02 MDT]]></pubDate>
				<author><![CDATA[Abder Rahman Ali]]></author>
			</item>
			<item>
				<title>A gradient paint background for a JLabel</title>
				<description><![CDATA[I'm using a <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JTree.html" class="api" title="Java API" target="_new" rel="nofollow">JTree</a> that simply holds Strings.  As I understand it, these Strings are written inside JLabels - its basically a tree of JLabels.  I have successfully changed the background colour of my JLabels but - to make the JLabels match the look and feel of other GUI components I have created, I need to be able to put a gradient onto the background of the <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JLabel.html" class="api" title="Java API" target="_new" rel="nofollow">JLabel</a>.  Any ideas as to how I can do that?]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487560/2191068</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487560/2191068</link>
				<pubDate><![CDATA[Wed, Mar 17 2010 00:21:55 MDT]]></pubDate>
				<author><![CDATA[Rupert Brown]]></author>
			</item>
			<item>
				<title>NetBeans manually added component does not appear</title>
				<description><![CDATA[hi all,<br /> <br /> <br /> When I programmatically add a component such as a list or button to a frame that I have used code to build then it will appear fine but I have an issue where the NetBeans frame that I have created and which is full of the NetBeans generated code, does not seem to respect the component that I add and thus it is not displayed.<br /> <br /> I can for example, add a border to the panel through code which does show on screen when the project is run but a <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JButton.html" class="api" title="Java API" target="_new" rel="nofollow">JButton</a> or list for example will not. Why might this be?<br /> <br /> <pre>

public class MainFrame extends javax.swing.JFrame {

    /** Creates new form MainFrame */
    public MainFrame() {
        initComponents();
        this.setDefaultCloseOperation(EXIT_ON_CLOSE);
        Border spacer = BorderFactory.createEmptyBorder(5, 5, 5, 5);
        jPanel1.setBackground(Color.WHITE);
        jPanel1.setBorder(BorderFactory.createLineBorder(Color.BLACK,1));
       
        jPanel2.setBorder(spacer);
        jPanel3.setBorder(spacer);
        
        

        Set set = Categories.parentCategories.keySet();
        Object[] categories = set.toArray();
        JList categoryList = new JList(categories);
        JScrollPane jsp = new JScrollPane(categoryList);
             
        // adding the list below does not appear
        jPanel2.add(jsp);  ????????????
        
       // even  if I add a new button it does not show
      jPanel2.add(new JButton(&quot;Test&quot;)); ?????????????
        

        
        
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings(&quot;unchecked&quot;)
    // &lt;editor-fold defaultstate=&quot;collapsed&quot; desc=&quot;Generated Code&quot;&gt;                          
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        jPanel3 = new javax.swing.JPanel();
        jPanel4 = new javax.swing.JPanel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle(&quot;Personal Home Budget&quot;);

        jPanel2.setBackground(new java.awt.Color(241, 255, 204));
        jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 289, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 154, Short.MAX_VALUE)
        );

        jPanel3.setBackground(new java.awt.Color(241, 255, 204));
        jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        org.jdesktop.layout.GroupLayout jPanel3Layout = new org.jdesktop.layout.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 523, Short.MAX_VALUE)
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 94, Short.MAX_VALUE)
        );

        org.jdesktop.layout.GroupLayout jPanel4Layout = new org.jdesktop.layout.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 100, Short.MAX_VALUE)
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 100, Short.MAX_VALUE)
        );

        org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel1Layout.createSequentialGroup()
                .add(30, 30, 30)
                .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel1Layout.createSequentialGroup()
                        .add(jPanel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(69, 69, 69)
                        .add(jPanel4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(jPanel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(jPanel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jPanel4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(38, 38, 38)
                .add(jPanel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(50, Short.MAX_VALUE))
        );

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(24, 24, 24)
                .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(20, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(25, Short.MAX_VALUE))
        );

        pack();
    }// &lt;/editor-fold&gt;                        

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new MainFrame().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify                     
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    // End of variables declaration                   
   
    
}

</pre><br /> <br /> <br /> I hope someone can shed some light thanks,<br /> <br /> Colm]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487526/2190881</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487526/2190881</link>
				<pubDate><![CDATA[Tue, Mar 16 2010 16:43:00 MDT]]></pubDate>
				<author><![CDATA[Colm Dickson]]></author>
			</item>
			<item>
				<title>regarding repaint() in JTabbedPane</title>
				<description><![CDATA[Hi,<br /> <br /> I have a tabbedpane , which has 2 panes(panels), with following specifications: <br /> <br /> First Pane - Registeration form and add record button , which is writing the new record into database. <br /> Second Pane- Displays the datas in <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JTable.html" class="api" title="Java API" target="_new" rel="nofollow">JTable</a><br /> <br /> when i click to "add record" button the data is written in to the database , no problem , but when i switch to Second Pane , it displays the same old data. If I'm running the program again then the data is displayed . <br /> <br /> I tried by placing a button in Second Panel "re-load table" , and handled it simply like this <br /> <pre>public void actionPerformed(ActionEvent ae) {

               repaint();
	}</pre> whichi s also not working ....<br /> <br /> I tried with <a href="http://java.sun.com/javase/6/docs/api/javax/swing/event/ChangeListener.html" class="api" title="Java API" target="_new" rel="nofollow">ChangeListener</a>(state changed) of <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JTabbedPane.html" class="api" title="Java API" target="_new" rel="nofollow">JTabbedPane</a> but got confused . <br /> <br /> I want that when the user has added a record from the first Pane , and the moment he switches to Second Pane ,the just added datas to be displayed automatically.<br /> <br /> Appreciate your kind help<br /> <br /> Regards<br /> <br /> <br /> ]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487516/2190826</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487516/2190826</link>
				<pubDate><![CDATA[Tue, Mar 16 2010 14:38:49 MDT]]></pubDate>
				<author><![CDATA[Thamu Gurung]]></author>
			</item>
			<item>
				<title>update statement?</title>
				<description><![CDATA[hi,<br /> i have a question...<br /> i use Eclipse but i'm not very advanced in <a href="http://www.javaranch.com" class="faq" title="A Friendly Place for Java Greenhorns" target="_new">java</a>...<br /> i wrote a sql statement in java by doing this : <pre> String qry = "select StudentId, StudentName, Majorid, Yeargraduated from STUDENT;";   </pre><br /> and the above sql statement worked perfectly<br /> <br /> but i want to do the same with an update sql statement, so here is what i want to do: I have a <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JTable.html" class="api" title="Java API" target="_new" rel="nofollow">JTable</a>(the one that the user can edit, and i want each time the user clicks on the jtable ( i can display the table and it's editable and it is changed...) i want the changes to be editable in the database itself.....so here is what i have in mind:<br /> <pre>  String updatequery = "UPDATE table SET ......"  </pre><br /> <br /> <br /> I want to set the string i enter in the text field to be the string in the place of the original string that is already in the table...i have 4 columns...1st one is student id, then the name, then the major , then the year graduated...<br /> for example: if he changed the id of the student called steven from 1 to 6...so i want the 6 to be in the place of the 1 and i want the change to be in the database too and not only on the table....<br /> help?]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487504/2190776</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487504/2190776</link>
				<pubDate><![CDATA[Tue, Mar 16 2010 13:12:48 MDT]]></pubDate>
				<author><![CDATA[nadine nicole]]></author>
			</item>
			<item>
				<title>Unable to add vertical scrollbar to SWT table</title>
				<description><![CDATA[I have a SWT table and im unable  to  add vertical scroll bar to it <br />  :( ..can nyone help me out. I have  passed SWT.V_scroll to table constructor <br /> <br /> ]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487429/2190382</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487429/2190382</link>
				<pubDate><![CDATA[Tue, Mar 16 2010 04:35:42 MDT]]></pubDate>
				<author><![CDATA[Ajay poonia]]></author>
			</item>
			<item>
				<title>how to prevent wrapping in conjunction with FlowLayout?</title>
				<description><![CDATA[Hi all,<br /> <br /> One of my dialogs is composed of several panes. One of these panes in the bottom of the <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JDialog.html" class="api" title="Java API" target="_new" rel="nofollow">JDialog</a> holds all buttons, all of which are aligned horizontally in a row setting the layout of the containing <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JPanel.html" class="api" title="Java API" target="_new" rel="nofollow">JPanel</a> to FLowLayout.<br /> <br /> When decreasing the size of the dialog, at a certain point, that is the horizontal space of the pane isn't enough anymore to display all buttons in a single row, wrapping comes into play.<br /> It looks really bad!<br /> How can I avoid this wrapping behavior in <a href="http://java.sun.com/javase/6/docs/api/java/awt/FlowLayout.html" class="api" title="Java API" target="_new" rel="nofollow">FlowLayout</a>? Do I have to use another <a href="http://java.sun.com/javase/6/docs/api/java/awt/LayoutManager.html" class="api" title="Java API" target="_new" rel="nofollow">LayoutManager</a> like <a href="http://java.sun.com/javase/6/docs/api/javax/swing/BoxLayout.html" class="api" title="Java API" target="_new" rel="nofollow">BoxLayout</a>?<br /> <br /> Thanks,<br /> Andy]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487340/2189924</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487340/2189924</link>
				<pubDate><![CDATA[Mon, Mar 15 2010 12:53:51 MDT]]></pubDate>
				<author><![CDATA[Andy Jung]]></author>
			</item>
			<item>
				<title>rsyntaxtextarea - little help</title>
				<description><![CDATA[Hello Everyone.<br /> <br /> Currenlty I'm <a class="snap_shots" href="http://fifesoft.com/rsyntaxtextarea/" target="_blank" rel="nofollow">http://fifesoft.com/rsyntaxtextarea/</a> usser (this is new highlighting library)<br /> <br /> Ok, so I have little problem.. I made my own problem in swing etc.<br /> <br /> Ok in example i had something like:<br /> <br /> <br /> <blockquote class="uncited">
			<div>		<a href="http://java.sun.com/javase/6/docs/api/javax/swing/JPanel.html" class="api" title="Java API" target="_new" rel="nofollow">JPanel</a> contentPane = new <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JPanel.html" class="api" title="Java API" target="_new" rel="nofollow">JPanel</a>(new <a href="http://java.sun.com/javase/6/docs/api/java/awt/BorderLayout.html" class="api" title="Java API" target="_new" rel="nofollow">BorderLayout</a>());<br /> 		RSyntaxTextArea textArea = new RSyntaxTextArea(20, 60);<br /> 		textArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA);<br /> 		contentPane.add(new RTextScrollPane(textArea));<br />                 setContentPane(contentPane);</div>
		</blockquote><br /> <br /> and than i have this TextPane on FULL SCREEN .. and now i dont know how can i add it ONLY into my JPANE.. i have Jpande called jpane1, and i did something like:<br /> <br /> jpane1.add(textArea);<br /> <br /> but it doesnt work, anyone can help me?]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487339/2189917</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487339/2189917</link>
				<pubDate><![CDATA[Mon, Mar 15 2010 12:44:26 MDT]]></pubDate>
				<author><![CDATA[Mateusz Mysliwiec]]></author>
			</item>
			<item>
				<title>how to position dialogs relative to their parent frame</title>
				<description><![CDATA[Hi all,<br /> <br /> 1. how can I dynamically position a <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JDialog.html" class="api" title="Java API" target="_new" rel="nofollow">JDialog</a> in the center of its parent <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JFrame.html" class="api" title="Java API" target="_new" rel="nofollow">JFrame</a>?<br /> 2. how can I initially set the size of a <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JFrame.html" class="api" title="Java API" target="_new" rel="nofollow">JFrame</a> in relation to the current graphics environment, screen resolution etc.?<br /> <br /> Please send me some code example.<br /> <br /> Thanks,<br /> Andy]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487338/2189916</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487338/2189916</link>
				<pubDate><![CDATA[Mon, Mar 15 2010 12:43:51 MDT]]></pubDate>
				<author><![CDATA[Andy Jung]]></author>
			</item>
			<item>
				<title>swt -  dialog, SWT and JFace.</title>
				<description><![CDATA[I am very new in SWT.<br /> <br /> Does SWT provides Dialog library function?<br /> What are difference between SWT and JFace?<br /> Thanks in advance. ]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487329/2189877</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487329/2189877</link>
				<pubDate><![CDATA[Mon, Mar 15 2010 11:19:47 MDT]]></pubDate>
				<author><![CDATA[Kee Kee moon]]></author>
			</item>
			<item>
				<title>awt colors</title>
				<description><![CDATA[Hi, <br /> <br /> I'm looking for a color navy blue in Awt.<br /> <br /> I have seen the colors in AWT.<br /> <br />  <a href="http://java.sun.com/javase/6/docs/api/java/awt/Color.html" class="api" title="Java API" target="_new" rel="nofollow">java.awt.Color</a>;<br /> <br /> But I want  navy blue.<br /> <br /> How would I get it in AWT?<br /> <br /> <br /> Can anyone  please help me?<br /> <br /> Thanks<br /> <br /> ]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487325/2189853</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487325/2189853</link>
				<pubDate><![CDATA[Mon, Mar 15 2010 10:48:52 MDT]]></pubDate>
				<author><![CDATA[anvi kon]]></author>
			</item>
			<item>
				<title>JTextField scrolling question?</title>
				<description><![CDATA[Hi, this is my first post here... anyway, I've got a bit of a problem.<br /> <br /> Here it is<br /> | - represents cursor/caret<br /> [ ] - represents the <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JTextField.html" class="api" title="Java API" target="_new" rel="nofollow">JTextField</a> and bold text is the text within it that is visible to the user.<br /> &lt;&gt;Text in <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JTextField.html" class="api" title="Java API" target="_new" rel="nofollow">JTextField</a>, but is not visible to the user.<br /> <br /> &lt; [<b>Hello there m</b>|<b>y name is Andy </b>] I'm 100 years old&gt;<br /> <br /> What I want to be able to do is scroll through like this.<br /> &lt;H [<b>ello there my</b>|<b> name is Andy I</b>] 'm 100 years old&gt;<br /> <br /> so the caret stays in the middle and it also shifts the ScrollOffset in such a way that the caret is almost exactly in the middle.<br /> <br /> What I'm ultimately trying to achieve is make a couple of characters right after the caret  visible to the user.<br /> <br /> Edit: A few more questions if no one has the answer to the one above... These might help me quite a lot.<br /> 1. Is there a way to find the position of the caret within jTextField in pixels from the left or right?<br /> 2. Is there a way to find pixels per character displayed in the JTextBox?]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487322/2189835</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487322/2189835</link>
				<pubDate><![CDATA[Mon, Mar 15 2010 10:30:40 MDT]]></pubDate>
				<author><![CDATA[Andrew L. Williams]]></author>
			</item>
			<item>
				<title>how to scroll by code</title>
				<description><![CDATA[Hi folks!<br /> <br /> <b>The situation:</b><br /> <br /> I have a <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JTextArea.html" class="api" title="Java API" target="_new" rel="nofollow">JTextArea</a> embedded in a JScrollPanel which allows to scroll the text vertically.<br /> The textarea serves as a kind of a log pane in my application, adding functional steps line by line to the area from top to bottom.<br /> <br /> <b>The problem:</b><br /> <br /> Automatic scrolling is done in a way that always the first logs are displayed in the area. If the user wants to see the last logs he has to manually scroll down.<br /> <br /> <b>My question:</b><br /> <br /> How is it possible to enable the last statements being displayed in the area instead of the first ones?<br /> <br /> Kind regards,<br /> Andy]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487317/2189797</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487317/2189797</link>
				<pubDate><![CDATA[Mon, Mar 15 2010 09:36:06 MDT]]></pubDate>
				<author><![CDATA[Andy Jung]]></author>
			</item>
			<item>
				<title>limit text-input on a JTextField</title>
				<description><![CDATA[Hi folks!<br /> <br /> In my Swing-GUI I have an input mask made up of several <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JTextField.html" class="api" title="Java API" target="_new" rel="nofollow">JTextField</a> components.<br /> How is it possible to configure those fields in a way, that they only accept up to a certain number of characters?<br /> I tried to use setSize() and <a href="http://java.sun.com/javase/6/docs/api/javax/swing/InputVerifier.html" class="api" title="Java API" target="_new" rel="nofollow">javax.swing.InputVerifier</a> but neither of these worked in the way I want it.<br /> <br /> Maybe it is necessary to write an own <a href="http://java.sun.com/javase/6/docs/api/org/w3c/dom/events/EventListener.html" class="api" title="Java API" target="_new" rel="nofollow">EventListener</a> listening on and counting each character inserted in the field?<br /> <br /> Kind regards,<br /> Andy ]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487313/2189781</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487313/2189781</link>
				<pubDate><![CDATA[Mon, Mar 15 2010 09:24:30 MDT]]></pubDate>
				<author><![CDATA[Andy Jung]]></author>
			</item>
			<item>
				<title>interface updating</title>
				<description><![CDATA[Sorry about the other two threads, It simply cut off the contents halfway, it wouldn't display the rest!<br /> <br /> I'll try and express my problem more concisely.<br /> <br /> I have invented a new component Histogram which extends <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html" class="api" title="Java API" target="_new" rel="nofollow">JComponent</a>.<br /> <br /> I have an array[] of histogram objects.<br /> <br /> I'm displaying a array[0] in a pane on my GUI, and I have a method update() which puts a new, different Histogram object in array[0]. I want the GUI to automatically reflect this change by displaying the new array[0] component instead of the old one.<br /> <br /> How do I do this?<br /> <br /> Thanks!]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487291/2189641</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487291/2189641</link>
				<pubDate><![CDATA[Mon, Mar 15 2010 06:47:57 MDT]]></pubDate>
				<author><![CDATA[Lorenzo Levrini]]></author>
			</item>
			<item>
				<title>interface updating problem</title>
				<description><![CDATA[Hi all,<br /> <br /> I am displaying image histograms on a user interface. Each histogram is represented by a class I wrote which extends <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html" class="api" title="Java API" target="_new" rel="nofollow">JComponent</a>. The painting is done the proper way through paintComponent and repaint() and it works great.<br /> <br /> In my GUI constructor, I display the histograms..<br /> <br /> <pre>       
pane7.add(graphs[0]);
pane7.add(graphs[1]);
pane7.add(graphs[2]);
</pre><br /> <br /> And whenever I change the image, I call an update() method that contains the following line of code to update the histograms:<br /> <br /> [code] graphs = plotter.plotRGB(currentImage); // Create histograms]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487288/2189624</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487288/2189624</link>
				<pubDate><![CDATA[Mon, Mar 15 2010 06:34:45 MDT]]></pubDate>
				<author><![CDATA[Lorenzo Levrini]]></author>
			</item>
			<item>
				<title>addActionListener in HTML</title>
				<description><![CDATA[This is a long shot, but is it possible to call a Swing actionPerformed/actionListner from a HREF within a Swing app in the same way as say from a <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JButton.html" class="api" title="Java API" target="_new" rel="nofollow">JButton</a>?<br /> <br /> I am using a <a href="http://java.sun.com/javase/6/docs/api/java/lang/StringBuffer.html" class="api" title="Java API" target="_new" rel="nofollow">StringBuffer</a> to create a HTML label to display some text to my Swing app page, but I need links to another panel within this page.<br /> So I was thinking (hoping) there might be some way to create a <a ></a> type funtion within the page.<br /> <br /> Anyone have any ideas (presuming my explanation actually makes sense)<br /> <br /> KS]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487284/2189608</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487284/2189608</link>
				<pubDate><![CDATA[Mon, Mar 15 2010 06:08:11 MDT]]></pubDate>
				<author><![CDATA[Keith SmithA]]></author>
			</item>
			<item>
				<title>installer</title>
				<description><![CDATA[i am developing a software in <b><u><a href="http://www.javaranch.com" class="faq" title="A Friendly Place for Java Greenhorns" target="_new">java</a> to automate the installation of a oracle </u></b>software.<br /> i am just a beginner and want to know how to start developing it?<br /> i want to know the basic idea?<br /> <br /> How can i make button click from the code itself?<br /> AND <br /> How to select a checkbox from the code?<br /> can anyone help?]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487267/2189539</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487267/2189539</link>
				<pubDate><![CDATA[Mon, Mar 15 2010 04:27:10 MDT]]></pubDate>
				<author><![CDATA[sonia arora]]></author>
			</item>
			<item>
				<title>How to Validate JTextField to Does not Accept NumberS</title>
				<description><![CDATA[Hi Guys,<br /> I am trying to validate a text field to catch exception when a user enters an int(number) type in the name field(<a href="http://java.sun.com/javase/6/docs/api/javax/swing/JTextField.html" class="api" title="Java API" target="_new" rel="nofollow">JTextField</a>) of my application<br /> Could you please let me know how should I do it?<br /> Could you please give an example of how I can create my own exception class regarding this issue?!<br /> <br /> Best Regards,<br /> Behrouz]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487264/2189525</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487264/2189525</link>
				<pubDate><![CDATA[Mon, Mar 15 2010 04:08:11 MDT]]></pubDate>
				<author><![CDATA[Behrouz Hosseini]]></author>
			</item>
			<item>
				<title>How to display a popup menu on right click in swing</title>
				<description><![CDATA[How to display a pop up menu on right click on a swing label]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487245/2189428</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487245/2189428</link>
				<pubDate><![CDATA[Mon, Mar 15 2010 01:33:07 MDT]]></pubDate>
				<author><![CDATA[Deepaks Deshpande]]></author>
			</item>
			<item>
				<title>Assigning shortcut keys to Buttons in SWT</title>
				<description><![CDATA[Hi All,<br /> <br />     I have two buttons in my form and have assigned shortcut to one button as '&A' and other one as '&a'.<br />     The problem is that when I press Ctrl+A or Ctrl+a, always the first button is getting clicked (i.e. one with &A).<br /> <br />     Is there any way in SWT to assign shortcut keys on lowercase and uppercase letters?<br /> <br /> Thanks in advance,<br /> Vinayak.]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487239/2189401</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487239/2189401</link>
				<pubDate><![CDATA[Mon, Mar 15 2010 01:02:53 MDT]]></pubDate>
				<author><![CDATA[Vinayak Jallapelli]]></author>
			</item>
			<item>
				<title>checkbox as node in JTree</title>
				<description><![CDATA[I have implemented a <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JTree.html" class="api" title="Java API" target="_new" rel="nofollow">JTree</a> with Nodes as checkboxes using  code given at this link.<br /> <a class="snap_shots" href="http://www.java2s.com/Code/Java/Swing-JFC/CheckBoxNodeTreeSample.htm" target="_blank" rel="nofollow">http://www.java2s.com/Code/Java/Swing-JFC/CheckBoxNodeTreeSample.htm</a><br /> but i want to know <br /> how can i attach a event handler with the node of the tree?]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487223/2189358</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487223/2189358</link>
				<pubDate><![CDATA[Mon, Mar 15 2010 00:03:23 MDT]]></pubDate>
				<author><![CDATA[sonia arora]]></author>
			</item>
			<item>
				<title>Problem in reading JTable cell data.</title>
				<description><![CDATA[Hi All,<br />        I am new to Swings. <br />        As part of my swings app, i am using Jtable to let the user enter some data.<br />        I am using below code to the read the data from the table.       <br /> <br /> <pre>DefaultTableModel model = (DefaultTableModel)FileDetailsTable.getModel();
...
...

model.getValueAt(i, j);</pre><br /> <br />      I am unable to read the content of the cell which has focus. I mean if the user enters three data in three rows  and the last column of the last row still has the focus with some user entered data, if I read this cell data it is coming as null.<br /> <br />     Is this default behaviour of the <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JTable.html" class="api" title="Java API" target="_new" rel="nofollow">JTable</a> which can' t be changed or any fix for it?<br /> <br /> Thanks in advance...<br /> <br /> Bala.]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487212/2189332</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487212/2189332</link>
				<pubDate><![CDATA[Sun, Mar 14 2010 23:02:00 MDT]]></pubDate>
				<author><![CDATA[Bala Gangadhar]]></author>
			</item>
			<item>
				<title>Regarding Swing TextArea</title>
				<description><![CDATA[Hi All,<br /> I need help in regarding textarea<br /> where output is a string coming from different class method.<br /> textarea.settext(ouput);<br /> In textarea,I am showing output lets say { <a href="http://www.javaranch.com" class="faq" title="A Friendly Place for Java Greenhorns" target="_new">java</a>,java1,java2,java3)<br /> now i want to do some eventlistner or button<br /> if i select java then show this oop from textarea<br /> if i select java1 then show this oop1 from textarea<br /> if i select java2 then show this oop2 from textarea<br /> if i select java3 then show this oop3 from textarea<br /> can i make <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JList.html" class="api" title="Java API" target="_new" rel="nofollow">JList</a> or what<br /> ??<br /> <br /> ]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487177/2189168</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487177/2189168</link>
				<pubDate><![CDATA[Sun, Mar 14 2010 15:46:29 MDT]]></pubDate>
				<author><![CDATA[Krunal Naik]]></author>
			</item>
			<item>
				<title>JOptionPane with Multiple InputText boxes</title>
				<description><![CDATA[Hi <a href="http://www.javaranch.com" class="faq" title="A Friendly Place for Java Greenhorns" target="_new">Java</a> Guru's,<br /> <br /> <br /> As per the requirement I have to use a single <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JOptionPane.html" class="api" title="Java API" target="_new" rel="nofollow">JOptionPane</a> with three input textboxes for taking three inputs.<br /> Kindly help me how to do that.<br /> <br /> Thanks in advance..<br /> Java Aspirant]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487168/2189144</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487168/2189144</link>
				<pubDate><![CDATA[Sun, Mar 14 2010 14:28:57 MDT]]></pubDate>
				<author><![CDATA[Faraz Alig]]></author>
			</item>
			<item>
				<title>tabFolder, table and SWT.EraseItem problem</title>
				<description><![CDATA[I am using SWT to create a GUI for my program.<br /> I have a shell with a tabFolder with two tabItems.<br /> Each of the tabItems controls a different table, so I have two tables in total.<br /> Every 5 minutes I update the contents of both of the tables.<br /> I searched for a way to customize the color of a selected item in a table, and I found information regarding SWT.EraseItem to make this possible.<br /> I used this snippet:<br /> <pre> 
table1.addListener(SWT.EraseItem, new Listener() {
			   public void handleEvent(Event event) {
				      event.detail &= ~SWT.HOT;
				      if ((event.detail & SWT.SELECTED) == 0) return; /* item not selected */
				      int clientWidth = table1.getClientArea().width;
				      GC gc = event.gc;
				      Color oldForeground = gc.getForeground();
				      Color oldBackground = gc.getBackground();
			      gc.setForeground(red);
				      gc.setBackground(red);
				      gc.fillGradientRectangle(0, event.y, clientWidth, event.height, false);
				      gc.setForeground(oldForeground);
				      gc.setBackground(oldBackground);
				      event.detail &= ~SWT.SELECTED;
				   }
				});
  </pre><br /> <br /> Here is my problem:<br /> When I have selected table2 (tabItem2), and my tables are updated, the first table, table1 gets focus, you can only see table1, though the selected tabItem appears to be tabItem2. <br /> I hope my problem is clear to you, so when updating the tables, the eraseItem listener causes the first table to appear even if the second table is selected.]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487164/2189129</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487164/2189129</link>
				<pubDate><![CDATA[Sun, Mar 14 2010 13:07:00 MDT]]></pubDate>
				<author><![CDATA[Jonathan Smiths]]></author>
			</item>
			<item>
				<title>Reporting Tool </title>
				<description><![CDATA[Hi guys , I am trying to build a small reporting tool as a proof of concept <br /> The basic idea is to connect to a database , get some tables and drag and drop them onto the report where the data in the tables will get displayed .<br /> Now there are 2 problems :- <br /> 1&gt; How to create a workspace where i can drag the tables <br /> 2&gt; How to drag and drop the tables <br />  :jumpingjoy: ]]></description>
				<guid isPermaLink="true">http://www.coderanch.com/forums/posts/preList/487149/2189035</guid>
				<link>http://www.coderanch.com/forums/posts/preList/487149/2189035</link>
				<pubDate><![CDATA[Sun, Mar 14 2010 09:50:48 MDT]]></pubDate>
				<author><![CDATA[guptabandhu roy]]></author>
			</item>
	</channel>
</rss>
