35,618 Topics
![]() | |
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 … | |
Hello. I am trying to make a thread pool for a server that will process incoming socket connections. The purpose is to have limited available connections at a time. I can't grasp this concept fully to implement it. Perhaps some of you can help me! Please try. Below is my … | |
in a database for a company,what technology is best for enabling for examples certain staff memebers to make bookings/access the database from any location using a **Browser**? how do i implement this and how can i make it work? please HELP! p.s i have been researching and thinking creating a … | |
The class ArrayList is often used where the interface List could be used instead. How would i go about replacing the ArrayList by List wherever possible? | |
Hi Everybody! Can anybody clear my doubt regarding the Android Application Development? I had a question that does the Android Programming has anything to do with the J2ME platform, I mean to say does the Android Programming uses the J2Me concepts? Or the Android development is a totally or somewhat … | |
Hello there, I am trying to access Array elements in another class within my JSP and then parsing them into <select> tags. I'm getting 2 errors though stating that it cannot find the class "PopulateMainScr". Here is my PopulateMainScr class: [CODE] package ContactKeeper; import java.io.*; import java.sql.*; import java.util.*; public … | |
well simply i am coding an animation using netbeans but i wish to calculate the distance between my animation and the landing strip. i am using two labels in the animation, one is a rocket which you can direct and the other is a landing strip. How am i able … | |
Hi, I'm a student of Java, and my first homework assignment is more advanced than our reading. So...I'm lost. This question is: Q5: Write a program that reads a list of exam scores from the keyboard. Using A=90 to 100, B=80 to 89, C=70 to 79, D=60 to 69 and … | |
hello i want to know how to get Arabic data from jtextfield it is writen normally but when i order to show it , it appears in the form of ?????? please help thanks for you attention | |
[CODE]hey there everyone, am a new guy in Java programming, i want you guys to help me on how to write a program that can print out [B]even numbers[/B] below 61? and I want also to write a Java program that prints my name(first and second name on different lines.) … | |
Can somebody please help me understand what the output of this code would be. I believe I am getting the wrong output due to some technical problems with my computer. [code] public class SetDemo { public static void main(String[] args) { SetInherit inherit = new SetInherit(); SetComposition comp = new … | |
I have a assignmnt to find all prime numbers less then 100 ,using a boolean array, set all to true and then set non primes to false and display them. ( got this!!! ) it also askes me to loop through the array and if number is prime (true) launch … | |
Hi Friends, I have a web app developed using JSP and running under Tomcat Apache. The application works fine but when a big load of users is logged in at the same time, some users will get other user's session (the user is also currently logged in). What can be … | |
Hello! I'm currently working on a sort of simple imperial-to-metric converter application for myself, but I seem to have hit a snag. I've got the UI built, and the logic for one of the calculations built, but the button to make it all happen is giving me a problem. [CODE]import … | |
Hey folks, I'm a student and I have been using Blue J. I have found it rather primitive and was wondering what the majority of other java programmers like to use? I thought about Net Beans but I honestly have no idea, So what do you use ? |
The End.