36,051 Topics

Member Avatar for
Member Avatar for Nightbound

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 …

Member Avatar for Phaelax
0
101
Member Avatar for g_loughnan

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 …

Member Avatar for Ezzaral
0
474
Member Avatar for snitch321

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); …

Member Avatar for snitch321
0
527
Member Avatar for shishir

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 …

Member Avatar for peter_budo
0
84
Member Avatar for javaAddict

Does anyone know where can I find how to calculate how many days February has for a given year?

Member Avatar for javaAddict
0
294
Member Avatar for davidianstyle

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 …

0
80
Member Avatar for Mr.UNOwen

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?

Member Avatar for Ezzaral
0
72
Member Avatar for bebelove80

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 …

Member Avatar for Ezzaral
0
103
Member Avatar for hidash_in

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..

Member Avatar for masijade
0
114
Member Avatar for pikkas

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 …

Member Avatar for masijade
0
72
Member Avatar for sakthi123

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

Member Avatar for mickinator
0
113
Member Avatar for Thunder_1024

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 …

Member Avatar for Thunder_1024
0
252
Member Avatar for claudiu_is

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 …

0
86
Member Avatar for pikkas

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 …

Member Avatar for rajatC
0
88
Member Avatar for sunflower_rahul

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( …

0
86
Member Avatar for alsoumhi

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 …

Member Avatar for iamthwee
0
151
Member Avatar for Loreto

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 …

Member Avatar for darkagn
0
117
Member Avatar for nljavaingineur

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 >> //=============================== …

Member Avatar for Jishnu
0
262
Member Avatar for stoncoder

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 …

Member Avatar for peter_budo
0
90
Member Avatar for ceyesuma

Is the a prescribed architecture for making individual components and then putting them together to make a complex component containing its individual components?

Member Avatar for Great_qiang
0
134
Member Avatar for radhachowdary

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"); } …

Member Avatar for ~s.o.s~
0
149
Member Avatar for caldercay

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 =============== --%> <%-- …

Member Avatar for caldercay
0
131
Member Avatar for smruti_patra

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.

0
46
Member Avatar for narayanabhilash

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 …

Member Avatar for javaAddict
0
81
Member Avatar for sasikumarmca

i need a project guidance for one java rmi projects...any one have a idea behind that na help me..........

Member Avatar for zandiago
0
24
Member Avatar for hidash_in

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

Member Avatar for peter_budo
0
60
Member Avatar for ceyesuma

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 …

0
66
Member Avatar for biocyberman

[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 …

0
51
Member Avatar for sweetheartjava

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 …

Member Avatar for ksaxena
0
151
Member Avatar for sensitive girl

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 …

Member Avatar for sensitive girl
0
111
Member Avatar for mayanka

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, …

Member Avatar for masijade
0
35
Member Avatar for hidash_in

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 …

Member Avatar for hidash_in
0
107
Member Avatar for jellyfish888

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 …

Member Avatar for ~s.o.s~
0
152
Member Avatar for mrityunjay22

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

Member Avatar for ~s.o.s~
0
93
Member Avatar for EMUGOD

[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[][] …

Member Avatar for EMUGOD
0
103
Member Avatar for jellyfish888

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 …

Member Avatar for darkagn
0
446
Member Avatar for shkl_javed

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 …

0
64
Member Avatar for ceyesuma

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

Member Avatar for masijade
0
39
Member Avatar for curt22

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 …

Member Avatar for parthiban
0
121
Member Avatar for Drags111

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 …

Member Avatar for eggi
0
113
Member Avatar for nljavaingineur

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 …

Member Avatar for nljavaingineur
0
125
Member Avatar for suriname0

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 …

0
50
Member Avatar for energizer100

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 …

Member Avatar for bops
0
124
Member Avatar for neow

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 …

Member Avatar for neow
0
108
Member Avatar for Subha_1984

[B]i want the project source code of online examination system in jsp.[/B]

Member Avatar for peter_budo
0
105
Member Avatar for gaowei

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]

Member Avatar for darkagn
0
83
Member Avatar for bops

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 …

Member Avatar for Ezzaral
0
192
Member Avatar for sivaslieko++

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(); …

Member Avatar for bops
0
104
Member Avatar for anastacia

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 …

Member Avatar for raja baba
0
255
Member Avatar for The Dude

The End.