﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Programming Help Forums / Java / Java Discussion </title><generator>InstantForum.NET v4.1.4</generator><description>Programming Help Forums</description><link>http://www.programminghelp.com/forums/</link><webMaster>forums@programminghelp.com</webMaster><lastBuildDate>Fri, 30 Jul 2010 04:14:49 GMT</lastBuildDate><ttl>20</ttl><item><title>Java in Vista</title><link>http://www.programminghelp.com/forums/Topic1072-36-1.aspx</link><description>I am having trouble with Java in Vista any help? I need like basic instilation help.</description><pubDate>Mon, 28 May 2007 10:48:25 GMT</pubDate><dc:creator>Dabman</dc:creator></item><item><title>Java game of removing pebbles from a circle. Pease Help</title><link>http://www.programminghelp.com/forums/Topic5220-36-1.aspx</link><description>[u] Rules[/u]&lt;br&gt;The game is divided into two stages or phases with various rules. These stages are:&lt;br&gt;	Removing the pebbles&lt;br&gt;	Returning the pebbles&lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;br&gt;1. Removing pebbles&lt;br&gt;A hand removes pebbles from a small circle. &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;2. Removing pebbles&lt;br&gt;the same hand returns the pebbles back into the circle leaving the required number of stones outside. That is at first it leaves one stone outside and returns all.&lt;br&gt;</description><pubDate>Tue, 08 Jun 2010 05:33:52 GMT</pubDate><dc:creator>Mqwayobomvu</dc:creator></item><item><title>Java mouse events</title><link>http://www.programminghelp.com/forums/Topic5219-36-1.aspx</link><description>I need help on how to use the mouse to drag objects from one place to another.I have a few objects inside a circle and want to drag three at a time out of the circle and return back two at at time. Is it possible with java.</description><pubDate>Tue, 08 Jun 2010 05:14:29 GMT</pubDate><dc:creator>Mqwayobomvu</dc:creator></item><item><title>problem of Multiple ApplicationResources.properties files for different logins</title><link>http://www.programminghelp.com/forums/Topic5196-36-1.aspx</link><description>Hai,&lt;br&gt;I am using &lt;message-resources factory="admin.DBConfigurationMessageResourceFactory"  key="com.sutisoft.ApplicationResources" parameter="com.sutisoft.ApplicationResources" null="false" /&gt;&lt;br&gt;in Struts-congig.xml file and i create userdefined ApplicationResources.proeprties files and administrator have a option to change the field labels in jsp pages after changing the changes effected.but my problem is when we deploy the application at that time it creates DBConfigurationMessageResourceFactory object and in this class i call another ConfigurationMessageResources class after completing from displaying of login page onwards everytime calls getMessage(,) method of each key.My requiremt is after login based on user name i display different Applicationresources.properties file but it's not working.how to manully override the Default ApplicationResources.proeprties file.Please help me&lt;br&gt;&lt;br&gt;&lt;br&gt;public class DBConfigurationMessageResourceFactory extends MessageResourcesFactory {&lt;br&gt; public MessageResources createResources(String config) {&lt;br&gt;			 &lt;br&gt;		if(config.equalsIgnoreCase("com.sutisoft.ApplicationResources")){&lt;br&gt;			return new ConfigurationMessageResources(this, config, this.returnNull);&lt;br&gt;		}&lt;br&gt; return new ConfigurationMessageResources (factory1, file.toString(), this.returnNull);&lt;br&gt;}&lt;br&gt;&lt;br&gt; public ConfigurationMessageResources(MessageResourcesFactory factory, String config, boolean returnNull) {&lt;br&gt; public String getMessage(Locale locale, String key) {&lt;br&gt;    	 Configuration resource=null;&lt;br&gt;resource = getConfiguration("com/sutisoft/ApplicationResources.properties"); &lt;br&gt;&lt;br&gt;private Configuration getConfiguration(String name) {&lt;br&gt;         Configuration configuration = null;&lt;br&gt;         URL url = Thread.currentThread().getContextClassLoader().getResource(name);&lt;br&gt;         if (url != null) {&lt;br&gt;             PropertiesConfiguration pc = new PropertiesConfiguration();&lt;br&gt;             PropertiesConfiguration.setDelimiter('\uffff'); // disable string splitting&lt;br&gt;             pc.setURL(url);&lt;br&gt;             pc.setReloadingStrategy(new FileChangedReloadingStrategy());&lt;br&gt;             try {&lt;br&gt;                 pc.load();&lt;br&gt;                 configuration = pc;&lt;br&gt;             } catch (ConfigurationException e) {&lt;br&gt;                 e.printStackTrace();&lt;br&gt;             }&lt;br&gt;         }&lt;br&gt;         return configuration;&lt;br&gt;     }&lt;br&gt;}</description><pubDate>Sat, 15 May 2010 02:45:03 GMT</pubDate><dc:creator>venkat</dc:creator></item><item><title>burr puzzle</title><link>http://www.programminghelp.com/forums/Topic5184-36-1.aspx</link><description>hi dears&lt;/P&gt;&lt;P&gt;I want to write burr puzzle's code . is anybody there to help me to write code by java, send me email.&lt;/P&gt;&lt;P&gt; thanks for helping. :kiss:</description><pubDate>Tue, 06 Apr 2010 06:51:41 GMT</pubDate><dc:creator>paridokht</dc:creator></item><item><title>CheckBox menu item Decrypt</title><link>http://www.programminghelp.com/forums/Topic5176-36-1.aspx</link><description>I am working on a project and part of ask for:&lt;br&gt;&lt;br&gt;* add a CheckBox menu item Decrypt which can be checked for decrypt or unchecked for Encrypt. This item should be tied to the toggle button in the GUI. Both should reflect the current status of encrypting/decrypting in the application&lt;br&gt;&lt;br&gt;which is I not sure how to begin with</description><pubDate>Mon, 29 Mar 2010 19:20:33 GMT</pubDate><dc:creator>dsptl</dc:creator></item><item><title>Help with Java Program</title><link>http://www.programminghelp.com/forums/Topic4656-36-1.aspx</link><description>I need to create accessor or mutator methods for my instance variables&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 11pt; mso-fareast-font-family: Calibri; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt; ... anyone out there wanna help out? I have a lot to do for my program, but want to start out piece my piece to get it right. I want to make sure I am doing it correctly.&lt;/SPAN&gt;</description><pubDate>Thu, 19 Nov 2009 16:47:15 GMT</pubDate><dc:creator>Gcgator21</dc:creator></item><item><title>Need to figured out what's wrong</title><link>http://www.programminghelp.com/forums/Topic5158-36-1.aspx</link><description>I was totally dizzy doing this because everytime I used other operation for example Addition is the operation instead of adding the two inputted number the operation goes to subtraction and whenever I clicked the Exit Button nothings happen.help thanks in advance.here's the Code&lt;br&gt;&lt;br&gt;[center][b]import java.awt.*;&lt;br&gt;//import javax.swing.ImageIcon;&lt;br&gt;import java.awt.event.*;&lt;br&gt;&lt;br&gt;public class Output2 extends Frame implements ActionListener&lt;br&gt;{&lt;br&gt;&lt;br&gt;	private Label Name1=new Label("First Number");&lt;br&gt;	private Label Section=new Label("Second Number");&lt;br&gt;	private TextField Uno=new TextField("");&lt;br&gt;	private TextField Dos=new TextField("");&lt;br&gt;	private TextField Tres=new TextField("");&lt;br&gt;	private Label Answer=new Label("Answer");&lt;br&gt;	private Button Clear=new Button("CLEAR");&lt;br&gt;	private Button SSection=new Button("=");&lt;br&gt;	private Button Out=new Button("EXIT");&lt;br&gt;	private Button Add=new Button("+");&lt;br&gt;	private Button Multiply=new Button("*");&lt;br&gt;	private Button Subtract=new Button("-");&lt;br&gt;	private Button Divide=new Button("/");&lt;br&gt;	&lt;br&gt;&lt;br&gt;	Output2 (String me)&lt;br&gt;	{&lt;br&gt;		super(me);&lt;br&gt;		setSize(350,600);&lt;br&gt;		setVisible(true);&lt;br&gt;		setResizable(false);&lt;br&gt;		setLayout(null);&lt;br&gt;		//setIconImage(new ImageIcon("hehe.jpg").getImage());&lt;br&gt;		setBackground(Color.green);&lt;br&gt;		&lt;br&gt;		Answer.setBounds(50,190,100,30);&lt;br&gt;		SSection.setBounds(50,470,250,30);&lt;br&gt;		Clear.setBounds(50,400,250,30);&lt;br&gt;		Out.setBounds(50,540,250,30);&lt;br&gt;		add(Answer);&lt;br&gt;		add(SSection);&lt;br&gt;		add(Clear);&lt;br&gt;		add(Out);&lt;br&gt;		&lt;br&gt;		Uno.setBounds(200,50,100,30);&lt;br&gt;		add(Uno);&lt;br&gt;		Dos.setBounds(200,120,100,30);&lt;br&gt;		add(Dos);&lt;br&gt;		Tres.setBounds(200,190,100,30);&lt;br&gt;		Tres.setBackground(Color.yellow);&lt;br&gt;		add(Tres);&lt;br&gt;		Add.setBounds(50,260,100,30);&lt;br&gt;		Add.setBackground(Color.blue);&lt;br&gt;		Subtract.setBounds(50,330,100,30);&lt;br&gt;		Subtract.setBackground(Color.blue);&lt;br&gt;		Multiply.setBounds(200,260,100,30);&lt;br&gt;		Multiply.setBackground(Color.blue);&lt;br&gt;		Divide.setBounds(200,330,100,30);&lt;br&gt;		Divide.setBackground(Color.blue);&lt;br&gt;		Name1.setBounds(50,50,100,30);&lt;br&gt;		Name1.setBackground(Color.yellow);&lt;br&gt;		add(Name1);&lt;br&gt;		Section.setBounds(50,120,100,30);&lt;br&gt;		Section.setBackground(Color.yellow);&lt;br&gt;		add(Section);&lt;br&gt;		add(Add);&lt;br&gt;		add(Subtract);&lt;br&gt;		add(Multiply);&lt;br&gt;		add(Divide);&lt;br&gt;		&lt;br&gt;		SSection.addActionListener(this);&lt;br&gt;		Clear.addActionListener(this);&lt;br&gt;		Out.addActionListener(this);&lt;br&gt;		Add.addActionListener(this);&lt;br&gt;		Divide.addActionListener(this);&lt;br&gt;		Multiply.addActionListener(this);&lt;br&gt;		Subtract.addActionListener(this);&lt;br&gt;		&lt;br&gt;		Answer.setBackground(Color.yellow);&lt;br&gt;		SSection.setBackground(Color.red);&lt;br&gt;		Clear.setBackground(Color.red);&lt;br&gt;		Out.setBackground(Color.red);&lt;br&gt;		Uno.setBackground(Color.yellow);&lt;br&gt;		Dos.setBackground(Color.yellow);&lt;br&gt;		&lt;br&gt;		addWindowListener(new WindowAdapter()&lt;br&gt;		{&lt;br&gt;			public void windowClosing(WindowEvent e)&lt;br&gt;			{&lt;br&gt;				System.exit(0);&lt;br&gt;			}&lt;br&gt;		});&lt;br&gt;		}&lt;br&gt;		public void actionPerformed(ActionEvent e)&lt;br&gt;		{&lt;br&gt;		&lt;br&gt;		double Num1=0.00,Num2=0.00,MyResult=0.00;&lt;br&gt;		&lt;br&gt;		&lt;br&gt;		Num1=Double.parseDouble(Uno.getText());&lt;br&gt;		Num2=Double.parseDouble(Dos.getText());&lt;br&gt;		&lt;br&gt;		&lt;br&gt;			if(e.getSource()==SSection)&lt;br&gt;			{&lt;br&gt;				MyResult=Num1+Num2;&lt;br&gt;				MyResult=Num1-Num2;&lt;br&gt;				MyResult=Num1/Num2;&lt;br&gt;				MyResult=Num1-Num2;&lt;br&gt;				Tres.setText(""+MyResult);&lt;br&gt;				Tres.setText(""+MyResult);&lt;br&gt;				Tres.setText(""+MyResult);&lt;br&gt;				Tres.setText(""+MyResult);&lt;br&gt;			}&lt;br&gt;			if(e.getSource()==Clear)&lt;br&gt;			{&lt;br&gt;				Uno.setText("");&lt;br&gt;				Dos.setText("");&lt;br&gt;				Tres.setText("");&lt;br&gt;			}&lt;br&gt;			&lt;br&gt;		}&lt;br&gt;	public static void main(String args[])&lt;br&gt;	{&lt;br&gt;		Output2 x=new Output2("FRAME 2");&lt;br&gt;	}&lt;br&gt;}[/b][/center]</description><pubDate>Tue, 23 Feb 2010 06:18:25 GMT</pubDate><dc:creator>bernalglenn</dc:creator></item><item><title>How to apply System.cls(in C++) into java?</title><link>http://www.programminghelp.com/forums/Topic5152-36-1.aspx</link><description>hi..i'm still new here..&lt;br&gt;i've got problem with my coding bcoz it look messy when the program keep repeating...&lt;br&gt;so how to apply system cls which is in C++ to java?</description><pubDate>Thu, 18 Feb 2010 10:39:36 GMT</pubDate><dc:creator>czash</dc:creator></item><item><title>Java on IPhone????</title><link>http://www.programminghelp.com/forums/Topic3354-36-1.aspx</link><description>Is there a wat to get Java on the IPhone or IPod Touch??? &lt;br&gt;&lt;br&gt;&lt;br&gt;Thx miki0924</description><pubDate>Sat, 18 Apr 2009 17:16:41 GMT</pubDate><dc:creator>Miki0924</dc:creator></item><item><title>Java and its use on the Web.</title><link>http://www.programminghelp.com/forums/Topic4521-36-1.aspx</link><description>I need some ideas for java packages that can be used  in filling out forms on the internet.</description><pubDate>Fri, 16 Oct 2009 12:46:25 GMT</pubDate><dc:creator>nmccophalvy</dc:creator></item><item><title>other</title><link>http://www.programminghelp.com/forums/Topic4945-36-1.aspx</link><description>want free tshirt</description><pubDate>Tue, 19 Jan 2010 13:32:25 GMT</pubDate><dc:creator>ssss24</dc:creator></item><item><title>How can I get into game design coming from a C and Java background?</title><link>http://www.programminghelp.com/forums/Topic3871-36-1.aspx</link><description>I have complete some C and Java programming and now I am interested in graphics and game design. What do I need to do in order to pursue this further? If any one can share any information regarding this with me it would be appreciated.</description><pubDate>Fri, 29 May 2009 01:22:24 GMT</pubDate><dc:creator>ebosysindia</dc:creator></item><item><title>chat instead of forum</title><link>http://www.programminghelp.com/forums/Topic3050-36-1.aspx</link><description>wouldn't a java chat be more productive?</description><pubDate>Tue, 07 Apr 2009 22:40:59 GMT</pubDate><dc:creator>karlknapp</dc:creator></item><item><title>Need Help about Java File in Module</title><link>http://www.programminghelp.com/forums/Topic3524-36-1.aspx</link><description>Hi Friends,&lt;br&gt;&lt;br&gt;I need to avoid placing all the things into one big source. So I'd like to place&lt;br&gt;the different elements into separate modules.&lt;br&gt;&lt;br&gt;Ideally, I would like a separate .java file for each module: tile engine, vm and graphics.&lt;br&gt;&lt;br&gt;so, I'm confused about that how I could do that. Could anybody give me any hints or tips on&lt;br&gt;how to do this ?&lt;br&gt;&lt;br&gt;also i'd like to tell you that I'm working with Net Beans but Not sure if that has anything to do with it. &lt;br&gt;&lt;br&gt;your answers would be helpful.&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;Jay</description><pubDate>Wed, 29 Apr 2009 01:44:13 GMT</pubDate><dc:creator>jaypaul</dc:creator></item><item><title>Reading an Unknown Number of Integers from Standard In</title><link>http://www.programminghelp.com/forums/Topic4652-36-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;Please forgive me if a thread concerning this topic already exists; I was not able to find one in my initial search.&lt;br&gt;&lt;br&gt;I am trying to read a series of integers from standard in.  I will be storing them into a simple integer array implemented primitively (not as an ArrayList).  The issue at hand is that I will not know how many integers will be input at a single time.  I've done some preliminary searching and believe the hasNext() method is a solution, but I am unsure exactly how to implement it.&lt;br&gt;&lt;br&gt;My program will first output directions to standard out after which users will type integers separated by a space, and press the [Enter] key when they are finished.&lt;br&gt;&lt;br&gt;An example of the output and input on the terminal screen would look as follows (user input is underlined):&lt;br&gt;&lt;br&gt;Enter integers to insert into the array: [u]13 2 6 22 19 10 5 7[/u]&lt;br&gt;&lt;br&gt;&lt;br&gt;The code I have  written so far is:&lt;br&gt;&lt;br&gt;[quote]import java.util.Scanner;&lt;br&gt;&lt;br&gt;public class test&lt;br&gt;{&lt;br&gt;public static void main ( String args[] )&lt;br&gt;{&lt;br&gt;Scanner input = new Scanner ( System.in );&lt;br&gt;int array [] = new int [ 10 ];&lt;br&gt;int elementcount = 0;&lt;br&gt;int counter;&lt;br&gt;System.out.print ( "Enter integers to insert into the array: " );&lt;br&gt;while ( input.hasNext () )&lt;br&gt;{&lt;br&gt;&lt;br&gt;if ( elementcount == array.length )&lt;br&gt;{&lt;br&gt;int temparray [] = new int [ elementcount * 2 ];&lt;br&gt;&lt;br&gt;for ( counter = 0; counter &lt; array.length; ++counter )&lt;br&gt;{&lt;br&gt;temparray [ counter ] = array [ counter ];&lt;br&gt;}&lt;br&gt;&lt;br&gt;array = temparray;&lt;br&gt;}&lt;br&gt;&lt;br&gt;array [ elementcount ] = input.nextInt ();&lt;br&gt;++elementcount;&lt;br&gt;}&lt;br&gt;&lt;br&gt;System.out.printf ( "The elements in the array are: " );&lt;br&gt;for ( counter = 0; counter &lt; array.length; ++counter )&lt;br&gt;{&lt;br&gt;System.out.print ( "%d ", array [ counter ] );&lt;br&gt;}&lt;br&gt;&lt;br&gt;}&lt;br&gt;&lt;br&gt;}&lt;br&gt;&lt;br&gt;[/quote]&lt;br&gt;&lt;br&gt;Currently, this code appears to block indefinitely and continuously wait for more input from standard in.&lt;br&gt;&lt;br&gt;I would appreciate any help anyone can offer to help make my code read an unknown number of integers, insert them into a primitive integer array, and continue with the rest of the code after the [Enter] key is pressed when a user is done entering numbers.</description><pubDate>Mon, 16 Nov 2009 14:13:05 GMT</pubDate><dc:creator>mittens</dc:creator></item><item><title>java problem</title><link>http://www.programminghelp.com/forums/Topic4324-36-1.aspx</link><description>here's is the problem given by our instructor to be programmed...&lt;/P&gt;&lt;P&gt;"write a program that ask the user to enter the size of a triangle (1 to 50).then print the triangle by printing a series of lines consisting of asterisks.the first line will have 1 asterisk, the next two will have two and so on....with each line having one more asterisk than the previous line up to the number entered by the user.on the next line print one less asterisk and continue by decreasing the number of esterisk by 1 for each successive line until any one asterisk is printed."&lt;/P&gt;&lt;P&gt;hint: use nested loops, the outside loop controls the number of lines and the inside loops controls the number of asterisk to print on a line.&lt;/P&gt;&lt;P&gt;i hope, anyone will help me on this problem...pls....</description><pubDate>Thu, 13 Aug 2009 21:34:34 GMT</pubDate><dc:creator>Mj Shine</dc:creator></item><item><title>txt file in textarea</title><link>http://www.programminghelp.com/forums/Topic3688-36-1.aspx</link><description>i have a problem. i don't know how to do the next in java: i allready have a GUI. i have a txt file with 30 lines text. i want when i do the input 5, that i display the first 5 lines of the textfile in a textarea. but how?</description><pubDate>Fri, 15 May 2009 04:08:25 GMT</pubDate><dc:creator>Hoihoihoi</dc:creator></item><item><title>Trouble in JAYA</title><link>http://www.programminghelp.com/forums/Topic3951-36-1.aspx</link><description>&lt;br&gt;	&lt;br&gt;I am having trouble with Java in Vista any help?</description><pubDate>Tue, 09 Jun 2009 06:53:50 GMT</pubDate><dc:creator>jayaneetharajapakshe</dc:creator></item><item><title>Convert between C# and Java with CSharpJavaMerger</title><link>http://www.programminghelp.com/forums/Topic4494-36-1.aspx</link><description>CSharpJavaMerger is an open source tool. It provides common interfaces of C# and Java and enables you to write one set of code which can be used both by C# and Java.&lt;br&gt;&lt;br&gt;Below is a method that can be used in both of C# and Java. In the sample, CString is a class defined in the CSharpJavaMerger Framework. &lt;br&gt;&lt;br&gt;[code]public void AddTwoValues()&lt;br&gt;{&lt;br&gt;    try&lt;br&gt;    {&lt;br&gt;        CString strValue1 = m_mainForm.GetFirstTextBoxValue();&lt;br&gt;        CString strValue2 = m_mainForm.GetSecondTextBoxValue();&lt;br&gt;&lt;br&gt;        int iValue1 = strValue1.ToInteger();&lt;br&gt;        int iValue2 = strValue2.ToInteger();&lt;br&gt;        int iResult = iValue1 + iValue2;&lt;br&gt;        CString strShowResult = CString.ValueOf(iResult);&lt;br&gt;        m_mainForm.ShowResult(strShowResult);&lt;br&gt;        CString strSaveResult = new CString(strValue1.GetValue() + " + " + strValue2.GetValue() + " = " + strShowResult.GetValue() + "");&lt;br&gt;        m_mainForm.SaveResult(strSaveResult);&lt;br&gt;    }&lt;br&gt;    catch (Exception ee)&lt;br&gt;    {&lt;br&gt;        m_mainForm.SaveResult(new CString(ee.Message + ""));&lt;br&gt;        m_mainForm.ShowResult(new CString("Error"));&lt;br&gt;    }&lt;br&gt;} [/code]&lt;br&gt;&lt;br&gt;More info on CSharpJavaMerger: http://www.kevingao.net/csharp-java-conversion</description><pubDate>Tue, 13 Oct 2009 02:03:17 GMT</pubDate><dc:creator>sindy55</dc:creator></item><item><title>Java Network help</title><link>http://www.programminghelp.com/forums/Topic4378-36-1.aspx</link><description>Hey,&lt;br&gt;&lt;br&gt;i have recently been playing with creating my own chat server in java, so that i can add this to my portfolio. Heres the problem...&lt;br&gt;&lt;br&gt;I have created the server successfully, and i have have also created the client. they are able to communicate with each other but not over different computers. All the computers i use are connected via a LAN network consisting of a single Router ( the one i used previous used a switch and a router, and there was a problem with this.). I was wondering whether there is a windows setting or something that might be stopping them working.&lt;br&gt;&lt;br&gt;Cheers</description><pubDate>Wed, 19 Aug 2009 13:26:32 GMT</pubDate><dc:creator>Squall_Leoheart</dc:creator></item><item><title>Need Help about online multiplayer games ?</title><link>http://www.programminghelp.com/forums/Topic4132-36-1.aspx</link><description>Hi Friends,&lt;br&gt;&lt;br&gt;i've one query regarding online multi player games.&lt;br&gt;&lt;br&gt;i got idea about how to make simple single player java applets...&lt;br&gt;&lt;br&gt;But How do I make online Multi Player Games, Is there a specific API or something? Where can I get some tutorials?&lt;br&gt;&lt;br&gt;I got one project and need to get the idea on multi player.&lt;br&gt;&lt;br&gt;Thanks.&lt;br&gt;Paul</description><pubDate>Wed, 08 Jul 2009 03:43:00 GMT</pubDate><dc:creator>jaypaul</dc:creator></item><item><title>Updating JSP page.</title><link>http://www.programminghelp.com/forums/Topic4034-36-1.aspx</link><description>when a jsp is modified,will the container  compiles jsp file for every modification done to jsp?</description><pubDate>Tue, 23 Jun 2009 02:30:29 GMT</pubDate><dc:creator>salvadi</dc:creator></item><item><title>Java Media Framework</title><link>http://www.programminghelp.com/forums/Topic4032-36-1.aspx</link><description>The Java Media Framework API (JMF) enables audio, video and other time-based media to be added to applications and applets built on Java technology. This optional package, which can capture, playback, stream, and transcode multiple media formats, extends the Java 2 Platform, Standard Edition (J2SE) for multimedia developers by providing a powerful toolkit to develop scalable, cross-platform technology.&lt;br&gt;&lt;br&gt;To know more details visit this URL..&lt;br&gt;http://java.sun.com/javase/technologies/desktop/media/&lt;br&gt;</description><pubDate>Tue, 23 Jun 2009 02:17:05 GMT</pubDate><dc:creator>salvadi</dc:creator></item><item><title>what will be the result of compiling and executing the Java code snippet?</title><link>http://www.programminghelp.com/forums/Topic4031-36-1.aspx</link><description>public class ContinueDemo{&lt;br&gt;public static void main(String args[]){&lt;br&gt;int i=0, j=0;&lt;br&gt;cnt:&lt;br&gt;for (i=0;i&lt;10 ;i++ ){&lt;br&gt;for (j=0;j&lt;5;j++ ){&lt;br&gt;continue cnt;&lt;br&gt;}&lt;br&gt;}&lt;br&gt;System.out.println("i="+i+", j="+j);&lt;br&gt;}&lt;br&gt;}</description><pubDate>Tue, 23 Jun 2009 02:13:46 GMT</pubDate><dc:creator>salvadi</dc:creator></item><item><title>when giving values at run time  by using buffered raeder .</title><link>http://www.programminghelp.com/forums/Topic4030-36-1.aspx</link><description>when giving values at run time  by using buffered raeder .it takes vales in the order int ,charater  why it is not possible to give first character and then integer.</description><pubDate>Tue, 23 Jun 2009 02:10:49 GMT</pubDate><dc:creator>salvadi</dc:creator></item><item><title>how can i write java equivalent code of this c++ code</title><link>http://www.programminghelp.com/forums/Topic3963-36-1.aspx</link><description>&lt;DIV id=post_message_1134390&gt;This is the C++ code for the problem given below. i want to write it's java equivalent code.But since i'm newbie to java, dont know how to write equivalent Java code. If you people can help, plz do so.&lt;BR&gt;&lt;BR&gt;Code for Login page in C++ &lt;BR&gt;#include &amp;lt;iostream&amp;gt;&lt;BR&gt;using std::cout;&lt;BR&gt;using std::cin;&lt;BR&gt;using std::endl;&lt;BR&gt;#include &amp;lt;fstream&amp;gt;&lt;BR&gt;using std::ifstream;&lt;BR&gt;#include &amp;lt;string&amp;gt;&lt;BR&gt;using std::string;&lt;BR&gt;string readString(ifstream&amp;amp;);&lt;BR&gt;int main(int argc, char *argv[]) &lt;BR&gt;{&lt;BR&gt;char user[80];&lt;BR&gt;char pass[80];&lt;BR&gt;string line_in;&lt;BR&gt;string::size_type pos;&lt;BR&gt;ifstream fp_in;&lt;BR&gt;int count = 0;&lt;BR&gt;string user_pass[100][2];&lt;BR&gt;fp_in.open("users.txt"); &lt;BR&gt;if(fp_in == NULL) &lt;BR&gt;{&lt;BR&gt;cout &amp;lt;&amp;lt; "Could not open user file, exiting." &amp;lt;&amp;lt; endl;&lt;BR&gt;return -1;&lt;BR&gt;}&lt;BR&gt;while(!fp_in.eof()) &lt;BR&gt;{ &lt;BR&gt;line_in=readString(fp_in); &lt;BR&gt;if(line_in.length() &amp;gt; 0) &lt;BR&gt;{ &lt;BR&gt;pos = line_in.find("\t",0); &lt;BR&gt;if( pos != string::npos) &lt;BR&gt;{ &lt;BR&gt;user_pass[count][0] = line_in.substr(0,pos);&lt;BR&gt;user_pass[count][1] = line_in.substr(pos+1);&lt;BR&gt;count++;&lt;BR&gt;}&lt;BR&gt;}&lt;BR&gt;}&lt;BR&gt;fp_in.close();&lt;BR&gt;if(!count &amp;gt; 0)&lt;BR&gt;{&lt;BR&gt;cout &amp;lt;&amp;lt; "Userlist is empty, exiting" &amp;lt;&amp;lt; endl;&lt;BR&gt;return -2;&lt;BR&gt;}&lt;BR&gt;int logged_in=0;&lt;BR&gt;while(!logged_in) &lt;BR&gt;{ &lt;BR&gt;cout &amp;lt;&amp;lt; "Enter user name: ";&lt;BR&gt;cin &amp;gt;&amp;gt; user;&lt;BR&gt;cout &amp;lt;&amp;lt; "Enter password: ";&lt;BR&gt;cin &amp;gt;&amp;gt; pass;&lt;BR&gt;int found = 0;&lt;BR&gt;for(int x=0;x&amp;lt;count &amp;amp;&amp;amp; !found;x++) &lt;BR&gt;{ &lt;BR&gt;if(user_pass[x][0].compare(user) == 0) &lt;BR&gt;{ &lt;BR&gt;found = 1;&lt;BR&gt;if(user_pass[x][1].compare(pass) == 0) &lt;BR&gt;{ &lt;BR&gt;found = 1;&lt;BR&gt;logged_in = 1;&lt;BR&gt;}&lt;BR&gt;else &lt;BR&gt;{&lt;BR&gt;cout &amp;lt;&amp;lt; "Invalid password!" &amp;lt;&amp;lt; endl;&lt;BR&gt;}&lt;BR&gt;}&lt;BR&gt;}&lt;BR&gt;if(!found) &lt;BR&gt;{&lt;BR&gt;cout &amp;lt;&amp;lt; "Invalid username!" &amp;lt;&amp;lt; endl;&lt;BR&gt;}&lt;BR&gt;}&lt;BR&gt;cout &amp;lt;&amp;lt; "Logged in successfully!" &amp;lt;&amp;lt; endl;&lt;BR&gt;return 0; &lt;BR&gt;}&lt;BR&gt;string readString(ifstream&amp;amp; reader) &lt;BR&gt;{&lt;BR&gt;char buffer[256];&lt;BR&gt;reader.getline(buffer,256);&lt;BR&gt;string str1 = buffer;&lt;BR&gt;return str1;&lt;BR&gt;} &lt;/DIV&gt;&lt;!-- / message --&gt;&lt;P&gt;Problem:&lt;/P&gt;&lt;P&gt;Writing a maintainable code makes the product with High Quality. Here you are given a scenario where you have to write a maintainable code for the given problem. &lt;BR&gt;&lt;BR&gt;Scenario:&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;Virtual Solutions is an IT solution provider company. It has hired you as a Software Engineer. Your job is to write code, but at the same it should be of High Quality. Your Team Lead has asked you to write a very small code of user login functionality. The code should be of High Quality. &lt;BR&gt;&lt;BR&gt;You are required to &lt;BR&gt;&lt;BR&gt;a. Write correct code for the user login in Java or C++ following the guidelines for writing code&lt;BR&gt;b. Make use of Hungarian Notation for coding purpose &lt;BR&gt;&lt;BR&gt;c. Make use of Comments in the Code where required necessary.</description><pubDate>Thu, 11 Jun 2009 08:35:57 GMT</pubDate><dc:creator>simsim00</dc:creator></item><item><title>Export to excel</title><link>http://www.programminghelp.com/forums/Topic3639-36-1.aspx</link><description>I have data in ms-access database.I want to export it to Excel on click of a button which is in front end developed in core java.&lt;br&gt;I am working on frames NOT applet.&lt;br&gt;&lt;br&gt;I developed a macro in access to export data to excel.&lt;br&gt;But i dont know how to run this macro on click of a button in core java application.&lt;br&gt;Is it possible to run ms-access macro on click of a button in core java application?&lt;br&gt;&lt;br&gt;If not possible kindly suggest some other way.&lt;br&gt;&lt;br&gt;Kindly do me a favour in this regard.&lt;br&gt;&lt;br&gt;Thanks in advance.</description><pubDate>Mon, 11 May 2009 01:04:29 GMT</pubDate><dc:creator>ebosysindia</dc:creator></item><item><title>Script problems for single page checkout</title><link>http://www.programminghelp.com/forums/Topic3623-36-1.aspx</link><description>Hi All,&lt;P&gt;I recently downloaded a script from osc commerce which enables a single page checkout to be used.&lt;/P&gt;&lt;P&gt;Unfortunatley as good as it is theres a few problems with the java side of things as far as I can tell.&lt;/P&gt;&lt;P&gt;First problem to sort is the cart header section, basically, it works fine unless you want to edit the quantities of the products on the checkout.php page. The quantities update but the shipping method values are not updated, unless you reselect the shipping type. The shipping methods available update okay except when changing the quantities.&lt;/P&gt;&lt;P&gt;The contribution is &lt;A href="http://addons.oscommerce.com/info/6646"&gt;http://addons.oscommerce.com/info/6646&lt;/A&gt;  I am using rc2.2a shop if that helps.&lt;/P&gt;&lt;P&gt;I am not sure whether its a missing function or a missing part to a function, I have looked at remove from cart, update quantities and shipping methods parts of the checkout.php and the class file onepagecheckout.php but whilst I can break it further I am unable to fix the problems. &lt;/P&gt;&lt;P&gt;As you can see from the link details the writer is not providing free support to individual requests (tried to get paid help from them several times no with no success), but is periodically going through and correcting the issues as and when they resolve them.&lt;/P&gt;&lt;P&gt;However I want to try and get things moving and hope someone here maybe able to help me.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Johnny</description><pubDate>Sun, 10 May 2009 07:21:27 GMT</pubDate><dc:creator>johnnybebad</dc:creator></item><item><title>Problem with Switch</title><link>http://www.programminghelp.com/forums/Topic3592-36-1.aspx</link><description>Hello i have an email me form with 4 choice box and i could Switch Div but what i missing is in this case Switch redacting link each choice has own link &lt;br&gt;&lt;br&gt;i mean [quote]function switchaction(){if &amp;#100;ocument.getElementById("skilled").style.display="block" ;else {skilled.php ][/quote] &lt;br&gt;i mean  that in forum &lt;br&gt;[sup]&lt;*form name="form1" id="form1" action=""return switchaction();" method="post"* &gt;[/sup]&lt;br&gt;Sorry for my english &lt;br&gt;regards</description><pubDate>Tue, 05 May 2009 06:58:25 GMT</pubDate><dc:creator>Google123</dc:creator></item><item><title>Does Java have “goto”?</title><link>http://www.programminghelp.com/forums/Topic3175-36-1.aspx</link><description>Does Java have “goto”?</description><pubDate>Mon, 13 Apr 2009 05:34:37 GMT</pubDate><dc:creator>mielean</dc:creator></item><item><title>Setting Swing Panel</title><link>http://www.programminghelp.com/forums/Topic3526-36-1.aspx</link><description>Hi all, can anyone help me to solve this problem? I have created a swing window containing buttons, a label and a text area. When the application is run, the components are not shown in the window unless the maximize button is clicked. The source code is shown below. Can anyone fix that for me so that when I run the application, all the components are shown in the main window without clicking the maximize button?&lt;br&gt;&lt;br&gt;package AppJavaProj;&lt;br&gt;import javax.swing.*;&lt;br&gt;import java.awt.*;&lt;br&gt;&lt;br&gt;public class AppWindow extends JFrame&lt;br&gt;{&lt;br&gt;    // declaring components&lt;br&gt;   private JPanel pnl;&lt;br&gt;   private JButton connectButton, readButton, insertButton, updateButton, disconnectButton;&lt;br&gt;   private JLabel lb;&lt;br&gt;   private JTextArea tArea;&lt;br&gt;&lt;br&gt;&lt;br&gt;    //main class constructor&lt;br&gt;    AppWindow()&lt;br&gt;    {&lt;br&gt;        //setting window&lt;br&gt;        super("Database Handling Using Java"); // window's title&lt;br&gt;&lt;br&gt;        this.setVisible(true);&lt;br&gt;        this.setSize(500, 300);&lt;br&gt;        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&lt;br&gt;&lt;br&gt;        pnl = new JPanel();&lt;br&gt;        connectButton = new JButton("CONNECT TO DATABASE");&lt;br&gt;        readButton = new JButton("SELECT");&lt;br&gt;        insertButton = new JButton("INSERT");&lt;br&gt;        updateButton = new JButton("UPDATE");&lt;br&gt;        disconnectButton = new JButton("DISCONNECT");&lt;br&gt;        lb = new JLabel("Insert Query:");&lt;br&gt;        tArea = new JTextArea(10, 40);&lt;br&gt;&lt;br&gt;       pnl.setLayout(new BoxLayout(pnl, BoxLayout.Y_AXIS));&lt;br&gt;       //pnl.add(Box.createRigidArea(new Dimension(3,0)));&lt;br&gt;&lt;br&gt;        //Add panel to layout&lt;br&gt;        this.add(pnl);&lt;br&gt;     &lt;br&gt;        pnl.add(connectButton);&lt;br&gt;        pnl.add( readButton);&lt;br&gt;        pnl.add(insertButton);&lt;br&gt;        pnl.add(updateButton);&lt;br&gt;        pnl.add( disconnectButton);&lt;br&gt;      &lt;br&gt;        pnl.add(lb);&lt;br&gt;        pnl.add(tArea);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;    public static void main(String[] args)&lt;br&gt;    {&lt;br&gt;       new AppWindow();&lt;br&gt;    }&lt;br&gt;&lt;br&gt;}&lt;br&gt;</description><pubDate>Wed, 29 Apr 2009 04:43:06 GMT</pubDate><dc:creator>amosg</dc:creator></item><item><title>What is the difference between C++ and Java?</title><link>http://www.programminghelp.com/forums/Topic3228-36-1.aspx</link><description>Both C++ and Java use similar syntax and are Object Oriented, but: ?? Java does not support pointers. Pointers are inherently tricky to use and troublesome. ?? Java does not support multiple inheritances because it causes more problems than it solves. Instead Java supports multiple interface inheritance, which allows an object to inherit many method signatures from different interfaces with the condition that the inheriting object must implement those inherited methods. The multiple interface inheritance also allows an object to behave polymorphically on those methods. [Refer Q 8 and Q 10 in Java section.] ?? Java does not support destructors but rather adds a finalize() method. Finalize methods are invoked by the garbage collector prior to reclaiming the memory occupied by the object, which has the finalize() method. This means you do not know when the objects are going to be finalized. Avoid using finalize() method to release non-memory resources like file handles, sockets, database connections etc because Java has only a finite number of these resources and you do not know when the garbage collection is going to kick in to release these resources through the finalize() method. ?? Java does not include structures or unions because the traditional data structures are implemented as an object oriented framework</description><pubDate>Tue, 14 Apr 2009 04:32:23 GMT</pubDate><dc:creator>Maulik</dc:creator></item><item><title>JFileChooser</title><link>http://www.programminghelp.com/forums/Topic2498-36-1.aspx</link><description>help me how to use it in siimple?</description><pubDate>Fri, 03 Apr 2009 04:16:59 GMT</pubDate><dc:creator>septianto</dc:creator></item><item><title>can anyone explain to me the Garbage collection mechanism in Java</title><link>http://www.programminghelp.com/forums/Topic3176-36-1.aspx</link><description>can anyone explain to me the Garbage collection mechanism in Java?</description><pubDate>Mon, 13 Apr 2009 05:35:31 GMT</pubDate><dc:creator>mielean</dc:creator></item><item><title>What is the difference between final, finally and finalize() in Java?</title><link>http://www.programminghelp.com/forums/Topic3232-36-1.aspx</link><description>final - constant declaration. ?? &lt;/P&gt;&lt;P&gt;finally - handles exception. The finally block is optional and provides a mechanism to clean up regardless of what happens within the try block (except System.exit(0) call). Use the finally block to close files or to release other system resources like database connections, statements etc. ?? &lt;/P&gt;&lt;P&gt;finalize() - method helps in garbage collection. A method that is invoked before an object is discarded by the garbage collector, allowing it to clean up its state. Should not be used to release non-memory resources like file handles, sockets, database connections etc because Java has only a finite number of these resources and you do not know when the garbage collection is going to kick in to release these non-memory resources through the finalize() method.</description><pubDate>Tue, 14 Apr 2009 04:42:29 GMT</pubDate><dc:creator>Maulik</dc:creator></item><item><title>How to support multiple inhertance in Java?</title><link>http://www.programminghelp.com/forums/Topic3177-36-1.aspx</link><description>How to support multiple inhertance in Java?</description><pubDate>Mon, 13 Apr 2009 05:36:06 GMT</pubDate><dc:creator>mielean</dc:creator></item><item><title>What is a Transaction?</title><link>http://www.programminghelp.com/forums/Topic3234-36-1.aspx</link><description>A transaction is a set of operations that should be completed as a unit. If one operation fails then all the other&lt;BR&gt;operations fail as well. For example if you transfer funds between two accounts there will be two operations in the&lt;BR&gt;set&lt;BR&gt;1. Withdraw money from one account.&lt;BR&gt;2. Deposit money into other account.&lt;BR&gt;These two operations should be completed as a single unit. Otherwise your money will get lost if the withdrawal is&lt;BR&gt;successful and the deposit fails.</description><pubDate>Tue, 14 Apr 2009 04:54:48 GMT</pubDate><dc:creator>Maulik</dc:creator></item><item><title>What is an action mapping in Struts?</title><link>http://www.programminghelp.com/forums/Topic3237-36-1.aspx</link><description>An action mapping is a configuration file (struts-config.xml) entry that, in general, associates an action name with an action. An action mapping can contain a reference to a form bean that the action can use, and can additionally define a list of local forwards that is visible only to this action.</description><pubDate>Tue, 14 Apr 2009 04:58:26 GMT</pubDate><dc:creator>Maulik</dc:creator></item><item><title>What is a final modifier?</title><link>http://www.programminghelp.com/forums/Topic3231-36-1.aspx</link><description>A final class can’t be extended i.e. A final class may not be subclassed. A final method can’t be overridden when its class is inherited. You can’t change value of a final variable (i.e. it is a constant).</description><pubDate>Tue, 14 Apr 2009 04:38:14 GMT</pubDate><dc:creator>Maulik</dc:creator></item></channel></rss>