36,051 Topics
![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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?????????? | |
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? | |
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 … | |
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 | |
[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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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. | |
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[] … | |
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 … | |
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] … | |
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 … | |
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 | |
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 … | |
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] … | |
Hi all! Does anybody know a cool and cheap site where I could host my web application (jsp+Mysql)? Thanks in advance! Kind Regards | |
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 … | |
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 *,+ … | |
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? | |
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.. | |
[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) { … | |
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++ … | |
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 … | |
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 … | |
hallo how to detect windows regional setting ,using java code thank you denny | |
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 … | |
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. | |
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] … | |
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 … | |
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.. ![]() | |
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 … | |
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 … | |
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 … | |
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 | |
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..... … | |
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. … | |
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 … | |
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? | |
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 … | |
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 | |
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 … |
The End.