35,618 Topics

Member Avatar for
Member Avatar for Huang xiao

Hi, I am making a simple game,this is my first time to develop java game,but i think i am lost in my code,i could not display or show my bullet when i pressed arrow up,can you help me please how can i achieve on this. here is my simple code. …

Member Avatar for JamesCherrill
0
189
Member Avatar for tanmay.majumdar2

HI, I am new to java programming. So, while practicing some java programming. I got a very strange logical error. Does'nt matter what the user enters, the programm always returs the result as true. Please, tell where I am stuck: I will be positing my code here: import java.util.Random; import …

Member Avatar for tanmay.majumdar2
0
237
Member Avatar for rohansharma

Are you interested in java?? Join the free online java course and make java your cup of coffee. The course is totally free.It is spread over 128 lectures in 21 sections with practice problems in sections intended to enhance your practical knowledge of concepts learnt throughout the section. <URL SNIPPED>

Member Avatar for JamesCherrill
-2
247
Member Avatar for stefanienikole

I am having trouble with the last three methods of my program in the **Board.java**. I'm not sure how to go get it to read gameBoard. It keeps giving me errors. I really cant figure out what I'm doing wrong. All the methods were given to me and cannot be …

Member Avatar for jwenting
0
817
Member Avatar for screenedcreamy

When using JAX-WS 2.1 and JAXB 2.1 with JDK 6, im faced with lot of issues. To use JAX-WS 2.1 with JDK 6, newer versions of API jars (JAX-WS 2.1 and JAXB 2.1 API jars) need to be in bootclasspath before rt.jar.The only way to achieve this would be by …

Member Avatar for jwenting
0
226
Member Avatar for layman114

Recently I have been asked to do a web-based login and register system using **JAVA**. But I haven't learnt java before and had absolutely no idea how java works or to write java codes. They told me that I have to learn Java quickly as possible. Currently looking some java …

Member Avatar for layman114
0
161
Member Avatar for mesbahuk

I have been working on a conversion project for last few days where I need to convert a Java library to C#. At one point I came to java's certain feature called [Exceptions Thrown by a Method](http://docs.oracle.com/javase/tutorial/essential/exceptions/declaring.html). Here is a little glimpse of it: public boolean isRequest() throws NullPointerException { …

Member Avatar for Ketsuekiame
0
305
Member Avatar for gyno

Hi everyone, i want to write codes that will input random number to an array(say of size 9),already i have used random method in Math class but i just want to know if there is another method i can use to input random number into an array other than the …

Member Avatar for JamesCherrill
0
259
Member Avatar for Devendra1

Hi, I am deploying struts 2 application on JBOSS 5.0.1, war has been successfully deploying, but throwing below exception when I am starting JBOSS. 10:21:11,991 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/E:/jboss-5.0.1.GA/server/default/conf/jboss-service.xml state=PreReal mode=Manual requiredState=Real org.jboss.deployers.spi.DeploymentException: Error deploying: jboss:service=WebService Console log is below for your reference: 10:21:01,757 INFO [ServerImpl] Starting …

Member Avatar for afterU
0
4K
Member Avatar for bipi09

Can some one teach me how to change **getContent()** from **journal article xml to html**. **Here my code** <% JournalArticle art = JournalArticleLocalServiceUtil.getArticle(journalrow.getGroupId(), journalrow.getArticleId()); String contentXML = ""; contentXML = art.getContent(); %> <tr> <td class="title"><A href="<%=articleURL.toString()%>" onclick="window.open(this.href,'popupwindow', 'width=800,height=600,scrollbars,resizable'); return false;"><%=journalrow.getTitleCurrentValue() %></A></td> </tr> <tr> <td><a class="date"><%= dateFormat.format(journalrow.getModifiedDate()) %></a> - <a class="content"><%= …

Member Avatar for LastMitch
0
143
Member Avatar for anisha.silva

Hi i am new to the web service technology. how do i deploy a web service in AWS in a micro account. i need to deploy a application to access a book store online. appreciate if someone could point me to some tutorials. Appreciate a reply. thanks

Member Avatar for radhakrishna.p
0
331
Member Avatar for bamboocha

Hi to all, I want to create a jsp page where user will insert in second combo box his choice and then based on his selection, in the third combo box there will be only choices that are connected with choice from second combo-box. here is the code: <%@ page …

Member Avatar for LastMitch
0
241
Member Avatar for Stachys

Hello, I am a 3rd year Computer Science major and taking a introduction to game design course. The project from this week is defined as follows: 1. Java game 2. Use the jMonkey SDK 3. "use an existing game engine and map to modify and create your own level" 4. …

Member Avatar for Stachys
-1
297
Member Avatar for xxmp

Hello I have a form that a user insert some input form accept-charset='UTF-8' action="addcommentcheck.jsp" method="post" id="addcommentid"> ... </form> and at addcommentcheck.jsp i do request.setCharacterEncoding("UTF-8"); But when i try to insert it to database the only thing that i insert is ????? When i show to the user the input i …

Member Avatar for xxmp
0
220
Member Avatar for KRUX17

Hi, I was wondering why my application doesn't list the changes while the application is running. For e.g I create a new job and then my application should show the new job in the list that is provided. I used **ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE** this but doesn't seem to work. Thanks Kru

0
95
Member Avatar for vishalonne

I am using Netbeans 7.1 and MySQL. I need 1 column in jtable which will contain jradiobutton and user can select any 1 row's jradiobutton Please refer the fig for detail. After selecting RB further processing will be done on jbutton click event. ![64496cca6997d07cf995950d67a3e3f0](/attachments/large/2/64496cca6997d07cf995950d67a3e3f0.JPG "64496cca6997d07cf995950d67a3e3f0") Here is the code - …

Member Avatar for mKorbel
0
345
Member Avatar for legendaddybok

<%@ page import = "java.util.*"%> <%@ page import = "java.lang.*"%> <%@ page import="java.sql.*" %> <%@ page language="java" import="java.sql.*" errorPage="" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <% String ans=" "; if(request.getParameter("correctAns")!=null) { ans=request.getParameter("correctAns").toString(); } Connection conn = null; …

Member Avatar for stultuske
0
904
Member Avatar for abra_ka_dabra

Could you please explain me what is a BufferedStream (what is a buffer and how it should be used?)? I have used a code that uses bufferedstream to write to a .txt file. I got the code while googling but don't know the theory behind how it works... please explain.

Member Avatar for abra_ka_dabra
0
181
Member Avatar for KRUX17

Hi, I'm having some issues with getting next data from the database, it seemed to be working before, but now it doesn't change the textfields to the next data just appends the data into TextArea1 and TextArea2, the other data TextField1 etc.. Doesn't even change, so I do not know …

Member Avatar for KRUX17
0
201
Member Avatar for cisumma

Hello. I have a app designed to organize dir’s on on the C drive where it was created. XML is extensively used in the business logic and house cleaning etc. public static final String USERHOMEDIR = System.getProperty("user.home", "."); <linkPath> C:\Users\Steves\Documents\.targetGuide\admin_\admin\Note Folder\test\c drive test tab\index </linkPath> public static final String USERHOMEDIR …

Member Avatar for cisumma
0
343
Member Avatar for vani krishnan

We use to import packages in java like import java.util.*; import java.lang.*; import javax.swing.*; But, why is it javax for swing?

Member Avatar for jwenting
0
198
Member Avatar for abra_ka_dabra

What is the difference between JDK and JRE? I know its silly to ask but i am shameless till i get my things get clarified... :D

Member Avatar for abra_ka_dabra
0
200
Member Avatar for Osaid9

Hello i'm trying to display date in textfield this is my code: private void DateObjectActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: java.util.Date date=new java.util.Date(); this.DateObject.setText(date.toString()); olny the problem is the date will only show If i press a button I want it to display automatically when I …

Member Avatar for JamesCherrill
0
2K
Member Avatar for xxmp

Hello I want to sent mail and i am using this code public boolean sendEmail(String from, String to, String subject, String themessage){ boolean success=false; // Assuming you are sending email from localhost String host = "localhost"; // Get system properties object Properties properties = System.getProperties(); // Setup mail server properties.setProperty("mail.smtp.host", …

Member Avatar for jalpesh_007
0
158
Member Avatar for anisha.silva

Hi I create a application in netbeans, and in one web service method it return a List. @WebMethod public List searchByAuthor(String author) { return bookBean.listByAuthor(author); } above is the code. When i right click the web service and click 'Test Web Service' and test the ListByAuthor it gives me an …

Member Avatar for LastMitch
0
217
Member Avatar for sk8ergirl

Hi, I have class of student object with the String student name and double GPA they are stored in array. My GUI have button for sort by name and sort by grade. I want to sort the name and the grade and I want to sort it using Comparator, but …

Member Avatar for JamesCherrill
0
172
Member Avatar for legendaddybok

<%@ page import = "java.util.*"%> <%@ page import = "java.lang.*"%> <%@ page import="java.sql.*" %> <%@ page language="java" import="java.sql.*" errorPage="" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <% String ans=" "; if(request.getParameter("correctAns")!=null) { ans=request.getParameter("correctAns").toString(); } Connection conn = null; …

Member Avatar for legendaddybok
0
198
Member Avatar for godzab

Hello, I am trying to encrypt a String using Symmetric Key Cryptography. When I try to encrypt the string, on runtime it gives me this error: input text: Hello World Exception in thread "main" javax.crypto.IllegalBlockSizeException: data not block size aligned at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source) at javax.crypto.Cipher.doFinal(DashoA13*..) at SimpleSymmetricExample.main(SimpleSymmetricExample.java:25) I know it …

Member Avatar for JamesCherrill
0
3K
Member Avatar for lena1990

hi all, i have a program that insert arabic language to ms access when i create .jar file for the program and move it to another computer and run the jar file it store the arabic data in the ms access database like that ?????. note: you must know that …

Member Avatar for lena1990
-1
745
Member Avatar for wolwayne

I have one tab by default (tab1) New tabs are generated , equal to 'No of rooms'. The dynamically generated tabs have same structure as of the default tab. I don't know the name of textfields of newly generated tabs. How can I find the name of jtexfields generated on …

Member Avatar for mKorbel
0
424

The End.