35,618 Topics

Member Avatar for
Member Avatar for Hakoo

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.

Member Avatar for Hakoo
0
205
Member Avatar for nitins60

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 …

Member Avatar for masijade
0
75
Member Avatar for ranjani jai

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 …

0
62
Member Avatar for rahini
Member Avatar for juniper2009

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 …

Member Avatar for masijade
0
158
Member Avatar for ranjani jai

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); }

Member Avatar for ranjani jai
0
653
Member Avatar for NoviceChrilill

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, …

Member Avatar for unique72
0
590
Member Avatar for raghujosh

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. …

Member Avatar for raghujosh
0
141
Member Avatar for java1

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 …

Member Avatar for mrnutty
0
124
Member Avatar for sasi_88

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.

0
59
Member Avatar for mikeandike22

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 …

Member Avatar for Nmanpure Pkr
0
233
Member Avatar for JavaStudentCode

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 …

Member Avatar for Katana24
0
897
Member Avatar for java666

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 …

Member Avatar for java666
0
801
Member Avatar for sariberri

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 …

Member Avatar for Akill10
0
199
Member Avatar for makeUbleed

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 …

Member Avatar for javinpaul
0
184
Member Avatar for hanvyj

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 { …

Member Avatar for hanvyj
0
101
Member Avatar for Avengerofsok

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 …

Member Avatar for hanvyj
0
372
Member Avatar for Janu Sam

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 …

Member Avatar for Janu Sam
0
270
Member Avatar for rohit2

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?

Member Avatar for masijade
0
77
Member Avatar for dangari

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 …

Member Avatar for masijade
0
158
Member Avatar for christos312

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 …

Member Avatar for masijade
0
183
Member Avatar for rohit2

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...

Member Avatar for masijade
0
205
Member Avatar for Geowil

[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[] …

Member Avatar for masijade
0
479
Member Avatar for Lostin

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 …

Member Avatar for masijade
0
94
Member Avatar for atinus cool

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...

Member Avatar for masijade
0
38
Member Avatar for zetologos

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]

Member Avatar for masijade
0
103
Member Avatar for Katana24

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 …

Member Avatar for masijade
0
167
Member Avatar for sangram1986

[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" …

0
50
Member Avatar for cb0058385

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.

Member Avatar for cb0058385
0
153
Member Avatar for Geowil

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); …

Member Avatar for Geowil
0
100

The End.