36,051 Topics

Member Avatar for
Member Avatar for samidha

Hi, in my java project Employee Payroll, I am supposed to include a Ideal-Time window and maintain log for that ideal time for particular Employee... On the basis of which salary deduction or bonus to the employee will be calculated... For maintaining log, we will need JDBC; but for creating …

Member Avatar for DavidKroukamp
0
240
Member Avatar for 47pirates

i got a problem whenever i give the username of less than 4 character in java GUI then tha userlist from python server is regularly updating my UserList textField in JAVA GUI but when the character exceeds more than 3 that UserList textField is not updated rather the user list …

Member Avatar for NormR1
0
121
Member Avatar for drameshgar1

Hi, I am using NetBeans as my IED to make game in JAVA i want to make a line on left hand side this is the code i wrote: Body staticplatform = new Body (world, PolygonShape.makeBox(50, 7), Body.Type.STATIC); staticPlatform.setPosition(new Vec2(-0, -200)); how can i make this line on right hand …

Member Avatar for NormR1
0
260
Member Avatar for jasonrefan

Hello, I have an 'Add' method that validates JTextFields to ensure data has been entered into them as well as checking that certain fields only contain digits. This works perfectly for my add method. But when I try to import it into my 'save' method which is seperate to the …

Member Avatar for NormR1
0
125
Member Avatar for drico7041

Hey, I was having trouble making my vector print out randomly generated numbers in ascending order. Can I please get some help?. This is my assignment "Write a program name count.java that will use a Vector to store 10,000 randomly generated numbers (ranging from 1 to 99) Now sort the …

Member Avatar for drico7041
0
185
Member Avatar for Shodow

example i will enter timein: 1:30 timeout: 5:00 how to know their time difference?in timeformat or how to accept a timeformat input from the user

Member Avatar for DavidKroukamp
0
122
Member Avatar for bhallarahul

Is there is any way or method to get the content of pdf row by row/line by line which help to convert pdf to word using itext api??????????

Member Avatar for peter_budo
0
955
Member Avatar for shotokanpoloto

I want to run an exe file in my project. I mean when I run my codes,a specific executable file run. How can I do that?

Member Avatar for DavidKroukamp
0
245
Member Avatar for laklaker

I created a game a random guessing game ( for school project ) . I just want to ask on how to put a hall of fame? Like when you played the game then its end it will be putted his/her name then it will be saved. Then it will …

Member Avatar for DavidKroukamp
0
199
Member Avatar for anand01

hi all , I know jsp,servlets, now I plan to learn structs what are the things should I learn before start to learn structs thanks in advance

Member Avatar for peter_budo
0
80
Member Avatar for Eragah

[B][I]Hi I wanted to ask a quick question. I have two classes. And within my main class i am able to pass in variable to three variables EyeColorR to EyeColorB and able to send them the my Eye Class under the consturctor class Eye. the catch is I need to …

Member Avatar for Eragah
0
215
Member Avatar for shotokanpoloto

Hi...I want to read from a file and put each line in...the given file is like that : q0,q1,q2; a,b; q0; 7; q0,a,q0; q0,b,q1; . . . . (as you see it's the information of a nfa) Each line ends with ";" and each element of array is separated with …

Member Avatar for shotokanpoloto
0
224
Member Avatar for HelloMe

Hello guys... I downloaded JDK 6.0 (btw is it the same as JDK 1.6?) Anyways, when i want to install it a error message pops up during instalation that says: [B]Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could …

Member Avatar for aliartos
0
722
Member Avatar for behrad kiani

I try to converting bytes with 8 digits into ASCII code for example if user enter "0000111" the program convert it to it's ASCII code and shows 'p'(the value of character c in the code below became 'p') [CODE]public static void main(String[] args) { Byte bytes; char c; Scanner input=new …

Member Avatar for JamesCherrill
0
325
Member Avatar for drogba123

Hi, Is there anyone know about window sliding protocol with selective repeat? currently i am doing an assignment based on this and i am a little bit confused how to implement the timers in term of the start timer and acknowledgement timer.

0
56
Member Avatar for TrickyT

Writing my second program for a class. It requires the following: [COLOR="Green"]Create a non-GUI-based Java application that calculates the payroll for a department in an organization. [COLOR="Green"]The application should display text that requests the user input for the name of the department, the number of employees in the department, and …

Member Avatar for TrickyT
0
144
Member Avatar for Upoma

in my recent project the user need to attach document when filling a form.But dont have any idea about the implementation.how may i do this?if you have any idea,please help me.

Member Avatar for bkd
0
127
Member Avatar for zerose

I'm doing speech recognition application. Now my application can recognize my speech command, but somehow my application still not working. Is it because i did not trigger an event like .getSource()? This is part of my program: [CODE] public void resultAccepted(javax.speech.recognition.ResultEvent e) { try{ Result r = (Result)(e.getSource()); ResultToken tokens[] …

Member Avatar for zerose
0
220
Member Avatar for deathmagnetix

Write an application that computes the cost of a telephone call. The inputs are the time the call was placed (this should be written as a 24-hour time, e.g., 2149 for a call placed a 9:49p.m.), the duration of the call in minutes, and the distance in miles of the …

Member Avatar for deathmagnetix
0
170
Member Avatar for nickliutw

I'm creating a program by using the generic array that allow user to define the capacity or use the default capacity. I'm running some problems with casting and methods is not exist errors when I tried to store the data into array. Here is my constructor and methods class: [CODE] …

Member Avatar for stultuske
0
102
Member Avatar for warlord902

I am new to JSP/Servlets, so here is what I am trying to do: suppose my url is [url]http://mywebsite.com/[/url] and user come on this and it shows a login form, after submitting the form I want to keep the url the same as before that is [url]http://mywebsite.com/[/url] means it should …

Member Avatar for bkd
0
499
Member Avatar for Karlwakim

Hi everybody, I am currently learning c++, and i would like to know more about java. As you know, c++ has no built-in functions to build GUI apps, does java have built-in functions to build gui apps ? Or we need 3rd party libraries ? Thanks

Member Avatar for Karlwakim
0
164
Member Avatar for stakeMyHeart

im creating a prototype for a hotel using netbeans ide 7.0. I used the drag and drop in designing the buttons, panels, label etc... then what i want to happen is when the button is clicked a jpanel/ jframe that i did will appear. How would i do that? I …

Member Avatar for stultuske
0
288
Member Avatar for jasonrefan

Hello, I am trying to validate that the user has entered data into the JTextField to be saved to a text file. My method is: Data saved to Text File Data loaded into an array upon execution Data saved to array, then written to Text File. My addProperty Method: [CODE] …

Member Avatar for jasonrefan
0
138
Member Avatar for softDeveloper

Hi all! Does anybody know a cool and cheap site where I could host my web application (jsp+Mysql)? Thanks in advance! Kind Regards

0
116
Member Avatar for jpsider

I'm working on a school project, beginner stuff. I need to output the data with 2 decimals. I've tried several variations of [CODE] printf("%4.2f" + variable) [/CODE] But it seems when I use more than one variable it craps out or wont compile. Thoughts? [CODE] public class Conference4 { public …

Member Avatar for jpsider
0
131
Member Avatar for hszforu

So here is something i am trying to do: 1.Store a mathematical expression eg. 23*32+12 in the String datatype. 2.Now i have to calculate the value of that expression. So i thought of converting the string to integer using parseInt , but for this the string need not contain *,+ …

Member Avatar for hszforu
0
314
Member Avatar for harinath_2007

I want to make my program sleep for 30 miutes or 1 hour . I can do that by using Thread.sleep() but is there any alternate way?

Member Avatar for harinath_2007
0
136
Member Avatar for Upoma

i am going to develop a java project with tomcat6.How to implement calender data type in date field? please help as soon as possible..

Member Avatar for JamesCherrill
0
186
Member Avatar for jot121

[CODE]import java.util.ArrayList; public class CSStudent { String[] requiredGeneralClasses = {"biology", "calculus", "chemistry", "english", "physics", "psychology", "economics"}; String[] requiredInMajorClasses = {"algorithms", "data structures", "numerical analysis", "graphics, databases"}; String[] completedClasses; int[] gradeForCompletedClasses; public CSStudent() { completedClasses = new String[10000]; gradeForCompletedClasses = new int[10000]; } public void completeClass(String classs /*class*/, int gradeOnHundredPointScale) { …

Member Avatar for NormR1
0
125
Member Avatar for zerose

I want to do some event when all my internal frames are invisible. I know we can set .visible(false) but i got 30++ internal frames. What should I do? Please help. What I want to do is: if (allMyInternalFramesAreInvisibleIsTrue)) { } Is it possible? Or I have to make 30++ …

Member Avatar for JamesCherrill
0
45
Member Avatar for Vampiricx3

Hey guys, I'm trying to build an Employee system GUI, and right now i'm trying to create a JComboBox to display all of the Employees, but whenever I compile, I get the following errors.. [code]nathan@ubuntu:~/Desktop/Employee GUI [Java]$ javac RectangleProgram.java RectangleProgram.java:42: cannot find symbol symbol : constructor JComboBox(java.lang.String) location: class javax.swing.JComboBox …

Member Avatar for JamesCherrill
0
149
Member Avatar for cvanithakpm

please any one help me to clarify my doubts..... By running my servlet program which having ODBC connection...... It shows an error as [Microsoft][ODBC Driver Manager] Data Source name not found and no default driver specified... Following procedure only i did... 1)I did servlet program by having JDBC connection in …

Member Avatar for cvanithakpm
0
133
Member Avatar for dennysimon
Member Avatar for JamesCherrill
0
137
Member Avatar for mlhuff12

Hello everybody. I'm obviously new here. As the thread says, I am a Senior Computer Science student at Millersville University in Pennsylvania. I will be graduating December 2012. I currently only know Java and C++, but I definitely want to broaden my knowledge in hopes to get a job some …

0
136
Member Avatar for witchDoc

Hello everyone. I can't figure out the best way to make a simple picture loop through the screen in a predefined trajectory (e.g. elliptic). Do i need to use some math or is there a way to like draw a trajectory and bind the pic to it? Thanks in advance.

Member Avatar for mrnutty
0
158
Member Avatar for sike.mausa

Greetings! I am trying to complete the last part of an assignment, though the 2d Arrays are stumping me. The comments are what is supposed to be done, and the rest of the code is stuff I've tried but has not worked. Any assistance would be greatly appreciated. Thanks! [CODE] …

Member Avatar for NormR1
0
167
Member Avatar for vaironl

Hello forum, Vaironl here. I have a little problem, in a fairly big piece of code. I'm making a recipe application, which is working fine, but there is one minor error. If I minimize the screen and restore it, some of the components inside it are somehow re sizing of …

0
69
Member Avatar for javalover

Sir, I need a java program (ie), if we mark a part of an image, the portion with same intensity in that image should also be segmented and saved separately .. Thanks in advance..

Member Avatar for hfx642
0
714
Member Avatar for jackbauer24

My son, a ten year old is so like "[B]I WANT TO MAKE SOFTWARE!!!!!I WANT TO PROGRAM!!!!!!!!!I DON'T WANT TO STEP INTO LANGUAGES LIKE [URL="http://www.simplecodeworks.com/website.html"]http://www.simplecodeworks.com/website.html[/URL] OR [URL="http://scratch.mit.edu/"]http://scratch.mit.edu/[/URL] OR [url]http://www.alice.org/[/url] !!!!![/B]"He knows--- [LIST=1] [*]Basic Python(for, while, variables, raw_input, readline) [*]Extremely little about C++ [*]Quite a lot of Javascript(alert, prompt, *a little …

Member Avatar for jbennet
0
553
Member Avatar for enterpise

now i'm writing a method which is checking the ip already exist or not [CODE]private boolean EXISTIP(String s) { boolean result = true; try{ for (int i = 0; i < Client_list.length; i++) { if (Client_list[i][0].equals(s)) { return true; } else { result = false; } } }catch(Exception e){ return …

Member Avatar for stultuske
0
125
Member Avatar for softDeveloper

Hi all! I'm copying a poem from MS word ans pasting into a html text area. However only the first line of the text has a tab between the beginning of the phrase and the margin. All the subsequent phrases lose formatting and stay right next to left margin. It …

Member Avatar for peter_budo
0
269
Member Avatar for riahc3

Hey Using MyEclipse 10 for Spring while developing Matisse/Swing GUI applications something very annoying happens: Whenever I change anything on the form in Design view the view always changes to Source view. (In between a progress bar with 'formatting' text appears.) How can I this behaviour switch off? Thanks

0
58
Member Avatar for riahc3

If I go to [url]http://localhost/somefolder/somepicture.bmp[/url] I cant see if in my navigator. Now If I go to C:/somefolder/somepicture.bmp It works perfectly. This is completely driving me crazy. I really have no other methods that I could try to get this to work. Ask questions and Ill try to give answers..... …

Member Avatar for riahc3
0
102
Member Avatar for anhtho3008

So here is my assignment: Write a java program to read a name from user . The name is typed all in one line. The name may include 3 or 2 or 1 part from: firstname middlename lastname You should create an email id from the name and print it. …

Member Avatar for anand01
0
285
Member Avatar for rushi3311

I have one query regarding managing information in JSP pages...! How to ADD UPDATE VIEW DELETE information from any JSP page...! How to perform CRUD (create , read , update, delete) operation on that information in most easiest way ??? Does java support any container or any component to deal …

Member Avatar for anand01
0
156
Member Avatar for pseudorandom21

Java: I have a bunch of stuff drawn to the blank space of a JApplet app. I need to add a JButton at a specific location. I don't know how. What's the easiest way to do this?

Member Avatar for DavidKroukamp
0
186
Member Avatar for emclondon

Hello guys, I am stuck again with a new problem. I need help with 3 things: 1. Timer 2. State Pattern 3. Disabling the button on JFrame lets go with the easiest one in the list, the Disabling of button one. I have an app with buttons, and I need …

Member Avatar for ~s.o.s~
0
640
Member Avatar for scheppy

I'm trying to right a statement that depends on 2 JButtons not being enabled I know how to tell if they are enabled like this [CODE] if(myJButton.isEnabled()) { } [/CODE] But is their also a simple way to check if a JButton is not Enabled

Member Avatar for scheppy
0
150
Member Avatar for Mr.BunyRabit

Hey there. I want to add a business method, and i know you right click >> add code >> and then chose business method. I can do that in netbeans 6.9.1 But i am using 7.0.1 And when i try and add a business method, i cant, because its not …

Member Avatar for SasseMan
0
65

The End.