35,618 Topics
![]() | |
Hey guys! I'm trying to make this flowchart but I not quite sure how to do it. I'm supposed to make a flowchart that will ask the user a specific month and year, and the output would be how many days that that inputted month and year has. Kinda confused … | |
I want to create a new thread in a program that i'm working on but i cant get my new threads to start does anyone have some code that would allow me to create and start new threads | |
Hello World! Im doing a simple program that runs a JFrame and has some JButtons etc etc but id like to put a simple sound to one of my buttons, when i quit the program i want it to play a simple melody how can i put it in this … | |
Hi I have number of checkboxex on my page.I want to insert all the check box values and some associated values for the checkbox selected by user. [code]<% Categories cat = new Categories(); Vector<String[]> v = new Vector<String[]>(); String[] data; v = cat.getPermissions(); Iterator<String[]> i = v.iterator(); while(i.hasNext()){ data = … | |
Hi, I'd like to implement the following but I have no idea where to start: I have a JTable with 1 column containing Date. Now i'd like the cells in this column to be editable. I have a datepicker that i'd like to pop up when this cell is clicked … | |
dear members, now i am developing a login page for my system using jsp. here is my boundary code [CODE]<%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@page import="java.util.*" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head><body> <jsp:useBean id="idHandler" class="DBConnection.Login" scope="request" /> <jsp:setProperty name="idHandler" property="*" /> <% String username = request.getParameter("USERNAME"); … | |
I've toyed around a great deal trying to get my calculations correct in this countdown program, but I keep getting the same result. Basically, I'm creating a program that will countdown from a users inputted number. At each second it will display whatever amount of seconds remaining. My problem is … | |
please help me ........when i create connection sql with jsp and use javascript for validation control..but when i click submit button there has work only one thing either insert data into database or javascript(when i remove <form action=""...>) i want to do work both .. | |
![]() | Hello, yes, I have been seraching on google for it in a hour. How can i set a max height for pcitures that are going to be seen in lightbox? Cheers |
Is it possible to add two separate arrays into one hash set? | |
Hi, I'm writing code for a graphical map of a shopping center. Whilst writing the code I realised it would be simpler to be able to draw objects using "names" instead of values. E.g. g.drawRect(Asda); instead of g.drawRect(100,100,40,40);. Is this possible? I have tried writing various classes but I can't … | |
Hi, I need to store data entered into my java application such as the persons name, address, ph number, date etc to be saved in an xml file. I also need to retrieve it so it can be displayed. If you can point me in the right direction that would … | |
Hey, I have tried everything that does not work to change the color of the text on a JButton I have in a JPanel. Does anyone know how to do this. I need the actual text on the button to be a different color than black..This is an application so … ![]() | |
hi All, my issue i have a clob data type in hibernate mapping , and i have one textarea from where the data will come , that will be big data , that is actually the data for webpage , now if i want to know how to get that … | |
Hello =) I have some problem to set font and color in my program.can you take a look for the moment please?Here is my simple program: [code] import java.awt.event.*; import javax.swing.*; public class showYourLove extends JFrame //inherits from JFrame class { private JPanel panel; //to references a panel private JLabel … | |
Hi, I am developing a web-based application with Google Web Toolkit. In addition to the web-based application, I also have a desktop Java application to monitor data on the local machine. However, I want to use GWT RPC to make procedure call to the remote server, but I have tried … | |
Hey guys I found the following code snippet below... I want to know how to compile this... I am a c++ programmer and something is wrong with my mouse/audio so I thought this may programmatically solve it but I have no clue about anything java and in c++ there is … | |
Hi, need help as to what is the code doing, if possible each statement if anyone knows: When it is run, when dd/mm/yyyy format is enter, it will give 20 Dec 2010 is a Monday Why is the monthIndices and division done for ? [CODE] public static String dayOfWeek(int dd, … | |
Dear all , I have the following UML Diagram and below the associated Code. Can you please help me complete the code? Thanks in advance I have written my UML diagram as follows. -x : double -y : double +MyPoint() +MyPoint(x:double,y:double) +get X() :double +getY() : double +distance: (MyPoint1:MyPoint2):double +distance(p1:MyPoint:p2:MyPoint):double … | |
I keep on messing up the math calculations :@. [U]Error[/U] The output was shown as this" [ICODE] BMR: 40.35 pounds BMI: -83.60 inches TDEE: -114.95 years Your BMI classifies you as Obese [/ICODE] But it should be this way: [ICODE] BMR is 2308.15 BMI is 40.35 TDEE is 3173.71 Your … | |
I'm new to Java and just need a little help....The program is supposed to have the user enter in a series of numbers then displays the largest and the smallest....they have to enter -99 to end. My problem is the smallest number is always -99. What do i have wrong? … | |
ok guys so i have problem here is the goal of this program:Write a Java program that reads in this file and produces a visual representation of the seat assignments, with a passenger's name and his/her seat assignment in each seat slot here is the data in [URL="http://www.cs.oswego.edu/~odendahl/coursework/csc212/201009/assignments/03/seats.txt"]this[/URL] text file: … | |
hey everyone, well i have made a method that would return array of string. the strings would be obtained from the file(employee.txt) every 4th line in the file contains employees loginID i need to store those ids in to one array and then return it. here is the code of … | |
anyone kno why java keeps telling me illegal start of type , in the first if statement thanks in advance Airline reference = search(choice, airlineObjects); if(!choice.equals("QUIT")) { if(reference == null) { System.out.println("wrong flight number enter another flight number"); } else { System.out.println("your file detail is ....."); System.out.println(reference.getFlight() + " " … | |
using recursive Java method [CODE]import java.util.ArrayList; public class Count { private String word; public Count(String w) { word = w; } public ArrayList<String> getUpper() { ArrayList<String> result = new ArrayList<String>(); if(word.length()==0) { result.add(word); return result; } for(int i=0;i< word.length();i++) { if(Character.isUpperCase(word.charAt(i))) { String shorter = word.substring(i); Count shorterCount = new … | |
i'm writing a program that can tell me where my curser is and whether the bottons are being pressed | |
please i can someone help me about creating chat massager application, please if anyone one know it please help. thanks | |
I would like to compare user input against and entire file and print out message when item is found or item not found. My program below appears to do that but it is doings so one line at a time. Please help. Jems [CODE] import java.util.*; import java.text.*; import java.io.*; … | |
hi folks the program I am attempting to do here, even though its horrible so far, is one that reads in a file containing: [code] Johnson 85 83 77 91 76 Aniston 80 90 95 93 48 Cooper 78 81 11 90 73 Gupta 92 83 30 69 87 Blair … | |
In my program I need to have the user get two chances before ending the program. Currently if the condition is not satisfied then they only get one try. I would like some help in getting a second try. [CODE] // Takes user entry Scanner user = new Scanner(System.in); System.out.println("Please … |
The End.