35,618 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
845
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
165
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
108
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
97
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
137
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
175
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
71
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
39
Member Avatar for darshan25

Hi all, i start to work on chat utility on my company email application product. here i populate able to populate chat grid like gmail in my mail application product. in which two text area , here i able to submit chat text whatever user has entered, right now i …

0
74
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
825
Member Avatar for vvab

Hi, I am looking for a source code formatting tool that can format jsps and can be integrated with eclipse 3.3.x. Does not matter if it is a freeware or shareware. Have searched all over the web but have not found one that fulfills the purpose so far. There is …

Member Avatar for vvab
0
163
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
137
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
59
Member Avatar for nonereally

Hi Guy, I'm having problems accessing some attribute values stored in DOM. I have an application form....on page 2, I use some javascript on page 2, where the user can add a number of accounts, and in a section below the add account, it displays the accounts in real time. …

Member Avatar for stephen84s
0
76
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
145
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
126
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
526
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
109
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
151
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
429
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
121
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
221
Member Avatar for jaiprakash15

Dear friends.. I working on a Project..here i have to let the user to type in respective languages(hindi,tamil,kannada etc...) I have done this by passing the user input to a javascript file.. but current due to some changes..i need to change that.. I have to do that in some other …

0
72
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
883
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
81
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
28

The End.