32,204 Topics

Member Avatar for
Member Avatar for crowleykg

Hi, [B] I am trying to write a simple java application that detects motion. The application gets its images from a webcam with the address:[/B] [url]http://studiocam1.disp.duke.edu/jpg/image.jpg[/url] (you can watch the live video feed at: [url]http://studiocam1.disp.duke.edu/view/index.shtml[/url]) [B]My current plan is: (I have little experience, so it may be wrong)[/B] 1. I …

Member Avatar for peter_budo
0
840
Member Avatar for lion_crazz
Member Avatar for abhi_elementx

Hello folks, I m trying to simulate the RSA algorithm. This is some of my code: [ICODE] System.out.println((int)Math.pow(6, 5) % 119); System.out.println((int)Math.pow(41, 77) % 119); [/ICODE] The first results in 41 while the second results in -9 when the expected shud be 6. Whats wrong?

Member Avatar for stephen84s
1
164
Member Avatar for trueinam

Dear Members I am having a problem in Java and I am pasting the code and the error message please tell me where is the problem and aslo tell me any directory that can guide me about frequent error messages and their solutions. here is the code. import javax.swing.*; import …

Member Avatar for stephen84s
0
105
Member Avatar for Superstar288

hello everyone, im trying to make a theatre program and im at a dead end so im hoping for some help please. if someone can help see my problem clearer or post some sample code it will be much apperciated. the problem is i need to create a Seat class …

Member Avatar for Ezzaral
0
147
Member Avatar for jbennet

Im storing prices in pennies e.g 399 but i want it to be displayed e.g £3.99p how to do ? i used integers?

Member Avatar for BestJewSinceJC
0
94
Member Avatar for mashimaro

Hey, I'd like to write an application (in java, ofc) that would be able to connect to an LDAP server, with authentication, using sessions. Are there any libraries I could use to do so out there? Open source ones would be best, and the rule KISS is a priority ^.-

Member Avatar for mashimaro
0
135
Member Avatar for jdbarry

I am need a little guidance here as to how I am to go about using a static method to read data from a text file. I know how to use a static method to write data to a text file, now I am wondering how to use a static …

Member Avatar for BestJewSinceJC
0
174
Member Avatar for BestJewSinceJC

Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Java Sun's site is down right now so I can't check but I'm guessing this is an old method since according to Eclipse, the method doesn't exist anymore. So my question is, are there any other ways to do the same thing?

Member Avatar for BestJewSinceJC
0
110
Member Avatar for h3xc0de

I am trying to implement a live support chat application where users can chat with customer service for support or general information. I'm having problems trying to figure out how to go about implementing it. I was thinking the best way would to be to use servlets to pass the …

0
70
Member Avatar for milhouse79

Okay... public void reverse() { Object temp = new Object[INITIAL_CAPACITY]; for(int i = 0; i < size; ++i) { for(int j = size; j > 0; --j) { temp = data[i]; data[i] = data[j]; data[j] = temp; } } } this code does not reverse anything...I'm losing my mind here. …

Member Avatar for stultuske
0
81
Member Avatar for yashbhalekar

Hi All, We are working on ‘Siebel on Demand’ (software as a service) CRM. We are using web service to communicate. We have WSDL files and we generated the code using Axis framework that comes along with Eclipse. We are able to login and logoff to the CRM through web …

0
38
Member Avatar for dbwalters

Hello, I was hoping that someone might be able to help me with this program: [code] import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.text.*; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.io.FileNotFoundException; public class CustomerInfo extends JFrame implements ActionListener { //construct components JTextPane textPane = new JTextPane(); //initialize data in …

Member Avatar for hrdzdier
0
824
Member Avatar for ppp83

Im new to this forum and the programming language that im currently using is java. And i think i might need some help, advice here, and hope this is the correct place for me to post my question. If certain question i ask are not supposed to be posted here, …

Member Avatar for danielernesto
0
135
Member Avatar for britto

im creating an IDE for jswing what i need is the user must drag and drop swing controls ex: (TextField, JList ...) into a tab in tabbed pane dynamically hw to do this....

Member Avatar for Ezzaral
0
58
Member Avatar for abhi_elementx

hello folks. I m trying to call an exe from java code. [ICODE] public void MyClass{ public void run(){ Runtime rt = new Runtime ().getruntime(); Process p = rt.exec("c:\mylexicalanalyser.exe < SampleInput.txt "); // } . . p s v m(){ new MyClass(); } } [/ICODE] mylexicalanalyser.exe was created by flex …

Member Avatar for abhi_elementx
0
144
Member Avatar for vikas_java

hi, I get above exception for the following code. [CODE]public void actionPerformed(ActionEvent e) { try { JComboBox Oone =(JComboBox)e.getSource(); String item = (String) Oone.getSelectedItem(); //lbl.setText(item); System.out.println("selected item is:"+item); String command = e.getActionCommand(); if(command.equals("Cancel")) { System.exit(0); } if(command.equals("Next")) { // frame.remove(tab); check chk = new check(item); //frame.setContentPane(tst1); frame.setLocation(250,150); frame.setSize(500,200); frame.setVisible(true); } …

Member Avatar for stephen84s
0
123
Member Avatar for shahab.burki

Hi, We no that their no support for Pointer in Java as in C and C++. So how can we print the exact location of a varaiable in java? Shahab

Member Avatar for stephen84s
1
516
Member Avatar for jdbarry

I am trying to write a program that calculates the surface gravity on each planet in our solar system. I have the printing of the results assigned to a static method. However, I have a problem. There are two for statements I am using in this program. The last for …

Member Avatar for stephen84s
0
105
Member Avatar for ppp83

I use maven to build my project, and i tried to modify an existing pom.xml to compile my project, seems like it's not really compiling as it detects that no sources to compile. As a basic start of learning pom.xml, where can i start from?

Member Avatar for stephen84s
0
150
Member Avatar for ppp83

Need some advice, help and guidelines here regarding this topic. How can i use the jar utility to unpack the jar/war file so that i can inspect one particular package and return a list of the classes within that particular package? I need to progress further from that point onwards …

Member Avatar for stephen84s
0
428
Member Avatar for hidash_in

[B][I]Hi all, i have to download a file from a server automatically without any manual interaction. I dont know whether it is possible. Any one of you know the solution for this problem please send me the code. Thanks Hidash[/I][/B]

Member Avatar for stultuske
0
120
Member Avatar for nanna

hi, iam trying to create phone directory as a seperate Jframe. there is a button in the main JFrame that leads to the seperate Jframe. the seperate Jframe contains JList which includes names and numbers. when click on any name from the list, this name with the number should appear …

Member Avatar for verruckt24
0
220
Member Avatar for curtissumpter

Hi People, I am trying to run this file but I am having trouble getting the program to incorporate the gif file that I need. Here's the program. // Demonstrating JDesktopPane import javax.swing.*; import java.awt.event.*; import java.awt.*; public class DesktopTest extends JFrame { public DesktopTest() { super("Using a JDesktopPane"); JMenuBar …

Member Avatar for danielernesto
0
875
Member Avatar for fran121

hello ive already written the scoreboard and tictactoe now i need write the GameUI.java this involves using collections framework, however in which I'm struggling in. If anyone could start me off, help me out, what so ever would be very appreciative. Fran

Member Avatar for BestJewSinceJC
0
77
Member Avatar for frozen_death

can un help me to create a program that used panel and frames or plz create a simple sample program that used panel and frames so i can study on it.thnxz

Member Avatar for BestJewSinceJC
0
27
Member Avatar for sciwizeh

I have the eclipse for Java developers, and I have the MinGW that's distributed with Dev-C++. I just want to know what downloads need to get from the update manager of eclipse, I also don't know how i set it up to use the compiler that came with Dev-C++. I …

0
79
Member Avatar for JMChurch25

Hello, almost done with the Sudoku Solver but dealing with a couple last glitches in the solve method that supposed to use a backtracking algorithm. It is printing out some weird values and outputs. I've got the program printing out the unsolved puzzle fine but the "solved" puzzle is nothing …

0
63
Member Avatar for ghaith

Hey, I'm working on a project where i have to visualize an algorithm, i have to generate graphs in the application, and it must be using Gxl, i searched for manuals on gxl and java, i found jgraph, but I'm actually not sure where to start on that, let's say …

0
65
Member Avatar for milgo

hi,im new in java & i really dont have the basic concepts of object oriented programming.please help me with the code for application class that automatically rejects anyone above the age of 40.kindly include comments so that i can understand better.thanks

Member Avatar for Ezzaral
-1
121

The End.