35,618 Topics
![]() | |
I have a extremely small problem, I think its my own fault, but i just cant seem to find what it is. I'm making a program with a gui, and in the gui there is a main menu with 2 JButtons. When I click on a JButton the JPanel/JFrame is … | |
hello all my part of code give me message to recompile with -Xlint:unchecked How to fix this code so the message gone thank you denny [CODE] if(file.exists()) { FileRead fr=new FileRead(); String astring=fr.Read(filePath); System.out.println(astring); /* delimiter */ String delimiter = ","; /* given string will be split by the argument … | |
this is the program i have to write you have to write a program using java language which will realize the following scenario project scenario:when you run your program it will display a welcome messege (you choose ur welcome messege). then program will ask to input a number beetween 1-9999, … | |
hello everyone... i need some good open source Graphs and Charts gui(2d and 3d) for java. Please suggest me some. | |
I am trying to design a file reader with some sort of GUI so I decided to use JOptionPane. I am a complete noob trying to learn java. So far, I have managed to make my program produce a pop up for the file location, and also an error message … | |
I Cannot Login..Even with the correct ID and Pwd Its not going in the if(rsdoLogin.next()) loop...it comes in this page and just shows blank..PLz help..!! [U]CheckLogin.jsp[/U] [CODE] <%@ page language="java" import="java.sql.*" errorPage="" %> <% Connection conn = null; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:MyDsn"); ResultSet rsdoLogin = null; PreparedStatement psdoLogin=null; String sUserID=request.getParameter("user"); … | |
I have a project, it's simple game just to make a game called congklak. it is traditioanl game from Indonesia. The project has finished, and work, well compiled, all components like package, database (*.mdb), and all the pictures are read by programs. But when it's deployed, the pictures and database … | |
complie first java type the fllowing command & view the bytes codes java-c first. | |
I installed Java using .bin file. The folder i installed is JDK(/usr/lib/jdk1.6.0_29) and JRE(/usr/lib/jre1.6.0_29). I googled to set classpath but that things didn't work for me. Can any one suggest me commands using the folders that i mentioned above, to set classpath to execute a sample java program. | |
hey! i have made a List object as follows: List error = new LinkedList(); and then as per my requirements, i have added strings in it. like error.add(); like this. so, now at some time, i want this list to be empty, so i was doing error=null; which is giving … | |
Hey there, is there a way to convert a string to a tree path? i can convert a path to a string, but not the other way around... [CODE]jTree1.getSelectionPath().toString()[/CODE] thats the only way i know.. nooo idea how to convert it back?? | |
Hey there. I have a program that uses access, and everytime i go to install it for some one i have to keep my fingures crossed and hope they have office installed on their pc. Is there a way to run my program without buying microsoft office? (using access database) … | |
I am getting java.lang.nullpointer exception for this code plzz help me out all database linked programs are creating same error [code]import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.sql.*; public class retser extends HttpServlet { Connection c; Statement st; ResultSet rs; ServletConfig config; public void init() { config = getServletConfig(); try … | |
import java.net.*; import java.io.*; import java.util.Date; import java.util.*; public class crawling { //Properties private String startUrl; private int maxUrls = -1; private boolean limitHost = false; private boolean crawling = false; private Date currentDate; private int counter=0; // Set up crawl lists. HashSet crawledList = new HashSet(); LinkedHashSet toCrawlList = … | |
Im trying to make a simple program.It just has a couple JButtons and JTextFields, but its looks kinda odd, and I was wondering how to change their size. Thanks In advance Scheppy | |
Dear Master, I have some confuses problem, I have an java window application that has been used almost 2 years more, suddenly today, when i run the application, error message come out "this application is corrupt". I try to run in others (almost 5 workstation), the result is same. any … | |
I have to create a midlet using netbeans. It says have 1 form that allows the user to enter data. Second form shows a gauge. The third form displays results. It must also have 2 threads. 1 thread that reads the users input and another thread that carries out some … | |
Hi Friends how to extract following data and store in string variable. All variable are string no need to use any other data type like datetime and so on. [CODE] Deposits and Additions Date Description Amount Refe 11/01 Test1 201f13050000100 NEWEDGE 1,500,000.00 OBI:FFC SAN LAZARO, SA A/C 430 11/01 Test2 … | |
[CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; /* *Created by ************ *on Dec 28 *to calculate the area of multiple shapes */ public class AreaCalculator extends JFrame implements ActionListener { static JTextField triwidth, trihieght, recwidth, reclength, cirradius; static Container contentPane; static JPanel infoPane; static double circlearea; static JLabel circleanswer; public … | |
Does anyone here use Visual J#? If so can you provide some examples of syntax as well as examples of loops (for, foreach, do, while), declaration of variables, importing namespaces, how to build form style applications (a link would do on that one), and any further information you feel would … | |
Heya, still rather new to programming, I'm having trouble understanding NullPointerException. The code below throws NullPointerException at rows 30 and 92. I do not quite understand why (as I understand it row 30 won't be run before the objects are created)? Any help would be appreciated!! [CODE]public class Uppg5_OH { … | |
Hi all! I am having some trouble displaying the whole of a file within a JTextArea. The problem is that every new line of code that's read is showing within its own JTextArea rather than the text being displayed within a single JTextArea. I assume that the problem is something … | |
Hi there, Any recommendation on Java books for starter? Just received an assignment on doing a cinema booking system.. Normally how long will it takes to complete this program? The lecturer gave us 2 weeks to complete this assignment, is it reasonable? Thanks for your kind reply. Cheers, happy new … | |
hello. i am trying to make a text editor. i can't figure out how to get the file that i select in the JFileChooser to show in the JTextArea. and I also can't figure out how to get the text from the JTextArea to save into a .txt file. [code=java] … | |
I'm creating a game in which I draw polygons of varying sizes and shapes using awt/Graphics2D. To smooth out the polygons, I want to use series of cubic Bezier curves to make smoother edges. I spent some time poking around the Java awt and swing classes and saw the Bezier … | |
I had offered to try and write a program for my job. This program needs to handle booking of parties, creating and adjusting customer accounts, printing invoices, party schedules and mailing lists, and a few other features. This project is a little ambitious, but I would like to give it … | |
Hi, i am new to java and just want to know if java is heavily used in software. And if we use it to make large applications, will it run slow ?? | |
Hello, everyone, I am new to this forum. My Jsp usebean tag returns null from javabean which is set by servlet. I followed everything from the forum, but sill getting null, below are the code. Some one please save me.Thank you now and Happy New Year 2012. My servlet(TestServlet.java) [code=Java]protected … | |
Hello all I have classes all bundled in a package The name of the package is components All the classes placed in a directory c:\LJava\build\components The names of the clases are a.class b.class and c.class How to jar this package ? I use dos prompt(not net beans) main class is … | |
The End.