32,204 Topics
| |
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 … | |
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? | |
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 … | |
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 … | |
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? | |
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 ^.- | |
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 … | |
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? | |
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 … | |
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. … | |
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 … | |
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 … | |
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, … | |
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.... | |
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 … | |
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); } … | |
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 | |
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 … | |
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? | |
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 … | |
[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] | |
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 … | |
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 … | |
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 | |
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 | |
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 … | |
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 … | |
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 … | |
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 |
The End.