<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by purple07</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Thu, 11 Jun 2026 11:30:30 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>use of GPL software</title>
            <link>http://forum.lowyat.net/topic/801164</link>
            <description>hi, i found got many open source software are licensed under GPL, but i just wonder whether we can use GPL software to develop commercial software? &lt;br /&gt;&lt;br /&gt;i tried to read the research of GPL, but seem it is not clearly stated about this case or i misread it...all i know is if we modify GPL software, we must give our source code too...&lt;br /&gt;&lt;br /&gt;how about if we develop our own software with GPL software? &lt;!--emo&amp;:stars:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/rclxub.gif' border='0' style='vertical-align:middle' alt='rclxub.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>purple07</author>
            <category>Linux &amp;amp; Open Source Software</category>
            <pubDate>Thu, 25 Sep 2008 16:14:03 +0800</pubDate>
        </item>
        <item>
            <title>Need help for postgresql</title>
            <link>http://forum.lowyat.net/topic/797502</link>
            <description>currently, i try to configure postgresql in my pc, but face some problems here.&lt;br /&gt;i did install postgresql successfully for a few time in my pc, but due to want to test and more understand it, i uninstalled it for further testing. now, i fail to install it as an error message keep pop up...&lt;br /&gt;&lt;br /&gt;i have attached the captured picture here.</description>
            <author>purple07</author>
            <category>Codemasters</category>
            <pubDate>Sun, 21 Sep 2008 17:36:41 +0800</pubDate>
        </item>
        <item>
            <title>my application&amp;#39;s database</title>
            <link>http://forum.lowyat.net/topic/793406</link>
            <description>hi, i&amp;#39;m using HSQLDB as my java application database. but, it only able to support about 30k of my application record. the more records will make it fail.&lt;br /&gt;from the hsqldb guide, it shouldn&amp;#39;t be support only so little record.&lt;br /&gt;&lt;br /&gt;so, i just wonder whether is my java code problem, i.e. the way i code utilize most of the memory, causing not enough memory for my database?(hsqldb is run based on the hardware memory)&lt;br /&gt;&lt;br /&gt;FYI, in my application there are 3 main panels, each time the particular panel is called, then i&amp;#39;ll code that so my resultset will get the new set of recordset like:&lt;br /&gt;&lt;br /&gt;rs = stm.executeQuery(&amp;quot;SELECT * FROM mytbl ORDER BY id&amp;quot;);&lt;br /&gt;&lt;br /&gt;so, rs will keep refresh it&amp;#39;s recordset. i just want to know will this keep taking new memory&lt;br /&gt;space for rs?</description>
            <author>purple07</author>
            <category>Codemasters</category>
            <pubDate>Tue, 16 Sep 2008 21:07:12 +0800</pubDate>
        </item>
        <item>
            <title>Apostrophe in insert record</title>
            <link>http://forum.lowyat.net/topic/779468</link>
            <description>i tried to add a new record with apostrophe(&amp;#39;) in a string e.g &amp;quot;It&amp;#39;s Java&amp;quot; but it keep throw SQLException, can I know what&amp;#39;s the problem? A string with apostrophe can&amp;#39;t be added? but, when i edit the record with adding an apostrophe, it&amp;#39;s allowed.</description>
            <author>purple07</author>
            <category>Codemasters</category>
            <pubDate>Sat, 30 Aug 2008 20:31:25 +0800</pubDate>
        </item>
        <item>
            <title>JTextArea problem</title>
            <link>http://forum.lowyat.net/topic/779296</link>
            <description>how can i code my JTextArea that will has a specified length of width and when the entry come to the end of the component, it&amp;#39;ll directly wrap to the next line?</description>
            <author>purple07</author>
            <category>Codemasters</category>
            <pubDate>Sat, 30 Aug 2008 15:31:44 +0800</pubDate>
        </item>
        <item>
            <title>Need help for Java sorter</title>
            <link>http://forum.lowyat.net/topic/779158</link>
            <description>hi, i have set a sorter to my JTable to filter out the records. this is my line of code&lt;br /&gt;&lt;br /&gt;sorter.setRowFilter(RowFilter.regexFilter(filterText.getText().toLowerCase(), selectOption)); &lt;br /&gt;&lt;br /&gt;where the user entry will get from filterText, but i faced a problem here...&lt;br /&gt;let&amp;#39;s say my JTable contains a row that is &amp;quot;&lt;span style='color:blue'&gt;J&lt;/span&gt;ava is powerful&amp;quot;, when user enter &amp;quot;&lt;span style='color:blue'&gt;j&lt;/span&gt;ava is powerful&amp;quot;, it&amp;#39;s fail to filter out for the lower case issue...&lt;br /&gt;&lt;br /&gt;so, how can i solve this problem to make it the filter is trace only the character but ignore the upper or lower case?</description>
            <author>purple07</author>
            <category>Codemasters</category>
            <pubDate>Sat, 30 Aug 2008 11:46:41 +0800</pubDate>
        </item>
        <item>
            <title>Will compiled Java class file affected by virus</title>
            <link>http://forum.lowyat.net/topic/777623</link>
            <description>hi, i have suspected my pc being infected virus...&lt;br /&gt;and currently i&amp;#39;m developing a Java application, so i just wonder if my pc being infected virus, will my compiled class file being infected too? &lt;!--emo&amp;:cry:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/cry.gif' border='0' style='vertical-align:middle' alt='cry.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>purple07</author>
            <category>Codemasters</category>
            <pubDate>Thu, 28 Aug 2008 12:17:16 +0800</pubDate>
        </item>
        <item>
            <title>Java Interface Problem</title>
            <link>http://forum.lowyat.net/topic/769100</link>
            <description>hi, i&amp;#39;m currently face a big problem with my interface...&lt;br /&gt;&lt;br /&gt;as my string data is very long, and being retrieved and displayed in my interface-JTextField, JTable, JList...&lt;br /&gt;those interface(component) will be horizontally extended, causing the user unable to see those interface at the most left and right part...even when the user click the maximize button, the things can&amp;#39;t be seen as a whole too... &lt;!--emo&amp;:help:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/icon_question.gif' border='0' style='vertical-align:middle' alt='icon_question.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>purple07</author>
            <category>Codemasters</category>
            <pubDate>Sun, 17 Aug 2008 22:05:09 +0800</pubDate>
        </item>
        <item>
            <title>Maximize JFrame</title>
            <link>http://forum.lowyat.net/topic/768423</link>
            <description>how can i open my JFrame as maximize state? i tried this&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;this.setExtendedState&amp;#40;this.getExtendedState&amp;#40;&amp;#41; | this.MAXIMIZED_BOTH&amp;#41;;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;but, it take no effect&amp;#33; can anyone please tell me what&amp;#39;s the problem here? thanks&amp;#33;</description>
            <author>purple07</author>
            <category>Codemasters</category>
            <pubDate>Sat, 16 Aug 2008 22:25:01 +0800</pubDate>
        </item>
        <item>
            <title>Unique number to identify each pc</title>
            <link>http://forum.lowyat.net/topic/762470</link>
            <description>hi, my friend did told me that each hardware will got a unique number to identify it, can i know what&amp;#39;s that? what&amp;#39;s the number attached with? processor? hardisk?</description>
            <author>purple07</author>
            <category>Codemasters</category>
            <pubDate>Sat, 09 Aug 2008 11:05:12 +0800</pubDate>
        </item>
        <item>
            <title>Java JTree</title>
            <link>http://forum.lowyat.net/topic/758759</link>
            <description>i would like to create a JTree with TreeModel, but how can i make it as several root that will represent all the drives that available?</description>
            <author>purple07</author>
            <category>Codemasters</category>
            <pubDate>Mon, 04 Aug 2008 22:58:56 +0800</pubDate>
        </item>
        <item>
            <title>.java.bak</title>
            <link>http://forum.lowyat.net/topic/752484</link>
            <description>hi, recently i found there are some .java.bak file being automatically created in my folder that contains all my .java and compiled .class file...&lt;br /&gt;&lt;br /&gt;what are these file type? even though i try to delete all of them, i found a few created again(i didn&amp;#39;t compile and run my java application in this case, these .java.bak just appear themselves...) &lt;!--emo&amp;:(--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>purple07</author>
            <category>Codemasters</category>
            <pubDate>Mon, 28 Jul 2008 00:01:53 +0800</pubDate>
        </item>
        <item>
            <title>CREATE TABLE AS command</title>
            <link>http://forum.lowyat.net/topic/751404</link>
            <description>hi, i would like to create a new table based on an existing table...&lt;br /&gt;&lt;br /&gt;the following is my code, but it fail to create the new table, can anyone here please point out my mistake? thanks&amp;#33;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;String qr = &amp;quot;CREATE TABLE joined_tbl AS (SELECT * FROM mytbl)&amp;quot;;&lt;br /&gt;&lt;br /&gt;   try{&lt;br /&gt;  	int i = connectcn.update(qr); &lt;span style='color:blue'&gt;//update is my custom create table function in    &lt;/span&gt;&lt;br /&gt;                                                 &lt;span style='color:blue'&gt; //another class&lt;/span&gt;&lt;br /&gt;        &lt;br /&gt;       }catch(SQLException e3){&lt;br /&gt;&lt;br /&gt;          System.out.println(&amp;quot;ERROR: Fail to create the joined table&amp;#33;&amp;quot;);&lt;br /&gt;                e3.printStackTrace();&lt;br /&gt;  	return;&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;this is the error:&lt;br /&gt;&lt;br /&gt;java.sql.SQLException: Unexpected token AS, requires ( in statement [CREATE TABL&lt;br /&gt;E joined_tbl AS]</description>
            <author>purple07</author>
            <category>Codemasters</category>
            <pubDate>Sat, 26 Jul 2008 12:03:24 +0800</pubDate>
        </item>
        <item>
            <title>Remove TableModel set to a JTable</title>
            <link>http://forum.lowyat.net/topic/749223</link>
            <description>I have created a JTable and use setModel() to set a TableModel for it. but, i face problem to refresh the table. so, what i need now is to remove the entire TableModel set to it, and use setModel() once again to assign new records for it. can anyone please tell me how to remove TableModel in this case? i searched through the API, seem not found such method...what i found is fireTableDataChanged(), but not sure is it what i need and don&amp;#39;t know how to use it too...so, hope someone can help me&amp;#33; thanks&amp;#33;</description>
            <author>purple07</author>
            <category>Codemasters</category>
            <pubDate>Wed, 23 Jul 2008 16:16:46 +0800</pubDate>
        </item>
        <item>
            <title>Method to get total elements in JList</title>
            <link>http://forum.lowyat.net/topic/747685</link>
            <description>hi, can anyone here please tell me, the method that allows me to get the last element&amp;#39;s index of a JList? in this case, i can&amp;#39;t use getLastIndex() which requires the ListSelectionEvent...&lt;br /&gt;&lt;br /&gt;thanks&amp;#33;</description>
            <author>purple07</author>
            <category>Codemasters</category>
            <pubDate>Mon, 21 Jul 2008 19:35:47 +0800</pubDate>
        </item>
        <item>
            <title>Why this code fail</title>
            <link>http://forum.lowyat.net/topic/742053</link>
            <description>i&amp;#39;m trying to open file with the following code. however, it&amp;#39;s fail. can anyone here kindly point out my mistake? thanks in advance&amp;#33;&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;private Desktop desktop;&lt;br /&gt;private Desktop.Action action = Desktop.Action.OPEN;&lt;br /&gt;&lt;br /&gt;public void openFile&amp;#40;&amp;#41;{&lt;br /&gt;	&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;String fileStr = &amp;#34;C&amp;#58;/myfile.ppt&amp;#34;;&lt;br /&gt;	File file = new File&amp;#40;fileStr&amp;#41;;&lt;br /&gt;	&lt;br /&gt;	try {&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;desktop.open&amp;#40;file&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} catch &amp;#40;IOException e&amp;#41; {&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.out.println&amp;#40;&amp;#34;ERROR&amp;#58;Fail to open file&amp;#34;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt; }&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;this&amp;#39;s the error:&lt;br /&gt;Exception in thread &amp;quot;AWT-EventQueue-0&amp;quot; java.lang.NullPointerException</description>
            <author>purple07</author>
            <category>Codemasters</category>
            <pubDate>Mon, 14 Jul 2008 14:58:21 +0800</pubDate>
        </item>
        <item>
            <title>How to filter chinese character</title>
            <link>http://forum.lowyat.net/topic/739921</link>
            <description>I have displayed my database data into a JTable, and using a JTextField to do the table filter. so far, it&amp;#39;s work. but, when my data is in chinese character, the filter fail. so, how can i filter my table when data is in chinese character?  &lt;!--emo&amp;:cry:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/cry.gif' border='0' style='vertical-align:middle' alt='cry.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>purple07</author>
            <category>Codemasters</category>
            <pubDate>Fri, 11 Jul 2008 14:20:45 +0800</pubDate>
        </item>
        <item>
            <title>What is &amp;lt;&amp;gt; meant here?</title>
            <link>http://forum.lowyat.net/topic/726734</link>
            <description>for this line of code:&lt;br /&gt;&lt;br /&gt; final TableRowSorter&amp;lt;TableModel&amp;gt; sorter = new TableRowSorter&amp;lt;TableModel&amp;gt;(model);&lt;br /&gt;&lt;br /&gt;there is &amp;lt;&amp;gt; symbol, can anyone here please tell me that what this line of code meant as i&amp;#39;m not understand what &amp;lt;&amp;gt; meant here. thanks&amp;#33;</description>
            <author>purple07</author>
            <category>Codemasters</category>
            <pubDate>Tue, 24 Jun 2008 15:48:11 +0800</pubDate>
        </item>
        <item>
            <title>Can Java do this</title>
            <link>http://forum.lowyat.net/topic/720620</link>
            <description>let say i have several power point files, can java copy all slides of those files, then creating a new power point file by inserting all those slides?  &lt;!--emo&amp;:sweat:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/sweat.gif' border='0' style='vertical-align:middle' alt='sweat.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>purple07</author>
            <category>Codemasters</category>
            <pubDate>Mon, 16 Jun 2008 16:55:45 +0800</pubDate>
        </item>
        <item>
            <title>What&amp;#39;s Wrong with this code</title>
            <link>http://forum.lowyat.net/topic/716931</link>
            <description>hi, can anyone point out for me what&amp;#39;s wrong with the following code? thanks&amp;#33;&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;&lt;br /&gt;try{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;String test = &amp;#34;My_Dir/Test/Test.jpg&amp;#34;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp;java.net.URL imgURL = MyClass.class.getResource&amp;#40;test&amp;#41;;&lt;br /&gt; &amp;nbsp;Image img = Toolkit.getDefaultToolkit&amp;#40;&amp;#41;.getImage&amp;#40;imgURL&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;	setIconImage&amp;#40;img&amp;#41;;&lt;br /&gt; &amp;nbsp;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}catch&amp;#40;NullPointerException e&amp;#41;{&lt;br /&gt; &amp;nbsp;System.out.println&amp;#40;&amp;#34;ERROR&amp;#58;Fail to display icon&amp;#34;&amp;#41;;&lt;br /&gt; &amp;nbsp;return;&lt;br /&gt;	}&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;if String test = &amp;quot;Test.jpg&amp;quot;, then no error occur...but why?  &lt;!--emo&amp;:hmm:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/hmm.gif' border='0' style='vertical-align:middle' alt='hmm.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>purple07</author>
            <category>Codemasters</category>
            <pubDate>Wed, 11 Jun 2008 17:44:55 +0800</pubDate>
        </item>
    </channel>
</rss>
