32,199 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
99
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
462
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
519
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
82
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
293
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
78
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
70
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
100
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
113
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
67
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
110
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
250
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
85
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
86
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
85
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
146
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
115
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
257
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
131
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
146
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
80
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
22
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
58
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
62
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
148
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
103
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
142
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
90
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
101
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
427

The End.