35,618 Topics

Member Avatar for
Member Avatar for coding101

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 …

Member Avatar for prem2
0
113
Member Avatar for VAISHALI THAKER
Member Avatar for abdulumar
-1
104
Member Avatar for Newskin01

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 …

Member Avatar for thekashyap
0
527
Member Avatar for Hakoo

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[] …

Member Avatar for Hakoo
0
601
Member Avatar for Transcendent

[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 …

Member Avatar for kekkaishi
0
198
Member Avatar for CMAUK

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 …

Member Avatar for mKorbel
0
174
Member Avatar for Abdel_eid

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)

Member Avatar for mKorbel
0
71
Member Avatar for PhiberOptik

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

Member Avatar for mKorbel
0
57
Member Avatar for fugmag

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()); …

Member Avatar for mKorbel
0
293
Member Avatar for patrickgormally

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 …

Member Avatar for jon.kiparsky
0
230
Member Avatar for techie929

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 …

Member Avatar for jon.kiparsky
0
99
Member Avatar for JavaI

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 …

Member Avatar for Ezzaral
0
72
Member Avatar for asad_80

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

Member Avatar for Ezzaral
0
61
Member Avatar for WolfShield

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 …

Member Avatar for JamesCherrill
0
133
Member Avatar for Katana24

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 …

Member Avatar for Katana24
0
96
Member Avatar for chipsch

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 …

Member Avatar for JamesCherrill
0
391
Member Avatar for Alex_

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 …

Member Avatar for Alex_
0
346
Member Avatar for blackberrycrazy

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 …

Member Avatar for blackberrycrazy
0
138
Member Avatar for Quintia

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?

Member Avatar for jon.kiparsky
0
89
Member Avatar for john butler

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 …

Member Avatar for peter_budo
-1
168
Member Avatar for Dean_Grobler

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 …

0
60
Member Avatar for odiejodie

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 …

Member Avatar for JamesCherrill
0
153
Member Avatar for gavriela

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 …

Member Avatar for Er. Mukesh
0
1K
Member Avatar for Abdel_eid

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

Member Avatar for mKorbel
0
466
Member Avatar for Bennychrystal

[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.) …

Member Avatar for Katana24
0
184
Member Avatar for coco24

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 …

Member Avatar for stultuske
0
124
Member Avatar for HardWorkingMan

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 …

Member Avatar for JamesCherrill
0
2K
Member Avatar for Zak84

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 …

Member Avatar for masijade
0
42
Member Avatar for iceregulus

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 …

Member Avatar for mKorbel
0
1K
Member Avatar for PhiberOptik

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 ?

Member Avatar for mjason
0
214

The End.