32,199 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 >> //=============================== … | |
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"); } … | |
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 … | |
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 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 … |
The End.