35,618 Topics
![]() | |
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. … | |
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 … | |
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> | |
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 … | |
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 … | |
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 … | |
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 { … | |
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 … | |
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 … | |
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"><%= … ![]() | |
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 | |
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 … ![]() | |
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. … | |
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 … | |
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 | |
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.  Here is the code - … | |
<%@ 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; … | |
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. | |
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 … | |
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 … | |
We use to import packages in java like import java.util.*; import java.lang.*; import javax.swing.*; But, why is it javax for swing? | |
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 | |
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 … | |
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", … | |
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 … ![]() | |
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 … | |
<%@ 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; … | |
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 … | |
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 … | |
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 … |
The End.