36,051 Topics
![]() | |
i want to sort a list of two dimensional points based on their polar angles with respect to a particular point. this will a part of a bigger code to find collinear objects from a set of points. the method i thought of for doing this is is: 1. create … | |
I am building a java based project but my main motive is to run it with the help of an android phone. How can I connect my database in my laptop with my mobile and moreover the project also needs to send sms to the mobiles so , if anyone … | |
I am attempting to load an 3 icon image but my code doesn't do so: package com.proxy; import java.awt.Component; import java.awt.Graphics; import javax.swing.ImageIcon; import javax.swing.JFrame; public class ImageIconProxy extends ImageIcon implements Runnable{ static final ImageIcon ONE = new ImageIcon("/IFDesign/images/green.jpg"); static final ImageIcon TWO = new ImageIcon("/IFDesign/images/yellow.jpg"); ImageIcon CURRENT = ONE; … | |
on mac is there a different way to turn eclipse project to runable files? i right click on project and select export. than i went under java than runnable jar files. this lanuch a "runable jar file export" window. on it there is "lancuh configuration" option. when i click on … | |
Just like the way it is with Netbean IDE, is there no Eclipse that can allow all Java SDK all in one and if even possible to hava one for PHP,c/c++ pls Java all in on, because i got to eclipse website today just to discover that each of Java … | |
Last week saw the discovery of YAJE: Yet Another Java Exploit. Sadly, Java vulnerabilities are neither new nor uncommon and the bad guys are quick to exploit them in the wild. Some claim that Oracle is in too much of a rush to extricate itself from this unholy mess and … | |
Hello! I'm just a beginner in java and also a newbie,in fact this is my first post. I already programmed some stuffs such as games, calculators and other stuff. I also have a good grasp on the language and some of it's libraries . I am planning to take my … | |
what is jquery ? What is java script and what are prerequirements for learning javascript ? What is the diiference between advance java and core java ? What is AJAX ? As i am beginner to JAVA and want to learn about java and thats y i am asking this … | |
i have to create a website in jsp using sturts in netbeans ide.i wants to knowhow to gt record values from d database on my webpage. | |
Hi friends.. I am trying to upload file in apache http server(Some Url) using WEBDAV sardine concept..I coded for file uploading and Apache server configuration and all. I wanna do this file Read and Write With authentication.. So,i added .htaccess password file in apache.. When i am trying to upload … | |
hi all, i am doing my java project (video player). This is the task : Enter a video number and click a button to add that video to a playlist. If the video number is valid, the video name should be added to the list and all the names in … | |
hello there, im having a problem with my code . .. . . so this is my class 1: package app.ui; import java.awt.EventQueue; import javax.naming.ldap.Rdn; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.ImageIcon; import javax.swing.JScrollBar; import java.awt.Color; import java.awt.Font; import java.beans.PropertyChangeListener; import java.beans.PropertyChangeEvent; import java.util.Calendar; import java.util.GregorianCalendar; import javax.swing.JScrollPane; import javax.swing.JTextField; import … | |
Hello everyone, I am sure the dice game has been discussed numerous times on here. I am hoping to get some feedback on my take of the dice game. This was a homework assignment and I have completed the requirements. I am just wanting to see where I could have … | |
Im new to threads, and would like to get experience so I am trying to build a chat server. The idea is to have one thread read from the client socket, while another thread writes to the client socket. (like AIM) I cannot get them to execeute concurrently; Need help, … | |
This program is not running due to 2 errors could someone please assist me? Thanks import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class UserList { public static void main(String[] args) throws Exception { String str1, str2 = "username"; int index; int initialCapacity = 10; BufferedReader dataIn = new BufferedReader(new InputStreamReader(System.in)); … | |
Write a program that (using an array) analyzes student performance on an exam using the information from such a file. The program should input the name of the text file, and then display the worst score, the best score, the average score, the standard deviation, and a histogram -- a … | |
Hi everyone, I am new to java webservices, i am developing a web service client using apache axis2 and eclipse. I used wsdl2java to generate the client code. Now when i invoke the service i get this error: org.apache.axis2.AxisFault: The input stream for an incoming message is null. What code … | |
Hello Everyone. I am making a sudoku solver for an assignment, and I ran into a problem of my 2D Integer array not updating. The input consists of a 9x9 puzzle with 0s for the missing values. I read this input and then place it into the 2D array. during … | |
Hello everybody, Im using datagrams to send a DatagramPacket, however, unless the router has ports forwarded, the clients dont recieve the packets. Is there a way to set this up so that my clients dont have to port forward on their router? How to main stream gams like LOL or … | |
How to assign a keyboard shortcut in jTabbedpane in netbeans?? My project is quite using many tabs so I want to minimize clicking the mouse. Need HELP! Thankx | |
My code: public ArrayList<Grade> grades; grades = new ArrayList<Grade>(); public Grade getLowestGrade() { Grade lowestGrade = grades.get(0); for (int i = 1; i < grades.size(); i++) { Grade g = grades.get(i); if(s.getGrade() < lowestGrade.getGrade()) lowestGrade = g; } return lowestYet; } This code is in my Student class using the … | |
Hi, I need to implement java question answering system (similar to chatbot but domain specific) for my final year project. I first thought of using AIML to build knowledgebase. But I could not find how to access it in java. All I found was program D, program W and so … | |
Hello, I have a button which on clicks display a frame, where i have 2 radio buttons. When i choose one of the radio button it draws an image on the panel, however when i click on the button again, the image drawn is disappeared and i am not able … | |
ok so i kind of know how to restart but the problem is that when ever i restart my animation get faster and faster. so i have main.java and alot of other objects. so one class for player one for player one for background etc... public class main exteds JApplet … | |
Hi folks, I'm newish to android, very inexperienced. I'm trying to develop an application that transmits the coordinates of one phone (client a) to (client b) via a java server, I then want to check the distance between clients. I have managed to get the coordinates of client a, send … | |
i have two animation going on screen. one animation is a rect going to right. i dont want this animation to stop 2nd animation is message coming on screen for 1 sec and removeing it. right now 1st animation works fine but doesnt diplay. its be iam seting message="". but … | |
Hello. I have a question. I have a polynomial with Double coefficients and one with Integer ones, and to perform the integration I have to convert from object Integer to Double,but I found that it is not possible so I've tried to convert it into a String than into Double,but … | |
Help Write a Basic Program to convert number from 0 to 999999 in words In Qbasic or Java Programming language | |
Hi Guys, I am working on a binary search tree and I've been stuck on some code for the last couple of days. There are 2 issues that I can't seem to figure out how to fix. 1) I have a file that has a list of names and ID's … | |
Hi there, I know a fair amount about programming in both C++ and Java, but I still have much to learn. I am working on a mobile application idea for Android (so it's in Java) that uses a three-dimensional room as its main component. My very general question is, what … | |
I do not know if I am on the right track or not, but I have hit a dead end. I have read and reread my books chapters about super classes and inheritance and am still completely lost. in this assignment I have to: **Write a super class encapsulating a … | |
Hello, What is the best way to count the number of swaps required to sort an array that is sorted using the Quicksort algorithm? I put a counter in what I believe is in the correct position and the tests that I have run seem to be correct however Quicksort … | |
I have a homework task where I need to determine which sorting algorithms are implemented in a .jar file provided by my teacher. Obviously I need to design my own tests to do this, so I was doing a bit of research on best/worst case scenarios but what I found … | |
Hi All, I'm new in android app development and before you present a proposal to the client is it important that you must create a mock up of the design of your app first? If so what are the proper way of creating a mock up design for an android … | |
I have to: **write a class encapsulating a sports game, which inherits from Game. Where the game has the following additional attributes: whether the game is a team or individual game, and whether the game can end in a tie. ** I am not familiar with inheritance and am wondering … | |
I'm trying to make a small app with the following look  Thats an edited image of what exactly im trying to achieve. But here's what I got...  Could you tell me where I went wrong. And if it isn't much effort could you advise on how … | |
Hey, I have an assignment to :write a program that reads a file and writes a copy of the file to another file with line numbers inserted. I am not sure what to do at the end of the code at the "for(int i =0; i < lines.length; i++)" part. … | |
I am trying extract 5 numbers from a loop that generates 78 numbers randomly. How would i do that? for(i=0; i<=78; i++) { //i am not sure how to extract the numbers from here randomly } //I am also wondering how to take it's average, or am i doing it … | |
Hey I have a program in retrieving data from a HTML page with Javascript using Java. Lets say I have the structure of C:/index.html C:/js/script.js index.html contains: [code] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script type="text/javascript" src="js/script.js"></script> </head> <body> <a href="javascript:void(0);" id="add"><img src="images/menunew.png" alt="plus" border="0" /></a> … | |
How can i capture and transmitt and recieve audio and video using jmf ? Is is possible to provide gui to clients on applet and make authentication mechanism and database connection aur user credential through java servlet? How can i provide feature of adding friends and showing online status of … | |
Hi I have to develope video chatting application for my major project. I have 45 days in hand. How can i use applet in dynamic web project of java servelt for displaying video ? How can i make applet to be used on client's browser. what is the way to … | |
Hi. In a video chatting application , how can i provide user with the feature of adding friends and showing the list of online friends. Also how can i capture audio and video and transmitt(sender client 1) and recieve (reciever client 2) using jmf and rtp . I have studied … | |
hi!guys can any one tell me how i make installer through java.. i have source code only i want to make it the installer that easily install to the other computers and other used this.......... | |
Hi..Stress is a common thing in every programmer's life. So here is a way you can reduce your stress.. Write System.exit(0); in your code whenever you are in stress..:) Comment your own tips too to avoid stress | |
** //When an item from the list is selected, a checkbox along with the drawn graphics schould appear. but only the graphics appear. Help? *basic** import java.awt.*; import java.applet.*; import java.awt.event.*; import java.awt.Checkbox; public class GetSelectedItemExample extends Applet implements ItemListener { Choice c; CheckboxGroup g1 = new CheckboxGroup(); Checkbox checkBox1 … | |
Hello, I have been having quite a bit of trouble with this one. Can someone please tell me how many swaps it would require to sort the following array? {2, 4, 6, 3, 7, 1} I tried putting my counter in a couple of places and neither one of them … | |
Hey guys im populating a combo box from my database i was just wondering how do i prevent the combo box from displaying different instances of the same value. e.g three B&Bs all from ennis. ennis is in the combobox but its displayed three times. how do i stop this … | |
Hi Guys I was just wondering how you stop the combo box from displaying different instances of the same value. In the combo box i have villages and towns names e.g doolin. onli thing is i have many businesses from doolin on the database so when i pull the town … | |
trying to make a table tennis game. simple one with two paddles and one ball. so i have two paddel which is a long rectenger. and a ball. ball i have set x+=dx y+=dy this code above will let the ball keep on going right and down. if ball hit … | |
Here's the image [link](http://postimage.org/image/kee0ndxdv/)! Will this be possible ?? If so let me know how to do it guys. I dont know how to send the response to the browser directly help me guys.. Thanks, HOSTGUY |
The End.