35,618 Topics
![]() | |
Hello All, I have confusion in command Class. Its constructor has 3 parameters. First 2 parameters I can understand. but [CODE]Command.Screen[/CODE] and priority parameter I could not understand. I tried to Google also, and refer different kind of ebooks, but still i cant understand. So please help me. | |
Hello friends, I am working on online book store project using Java and Servlets. I am struck at desgining part. The scenario is simple anyone can come and search books but only registered customers can buy them. 1. Is it good to create multiple database connections or single connection? If … | |
I have a label,4 radio button.I have retrieved data from sql.I need to display the retrieved question in label and its 4 option in each of radio button.I got it working to display one question.my trouble is in button click.when next button is clicked question should change...any more ideas is … | |
| |
Dear All First of all I wish you a very happy new year. I have been trying to understand the depreciation matters. As you can see in the codes below, There are 3 handleEvent methods used as pressbutton action , radio button selection action and dropdown list selection action. Now … | |
I am working for online examination project. my work is to generate random number without repetition. i tried and i am getting numbers to be repeated sometime.... I need to know how to check the repetition in the generated number. random r=new random(); for(i=0;i<10;i++) { int j=r.nextint(10); System.out.println(j); } | |
HI, I have now for more than 24 hours tried to figure out how I return the index number of the second smallest integer in an unsorted array. Some how, I do not get the index number returned, can any one see what I´m missing? As the program runs now, … | |
I have about 500 items in a database (MS SQL server 2008). These individual items have some other properties stored as tables. I am trying to display these items as html links on either a JSP/HTML page. I have a page with alphabets A....Z which are html links in themselves. … | |
how do i go about making a java music player? i have very basic knowledge in java and i learn best when i jump into a project..which in this case is a music player i would like it to play mp3 files with a nice looking GUI unfortunately...i have no … | |
would like learn how to to create tree view using JSP. But I don't have any idea to work it out. Also the content of the tree is retreived from the database. | |
ok i want to make a program to show a teacher at my school so i can get into computer Ap which teaches you java(but they say u have to know stuff to get in it makes no sense i am in highschool). here is some seudocode and the code … | |
Dear All, I'm taking a course online for school on how to code with Java. My current assignment is to have the computer read in a text file and make it split it into 5 different arrays. I am really bad with Psuedocode so if you answer like that it … | |
Hi, I need help with an assignment for a class I'm taking. The assignment requirements are as follows: 1.Carefully study the class structure in Products.java. Here is Products.java: [CODE]abstract class Product { protected float price; // return the price of a particular product abstract float price(); } class ComputerPart extends … | |
Pleaseee help me guys. I can't figure out why the elements in my array are null. I'm reading in from a file and take each line and saving it as a variable in the object and then adding the object to the array. This is what I have so far...when … | |
I'am beginner in Java, and I'am having a lot of problems while typing or making the sum of numbers. The fact is that I want to calculate the sum of pressed numbers until I press -9999, meanwhile when I press -9999, I want program me to show the sum of … | |
I am trying to refer to the class a nested class is 'in'... The 'this' keyword refers to the nested class, so I need something like super.this (except not at all like that) :/ I think the code below describes what I am trying to do: [CODE]public class Nest { … | |
Hi, This is my first forum post and I'm very new to both the daniweb and programming community. I've been working on a project for a month or so and it involves clicking JButton to change the values of the text associated with the JButton clicked. Everything runs fine except … | |
Hi I am new to Java. I am trying to develop a tool in which I am trying to download a file from a link. When I go to that link using my java program, IE is opened and its default File Download window is showing. But I need to … | |
How can we set a default path in our system to save a downloaded file in the "File Download" dialog box of Internet Explorer using a java program? | |
Hi guys. I have previously been developing a Java application using 2 Windows Vista PCs that both have MySQL as the database. I have always created a user for each PC (specifying their IPs as allowed hosts to connect) on the other and then in the application the code for … | |
Hello to all. I have build a Java GUI application and now i want to convert and transfer it to an applet. I assume that whatever i have in [CODE]public void main[/CODE] will now go to the init() method of the JApplet. Now the problem is to embed it to … | |
Can any one help me how to make a Java Application GUI independent of screen resolution.. Now my application uses jFrame and it gets problems when resolution of screen changes.. plz help... | |
[code] //Address Book Part 1 //IT 215 //George Williams import java.util.Scanner; class menuOperations { //Initilize Arrays to store information String[] fNames = new String[5]; String[] lNames = new String[5]; String[] dAddress = new String[5]; String[] dCity = new String[5]; String[] dState = new String[5]; int[] dZip = new int[5]; int[] … | |
Hey, I am making a card game of Higher or Lower. Currently an image of one card pops up and you have to guess if the next card is a higher or lower value than the one you can see. My question is, using BlueJ, how do I display two … | |
hi,all in this basic java prog.I want to input all the elements of matrix one and two with commandline argument.please help. Thanks for read this... | |
What is the difference between makin an ArrayList these two difference ways? i know the method will be the same and both will essentially do the same thing. but why two ways to initializing arraylist? [CODE] ArrayList<String> list = new ArrayList<String>(); List<String> myList = new ArrayList<String>(); [/CODE] | |
Hello - quick question, I have created a method which prints a chosen symbol multiple times: - User enters 5 - Print this: ***** **** *** ** * I'm aware of recursion and know how to use it, my method uses it to do the above but I also use … | |
[code]<?xml version="1.0" encoding="ISO-8859-1" ?> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ page import="javax.servlet.http.*" %> <%@ page import="org.apache.commons.fileupload.*" %> <%@ page import="org.apache.commons.fileupload.disk.*" %> <%@ page import="org.apache.commons.fileupload.servlet.*" %> <%@ page import="org.apache.commons.io.output.*" %> <%@ page import="java.io.*,java.util.*,javax.mail.*"%> <%@ page import="javax.activation.*"%> <%@ page import="javax.servlet.http.*,javax.servlet.*" %> <%@ page import="javax.mail.internet.*"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" … | |
Presently I am learning JMS. I have knowledge on Java, Servlets and JSP. I am bit confused whether should I learn EJB or AJAX next. Please suggest which path should I take. And tell me, does AJAX comes in line with EJB,Hibernate,Struts. Thanks in Advance. | |
Here is my code at the moment: [code] import java.util.Scanner; class menuOperations { String[] fNames = new String[50]; String[] lNames = new String[50]; String fName = " "; String lName = " "; String sFName = " "; String sLName = " "; int dAmount,dTimes,i; Scanner in = new Scanner(System.in); … |
The End.