36,051 Topics
![]() | |
Im creating a Lan messenger in java but seem to have some problems; first the elements of the GUI do not load when the window pops up (i have to strech the window for them to appear(frame size is not the problem)). moreover the program just hangs wen i try … | |
Hi all, I've been trying to paint an image to a JPanel with no success. Could someone help me figure this out? [code=java] mport javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.File; import java.util.Vector; import java.awt.image.*; public class PhoneInterface1 extends JFrame implements ActionListener { private JPanel imagePan = new JPanel(); private … | |
ok i have created a method to movea number of objects, but i want to move all of them at the same time(balloons flying is what im aimining for,lol)but they move seperatly? /** * Create method for balloons to fly */ public void slowMoveVertical() { top.slowMoveVertical(-50); top2.slowMoveVertical(-50); top3.slowMoveVertical(-50); middle.slowMoveVertical(-50); middle2.slowMoveVertical(-50); … | |
Hi, I am working on an issue where we are creating many tables in a PDF document using iText API. i wanted to know if there is a way in which i could take the table header to next page in case the table data continues to next page. i … | |
Does anyone know where can I find how to calculate how many days February has for a given year? | |
I'm working with perl and javascript and I was wondering if anyone knew of a way to get syntax highlight for two or more programming languages at once in Emacs. For example: [CODE]# This is perl's comment my $variable; // This is javascript's comment var variable;[/CODE] I'd like the perl … | |
Hello, I'm creating a game with JFrame and need to listen to anything that has buttons. There's key listener, but that seems to only listen to the keyboard. Does java provide any listeners to game controllers? | |
Hi i'm new to using jframes, and my teacher has asked us to create any sort of game with it. I've decided to create a trivia game, and i'm sure most of you have played a trivia game on the internet before, so maybe you can answer my question. You … | |
hi all, i need to get the instance id of an application. i dont know how to get the id. anyone is there to fulfill my requirements. advance thanks hidash.. | |
i have this method to read data from a text file. Code: StringBuffer fileData = new StringBuffer(1000); BufferedReader reader = new BufferedReader(new FileReader(filePath)); char[] buf = new char[1024]; String line; while ((line=reader.readLine())!=null){ String f[] = line.split("\t"); if (line.contains(loginname)) { fileData.append(line); } } reader.close(); return fileData.toString(); If i have a text … | |
Hi All, Can any one help me.When I converting String to long ,It shwoing Exponent value and throwing numberformat exception. I want out put like this 99998900001.00. String stotal=request.getParameter("amt"); sop( stotal); long damount=Long.parseLong(stotal); sop( damount); I have given input at amt 99998900001.00 stotal= 99998900001.00 throw numberformateexception damount = 9.9998900001E10 | |
Hello everyone, I am making a Fortune Teller program for a University project, and I am a little confused as to why I keep getting this error when i try to compile. Here is my code: public class Fortune { private int insertNumber; private int showFortune; /** * Constructor for … | |
I've deployed a process archive and it's error free but when I open the IE with the [url]http://host:port/jbpm-console/upload[/url] and gives me the message: Not a multipart request. Now when I load the address ../jbpm-console/ the application loads fine, so it must be my new application, but I followed every step … | |
i want this window to be like this CYP BANKING SYSTEM username [_________] password [_________] LOGIN can anyone help me with the layout?, the flowlayout is just a single row! [code] Container logincontainer=getContentPane(); logincontainer.setLayout( new FlowLayout()); JLabel Title=new JLabel("CYP BANKING SYSTEM"); Title.setFont( new Font( "", Font.BOLD, 40 ) ); JLabel … | |
Hi to All , I am getting this type of error while running the Sql through JDBC. java.sql.SQLException: Invalid column index java.sql.SQLException: Invalid column index at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208) at oracle.jdbc.driver.OraclePreparedStatement.setIntInternal(OraclePreparedStatement.java:4635) at oracle.jdbc.driver.OraclePreparedStatement.setInt(OraclePreparedStatement.java:4627) at weblogic.jdbc.wrapper.PreparedStatement.setInt(PreparedStatement.java:536) I am implementating the Paging in jsp. I m using The TYPES. parameterList.add( … | |
Hi guys hope you fine I have a request and question, for my request I would like from you to recommend me which books and tutorials that I may follow help me to understand how to read and write files in java I really need to know that. and for … ![]() | |
i need help with a project. Is it possible to display an 1 dimension array in GUI without using a loop? If it is can you send me the codes? i was ask to enter the numbers like thise Example: Enter numbers: 3, 4, 1, 5, 6 then it should … | |
Hi everyone, Found a code listing from [url]www.yamaza.com/java/Calc.java[/url] that helps me understand a better way of programming a calculator. Trying to understand this code. Can anyone tell me what does the boolean isFixReg() below mean? Thanks in advance. [code=java] //******************************* // Java script of Calculator // << Calc.java >> //=============================== … | |
hei all im a new web developer and wnt to use some jsp code in my website. I tried to open som file from tomcat Root folder from a browswer. but it dose not open. What's problem. the relative address is [url]http://localhost:8080/index.html[/url] where in apacha can I find the port … | |
Is the a prescribed architecture for making individual components and then putting them together to make a complex component containing its individual components? | |
hi all i was installed jdk1.5 and oracle 10g. i got a runtime error like this. i want to compile and run the same program in command prompt and eclipse also . import java.sql.*; public class Oapp2 { public static void main(String args[]) { try{ Class.forName("oracle:jdbc:driver:OracleDriver"); Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger"); System.out.println("connected"); } … | |
First, the sample code: <%-- ================ some.jsp =============== --%> <%-- bunch of code [...] --%> <tr> <td><bean:message key="prompt.desc" /></td> <td><html:textarea property="desc" /></td> </tr> <tr> <td> <bean:message key="prompt.notes" /> <tiles:insert page="checkSpellTile.jsp" flush="false"></tiles:insert> </td> </tr> <tr> <td><html:textarea property="notes" /></td> </tr> <%-- ================ end some.jsp =============== --%> <%-- ================ checkSpellTile.jsp =============== --%> <%-- … | |
Hi, I want to create the Json(Java Script Notation Language) String in the struts2 action class and pass in to my jsp page. I am new to Json and struts2. Please guide me if any body has any idea on same. Thanks In advance. | |
Hi All, I am Using JSP & Servlet for a Web Application. i am getting data from mysql database the datatype is long text. it is stored in a peragraph format , but when i display it on the page it is displaying countiously like a single string. how can … | |
i need a project guidance for one java rmi projects...any one have a idea behind that na help me.......... | |
hi all, i want to convert illustrator file into jpeg. is it possible to do this using java???? i want a clear idea if it is possible. advance thanks | |
I have a desktop aplication with internalframes (inner classes) in a class KeyBrowser.java(the desktopPane). I built a form FourComponentJPanel.form(java)?? the keyBrowser.java allows me to click a JMenuItem to create createDataBaseWindow(). I wanted to have the liberty to have another class that hold the JPanel FourComponentJPanel.java(templet if you will) In the … | |
[B] I am totally new to jsp application administration, recently I got a task to transfer a website from a windows 2000 server which is running Tomcat 4.0.6, java 1.4, MySQL to our new Ubuntu 7.10, 64 bit server which is running tomcat 6, java 1.6, MySQL. Things did not … | |
javax.servlet.ServletException: Servlet execution threw an exception i am getting this error root cause [ java.lang.NoSuchMethodError: javax.servlet.http.HttpSessionBindingEvent.<init>(Ljavax/servlet/http/HttpSession;Ljava/lang/String;Ljava/lang/Object;)V org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1306) org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:176) masterservlet.CheckLogin.doPost(CheckLogin.java:87) javax.servlet.http.HttpServlet.service(HttpServlet.java:760) javax.servlet.http.HttpServlet.service(HttpServlet.java:853) note The full stack trace of the root cause is available in the Tomcat logs. =================== my CheckLogin code is: ================ [code=java] package masterservlet; import java.io.IOException; import java.io.PrintWriter; import … | |
hi to all I am trying to make a simple java servlet(like jsp) program which allow user to update his profile but I have a problem when user click on update's button [CODE]String un = req.getParameter("username"); String Fn = req.getParameter("Fname"); String Ln = req.getParameter("Lname"); String pw = req.getParameter("passwors"); String updateString … | |
Hi, I am trying to develop a JSP page so that if a user enter his password (wrong)more than 3 times then he will be redirected to an unauthorized page. I have a login page which contains the HTML login form and the login.jsp to check the userid and password, … | |
hi all, i am using the below code to open a n application by specifying the file path response.setHeader("Content-Disposition", "attachment; filename="+ java.net.URLEncoder.encode(filePath) +""); but while opening the application the path changed as D%3A%2FPrepress%2F5_Production%2FJournals%2FBalaban%2FPI10000044%2FBban_MWMS_100005%2FData%2Fset+header[3] with special characters because of the filepath changed i cant apple to use the save button. i … | |
I have a homework in which our teacher asked us to write a code in which the user can add, delete and edit his wishlist...I can only do add and delete...I am sure that there is a lot of problem for edit so please help me to make it work...I … | |
i am running jsp page in netbeans 6.0 it says that access not authorised set username and password in servce manager in netbeans 6.0 plz tell me how to set password and username from netbeans 6.0 | |
[CODE] int[] h0 = new int[] {0,0,0,0,0,0,0,0}; int[] h1 = new int[] {0,8,8,0,0,8,8,0}; int[] h2 = new int[] {0,8,0,0,0,8,8,0}; int[] h3 = new int[] {0,0,0,6,9,0,0,0}; int[] h4 = new int[] {0,0,0,9,6,0,0,0}; int[] h5 = new int[] {0,8,0,0,0,0,8,0}; int[] h6 = new int[] {0,8,8,0,0,8,8,0}; int[] h7 = new int[] {0,0,0,0,0,0,0,0}; int[][] … | |
I have a homework to get the average of x number...I was thinking that in order to get this I should just ask the user to input all the numbers that that want to get and using comma as separator...unfortunately, I don't know how to do this...below I have my … | |
i need to know we can use fuzzy logic in determination,manipulation &identification of wave characteristics eg signal generated by voice ,brain waves etc. if yes ineed to know where i can find this concept.plz help me regarding this (i came to know that voice recognition in cell phones exists but … | |
I was inquiring about the button group in the outlook panel where the buttons collapse. Does any one know what that code looks like. Could you send me someathat? Thanx Merry x-mass | |
I'm new to Java and I'm wonder if someone can help me with this. I have a class that's constructor makes a Gui window, and it's main calls this constructor. The problem is the event handling doesn't work because the event handling code can't access the GUI window variables (It … | |
Hey guys! This is my first post, as im new here :S I have a simple problem for a big program. We have a .sh to install it, but when I run the .sh in terminal like i should, It says the class is not found. I believe it has … | |
Dear fellow developers, Below is code calculating your weight on different planet using Enum type, from the book of Java Tutorials. Can anyone tell me what does `"%"` mean in `"%s"`, `"%f"` and `"%n"`? How does all three managed to get in the for-each loop without being declared explicitly before … | |
I have a rather vague question on Applets. Is there some way for the Applet to communicate back with the JavaScript that runs it? I use the PARAM tag to send information (cookies with username, settings, etc.) in, but I want to be able to get information back out of … | |
Hey. I'm having some difficulty in Array lists. I have to find the average of all the numbers in an array list. That's my first task. My second one is to find the mode of all the numbers, meaning the number that shows up the most. And the third one … | |
hi there everyone! :D i'm new here and i'm wondering if you can help me with my java programming. actually it is my project and i'm having a difficult time with it. here is is my code. its about array computation, 1st you will input how many operators you will … | |
[B]i want the project source code of online examination system in jsp.[/B] | |
I don't understand it mean? Who can help me explain it?Thanks in advance! for example this programe: [code=java] public class score{ public static void main(String args[]){ int a[]={90,98,97,67,89,68,76,69,96,66},sum=0; double ave; for(int i=0;i<a.length;i++)sum+=a[i]; ave=sum/10.0; System.out.println("Average="+ave); for(int s:a)System.out.printf("%4d",s); System.out.println(); for(int s:a)System.out.print("%4d",(s-(int)ave)); } }[/code] | |
I am trying to implement a feature when the user clicks a specified shape (trigger) on the screen that an event is triggered. The following code is a class that I have written that implements mouse picking. [code=java] class Picker extends PickMouseBehavior { private PickCanvas pickCanvas; private Node trigger; private … | |
Hi everybody, I am new at GUI and I need your help.. I have a JPanel, named "holdAll", layout of which is set to BorderLayout. I have implemented all other JPanels in different class files. For example, I have TopPanel, LeftPanel, etc. as shown below LeftPanel myLeft = new LeftPanel(); … | |
hi to all well i know html, css javascrpit php apache and mysql. but now i am learning jsp and I DONT HAVE ANY JAVA PROGRAMMING EXPERIENCE!!!:sad: uptill now i just cant figure out whats java and jsp all about well i know its a serverside scripting for web development … | |
[url]http://c64s.com[/url] This is amazing!! |
The End.