36,051 Topics

Member Avatar for
Member Avatar for hc++

Hello there, I am trying to make an applet that would let the user move a dot around a bounding circle. (The dot has to move along the circle's boundary, see the attached example image) I am having trouble updating the dot's position, because the bounding circle gets erased while …

0
41
Member Avatar for Thendi

Hi I am trying to put quicksort in my class like other methods and call it using the main method, I did it for Selection, Insertion, Bubble Sort and I need one more which is quicksort. I already made the calling code for quicksort but I don't know how to …

Member Avatar for Thendi
0
655
Member Avatar for desert564

any time a number is present in a word inflate its value by 1........ for eg, input anyone up four tennis output anytwo up five elevennis [CODE]import java.io.*; public class inflationary { public void main()throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String num[]=new String[14]; num[0]="zero"; num[1]="one"; num[2]="two"; num[3]="three"; num[4]="four"; num[5]="five"; …

Member Avatar for dononelson
0
109
Member Avatar for virus.exe

Hey im having trouble making the tester part of a program. In the first part I made a class named student: [CODE]public class Student { private String name; private int idnumber; private double gpa; private int credithours; public Student(String studentname, int idNumber, double gradepa, int chours) { name = studentname; …

Member Avatar for kekkaishi
0
191
Member Avatar for techie929

Hi, I have a sample.rgb video file and I can view this video file using Java code. This sample.rgb has total 1800 frames. The video is displaying really slowly. Is there any way I can increase the frame per second?? Thanks.

0
53
Member Avatar for sariberri

I need to add a border around the Size label and the small, medium and large buttons so I thought I would add them into their own Panel and then add that panel to the mainPanel but when I do that they do not show up. What am I doing …

Member Avatar for Ezzaral
0
299
Member Avatar for Taimoor Rana

hey guys, I drew many lines for the purpose of my project but for some reason, I cannot draw this specific line[U](code line 44)[/U] and cannot figure out why. Note: I have debugged the code and this code line is red by Java but it's not applied to the graphic. …

Member Avatar for Taimoor Rana
0
144
Member Avatar for Sadun89

In java,Java compiler java source code convert to java byte code..... Than Interpreter execute codes line by line.... what is the languages java compiler & Interpreter have bailed up? :-/

Member Avatar for masijade
0
216
Member Avatar for joseph.roy9

hi, i want to develop a java swing application for searching names in the database; how can i get names which starts with a particular aplaphabet; ex.'j' ans:joseph john etc........ plz help me thanks in advance

Member Avatar for Ezzaral
0
64
Member Avatar for sumprit

Hi, i need to find the max value of ArrayList<ArrayList>. I don't know whether it is possible or not? Can anyone please give me some suggestion. Any help from you will highly be appreciated.... Thanks.

Member Avatar for sumprit
0
191
Member Avatar for Jaydenn

My entire project is fucked if I can't do this; Basically, I need to be able to add an element to a JList (doesn't need to be a JList, just needs to be a list component) then have a tag added to the element too, so when I get the …

Member Avatar for javaAddict
0
89
Member Avatar for dagarsac

In Jsp page some Java Script code is there . When I run the JSp file then java Script code is shown in the browser. Please suggest.

Member Avatar for toydiaz
0
57
Member Avatar for kiswah03

when i click on my jar folder,nothing happens, i also tried opening by using command prompt .no use plsss help me

Member Avatar for kiswah03
0
111
Member Avatar for jitsux

I need help. I have a project that I have to hand in within 3 days. My mind goes blank everytime I read the requirements, This is the question: You are required to create 15 random strings. The user should then be asked whether he wants these strings sorted in …

Member Avatar for abhishek20
0
168
Member Avatar for bhattpratik

Hello! I want to know exactly What Is [COLOR="Green"]Difference[/COLOR] Between The [COLOR="Red"]FileFilter[/COLOR] and [COLOR="Red"]FileNameFilter[/COLOR] in java.io.*; Do they both work the same ? Please answer ....... [B]-> {Pratik Bhatt}[/B]:)

Member Avatar for bhattpratik
0
2K
Member Avatar for Cassandra Low

Hi, I'm currently trying to store all the text in text area into a txt file in directories using java. I know how 2 use mkdirs() to create directories, for example C:/d1/d2, but if i type [CODE](new File(C:/d1/d2/sample.txt)).mkdirs()[/CODE] it makes the txt file into a folder too. I tried with …

Member Avatar for mKorbel
0
153
Member Avatar for rampapz

Hi, I need help on the complete coding of Java mug. This is an given to me by the university, I have just started my course on java. So, could please someone help me & provide me the complete coding on java mug. This would help me to score good …

Member Avatar for javaAddict
0
228
Member Avatar for manthra

hi, im quite new to this jsp. i want to know how to pass parameters from a java file to a jsp file? we can do this through java servlets, yet i have a doubt regarding passing the parameters. could you help me?

Member Avatar for only_java
0
95
Member Avatar for alliance

In a certain sports league, a group of teams plays through a Schedule of Game. At the end of this Schedule, they want to determine the winner. To determine the winner, you will have to determine for each team how many Games they won, lost, and tied. Assuming 2 points …

Member Avatar for audiomatic
0
308
Member Avatar for coervivekmca
Member Avatar for bharathisankhya

Hi all, I have added the below 2 lines in my JSP file: <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> I got the below Error while opening the Jsp in the browser: org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException: The absolute uri: [url]http://java.sun.com/jsf/html[/url] cannot be resolved in either web.xml or the jar …

0
67
Member Avatar for Akins72

[CODE] /* Programmer: Date: March 30th, 2011 Filename: DiceGame2.java Purpose: Java program that lets the player roll 5 normal 6 sided die. The player gets to choose which of the die to keep or which to reroll - explains it in messages to the player. Reroll the selected die not …

Member Avatar for Akins72
0
207
Member Avatar for ajaybali

I'm starting to have more source files than is easily managed and was wondering if it's possible to put the .java files into sub-folders of the package folder they are already in? I'm using eclipse if that makes a difference.

Member Avatar for Ezzaral
0
88
Member Avatar for ajaybali

Hi, I have a frame with a combobox. the combox is editable. It should show [Select] in its text field when we open the frame but in the drop down, [Select] should not be shown as a drop down item. Now I have implemented the combobos as: combo.addItem("Select"); combo.addItem("A"); combo.addItem("B"); …

Member Avatar for Ezzaral
0
78
Member Avatar for SMITA6076

I'm working on a CyberPet assignment and I'm not sure how to do the following: 'Then write an [ICODE]encounter ( CyberPet )[/ICODE] method that allows one CyberPet to encounter another and will describe the encounter by returning a String data type. Note that the method should take a CyberPet parameter. …

Member Avatar for SMITA6076
0
599
Member Avatar for AhmedGhazey

Given a word, check whether it is a simple English word, with these characteristics: Contains at least one vowel, Doesn’t contain three consecutive vowels or consonants, Vowels ‘e’ and ‘o’ can be repeated twice consecutively, but other vowels can’t. Can it be done using traditional regular expression?!! the question what …

Member Avatar for AhmedGhazey
0
144
Member Avatar for 47pirates

Is it possible to create a microsoft access database (mdb) file through a java program? and how to register the thus created mdb file to ODBC center? thanx in advance

Member Avatar for mKorbel
0
249
Member Avatar for gcclinux

Hello, I am new to this codding stuff and I am only doing it for fun (personal little project) and for learing as I am not programer in any language apart from knowledge in shell scripting :( Anyway after a few weeks looking at examples and searching the net and …

Member Avatar for dononelson
0
157
Member Avatar for Carrots

Hi there, I'm completely new to Java. I am trying to use [I]import[/I] in a project, but despite using what I think is the right code, my application fails to build. When I build my app, it builds and runs fine, but I want to use [I]JFileChooser[/I], so add this …

Member Avatar for Carrots
0
109
Member Avatar for SMITA6076

I have two classes. The first class is called [ICODE]EmployeePayRoll.java[/ICODE] (this compiles fine) and the second is called [ICODE]TestEmployeePayRoll.java[/ICODE] (this does not compile). The trouble I'm having is that I'm trying to pass in methods as parameters when I instantiate my objects in the main method of the test class. …

Member Avatar for SMITA6076
0
302
Member Avatar for MisterSinyster

Create a constructor for the Delivery class that accepts arguments for the year, month, and delivery number within the month, delivery distance code, and weight of the package. The constructor determines the six-digit delivery number and delivery fee. Also include a method that displays every Delivery object field. Save the …

Member Avatar for dononelson
0
113
Member Avatar for rohit2

Hi, I have a JTextPane and want to know if there is a way to get the (x,y) pixel position of the current cursor. I don&#39;t want the caret position that&#39;s from getCaretPosition(), but the pixel co-ordinates of where the cursor currently is. I&#39;m using a variable width font in …

Member Avatar for Ezzaral
0
119
Member Avatar for Stefan_Lam88

Hi everyone, I have a question. I m using iterator to loop my jsp such as code below in my jsp [CODE]<%Iterator itr;%> <% List data=(List)request.getAttribute("data");%>[/CODE] I use servlet as my engine to proceed my sql statement. below is my sql statement [CODE]select * from a natural left join b …

Member Avatar for Stefan_Lam88
0
162
Member Avatar for MisterSinyster

it compiles fine but when i go to run the program the only output is "Cut Shampoo" and the program ends. Any help will be greatly appreciated i need to have this finished soon. Description Create a class for services offered by a hair-styling salon. Data fields include a String …

Member Avatar for mKorbel
0
598
Member Avatar for sumprit

Sir, i have used two JButtons(Next,Previous) to perform actions. In a JTable, before clicking JButtons there is my 1st result. once i clicked the Next JButton then it show me the 2nd results in a JTable, and again clicking Next, it shows the 3rd result in JTable. Same thing applies …

Member Avatar for JamesCherrill
0
2K
Member Avatar for fonzi

So, i have to methods in a non main class and i need to figure out how to print both the println in a chart with two columns should look something like this x : y x : y x : y x : y x : y but instead …

Member Avatar for fonzi
0
127
Member Avatar for fonzi

so i am working on a assigment for school, and i need help with the java.util.Calendar , i am trying to increment the year of as today by one each index of an array . This functions needs to be inside a toString(). so i need some help i know …

Member Avatar for fonzi
0
226
Member Avatar for abhishek20
Member Avatar for abhishek20
0
307
Member Avatar for kenjiro310

[CODE][/CODE] I am trying create a Java program which draws a bar graph based on the input from the command line. Problem i am running into is that I cannot get the values of the Args[] starrting at index 2 to provide values unless i specify the numbers. ANy thoughts …

0
55
Member Avatar for wonder_laptop

i reading a book about aglets, in this book, there is a piece of code demonstration Master/slave aglets and they say: [CODE] sayItAgletRemoteProxy = sayItAgletLocalProxy.dispatch(new URL("atp://localhost:9000")); // unfortunately this remote proxy is invalid in version 1.1b1. The aglet book is based // on version 1.02. See ch 7. p. 121. …

Member Avatar for wonder_laptop
0
213
Member Avatar for bhanu1607

Hello every one, I have small problem. Can any one tell me how to get the url from an anchor tag dynamically. That is when i click on link the next coming url i need to send to a script can any one help me... My problem is when i …

Member Avatar for coervivekmca
0
399
Member Avatar for Dean_Grobler

Hi guys, I'm looking into getting into the mobile development industry. Altough I'm being pulled in two directions and can't make up my mind. Which would be the wiser option, Blackberry or Android? Basically making the choice based on where the industry is going for both, job oportunities, popularity etc. …

Member Avatar for Dean_Grobler
0
219
Member Avatar for visweswaran28

Hi, I am using netbeans 7.0 beta IDE and I have iinstalled jdk 1.6 and tomcat 7. I tried to run simple jsp program through IDE, but I got *"Must select some files in the IDE or set javac.includes"* this error message. I set java_home classpath, I have tried without …

Member Avatar for peter_budo
0
64
Member Avatar for bharath54321
Member Avatar for titosd

Hello, I have to do backup program using rmi but I have a problem, when i compile the program the update method does not work correctly. can any one help me ? the classes in the atachments thank you

Member Avatar for thekashyap
0
53
Member Avatar for bharathisankhya

Hello All, We are facing a probelm in importing JetspeedRunData in sakai project. Pls help me to solve the issue.

Member Avatar for mKorbel
0
50
Member Avatar for Hey11

i want to write a program that changes all the 'a' charachters to 'v' but the problem instead prints all the message as vvvvvvvvv here is the code [CODE] class operation { public String encode (String args) { StringBuilder mago = new StringBuilder(); char a, b; b='a'; for (int i=0; …

Member Avatar for jwenting
0
97
Member Avatar for sumprit

Hi everyone...., i need some suggestion whether it is possible to perform actions for each click of a single JButton. What i mean to say that for each click of a single JButton is it possible to perform actions for each time the JButton is clicked? Please give me some …

Member Avatar for sumprit
0
83
Member Avatar for blueangel

How to upload file with oracle database 10gR2?? i can't find how to upload.. i've tried to create a procedure in oracle and execute in netbeans but the file save in directory and then from directory save to database. it means the file save in 2 location, in directory and …

0
86
Member Avatar for XodoX

I did this code ( this here is just a piece of it), and there's supposedly an incomplete function in there. I'm not sure what how to solve this. I suppose the boolean is wrong? I indicated where the problem is in the code. [code] public class Person { private …

Member Avatar for XodoX
0
180

The End.