32,199 Topics
| |
I created a console program in jcreator (java) which asks the user to enter a number in string and converts that string value into char array and then converts each char array into an integer which I also stored each as an array and then adds all the value from … | |
This is my code. [CODE] <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Registration Page</title> </head> <body background= "bg8.jpg" width="1000" height="1000" alt="work1"> <form action="clientlogin.jsp"><table> <tr> <td> Company Name</td><td> <input type="text" name="cname" value="" /></td> </tr> <tr> <td> Password </td><td><input type="password" name="pwd" value="" /></td> </tr> <tr> <td>Location of company </td><td><input type="text" name="location" value="" /></td></tr> … | |
Hi.. I'm doing my project on Text Categorization.I've got a text categorisation test collection called Reuters-21578 for my Information Retrieval project. It is distributed in 22 files. Each of the first 21 files (reut2-000.sgm through reut2-020.sgm) contains 1000 documents, while the last (reut2-021.sgm) contains 578 documents. The files are in … | |
Hello Members, I am trying to solve the following problem using threads: Thread_1 outputs values from 1 to 1000. Thread_1 waits. Thread_2 outputs values from 1 to 1000. Thread_2 now waits. Thread_1 outputs values from 1000 to 2000. Thread_1 is done. Thread_2 outputs values from 1000 to 2000. Thread_1 exits … | |
Hello, i Want to do project on Java.... any one tell me some new ideas to do my project.... some thing new i can implement as for my final year project | |
Hi All, I am suppose to develop a sdk for touchscreen desktop. it has windows 7. i am planning use java for sdk development. But request overall some help from experinced guys to how to design and develop one such sdk. Thanks | |
Hi, I currently have a method that is called on a ActionEvent of being clicked. Now I want to call that method from another method. Is there a way to do this with out having to just copy and paste my code into another method and just call that? This … | |
[code]import java.awt.*; import javax.swing.*; public class image extends JFrame{ JButton b1; ImageIcon im; Container c=getContentPane(); public image() { im=new ImageIcon("Pictures/sad.jpg"); b1=new JButton(" ",im); c.setLayout(new FlowLayout()); add(b1); setSize(500,500); show(); } public static void main(String [] args) { new image(); } }[/code] | |
i have downloaded Ireport and Jasper Report softwares. i hav created a system using netbeans installed in linux. Unfortunately, i dont know how to install ireport so that i can use it to generate reports. can somebody help me? | |
how do i add a scrollbar to my JEditorPane this is the format i have everything in. [CODE]private JEditorPane tos; tos = new JEditorPane(); tos.setEditable(false); tos.setForeground(new Color(250, 250, 250)); tos.setBackground(new Color(84, 84, 84)); tos.setText("fuuuuuuuuuuuuuuuuuuuuuuuuu bbbarrrrrrrrrrrrrrrrrrrrrrrrr"); addComponent(contentPane, tos, 500,180,210,170); [/CODE] | |
I'm working on a project that would require me to integrate PayPal into it somehow. I don't know how exactly to go about this, but I'd like the code to be in Java if possible, but really any programming language is fine. Does anyone know if I could do this … | |
Ok so... I have a problem with completing my code for class tomorrow. I need help with this ASAP. I'm asked to implement a program that generates a random number of jelly beans in a jar, prompt the user to make a guess on how many jelly beans are in … | |
hello all I am new to socket programming.I have to write a socket client which write hit a url on socket.socket server is already running on other site.can any one please suggest the way Url is as follows "GET /subscription/subservice.aspx?Mobileno=MOBILE&Channel=USSD&planid=13404&clientid=511&requestType=1&SubscriptionMode=USSD&isbill=1&subid=1340&shortcodeid=49 HTTP/1.0\r\n\r\n" | |
I've been creating a login system in Java. The functionality of all the programming in java has been a breeze. Though, I can't find any good comprehensive tutorials on creating a login database, which is something I have never done before. [B]Could someone please give me or link me to … | |
Every time i read a post on how to compile in linux i still get errors. I goto the directory where the .java files are. then type "javac *java" to compile to java files. then i get errors "cannot find symbols" can someone give step by step instructions on compiling … | |
How to get video file in matlab and perform object detection?? | |
Hello, I need to write a remove method for an array of 10 things. So object can can a name. I have a getName() method and others that sort out things. The array can only have 10 objects inside. However when I use this method it doesn't remove anything. I'm … | |
Hello all, I am retrieving data from servlet to midlet. Now coming data is whole string. but now I want to chop it into different words. here my code is : [CODE] HttpConnection conn = (HttpConnection) Connector.open(url); StringBuffer sb = new StringBuffer(); conn.setRequestMethod(HttpConnection.GET); conn.setRequestProperty("Content-Type", "Application/x-urlformencoded"); InputStream is = conn.openInputStream(); byte[] … | |
[COLOR="Green"]I'm supposed to write this program using a default constructor but when I compile I got this errors: [/COLOR] [COLOR="Red"]Exception in thread "main" java.lang.Error: Unresolved compilation problems: The constructor Date1(int, int, int) is undefined The constructor Date1(int, int, int) is undefined at Date1Test.main(Date1Test.java:23) [/COLOR] [CODE]/** * */ /** * @author … | |
Hi,I've started learning Java to enhance my programming knowledge and i've written code for individual GUIs which are working perfectly. Within each GUI i have common Labels,Buttons all in a JPanel that are the same in all of the GUIs which are linked together. What I want to basically do … | |
hello all i need to create a jtable which carry a customer ID and first name and last name and when clicking on that row of a specified customer it turns me to another frame containing the other data of the customer(email , phone number , address) | |
Hey guys, I have: [CODE=java]submitButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { System.out.println("Hello World!"); } });[/CODE] in a class that [ICODE]extends JDialog[/ICODE] but it doesn't work. How can I get an action listener working in a JDialog? Thanks PO | |
I am trying to pass an object as parameter to another class wich contains a SQL connection: Base class is a swing class where this method is the essential to know for my question: [CODE] public void actionPerformed(ActionEvent e) { ModelNY mo = new ModelNY(); mo.setPersonID(txtField1.getText()); mo.setFName(txtField2.getText()); mo.setLName(txtField3.getText()); mo.setAdress(txtField4.getText()); mo.setEmail(txtField5.getText()); … | |
Hi! So I have this program that will read from a file of responses to a survey. The ratings are 1-10 and there are over 250 responses. I have found the average response and also the standard deviation but I also want to find the Median response. To do this … | |
Hi, I have a vector in which I added some integer numbers. Now when I remove these numbers from the vector and try to store it in an int variable I am getting "Incompatible types..found int ,expected java.lang.object". Any suggestions how can I store the values in a vector in … | |
Hi. This is the first time I am using this forum, so I apologize if I make any mistakes. I am trying to find the minimum value in a 2d Array using different numeric types like double, float, long and int. I can find the correct values for float and … | |
Hi I have downloaded FMJ(Freedom for media in java). But i am not been able to figure out how to store the media i am capturing through my web cam in FMJ STUDIO. Regards Asad | |
Hello everyone, I've just been trying to run the basic JSAPI 'Hello World' program. It's taken me a while to figure out how to get it to work (and to download everything) but now I have it to this point. I have a few of the same errors that pop … | |
Hello all, Im having a problem using the Timer class. In one class it works fine but in the other; though I do the exact same thing, it doesn't work. I know that the constructor for the Timer class allows no parameters and with parameters, as the other classes uses … | |
I am having a problem with the below applet. It compiles just fine and when it is ran it shows up with the multiplication problem at the bottom of the applet as expected. The problem is that it says if the answer is correct or not before an answer is … |
The End.