36,051 Topics

Member Avatar for
Member Avatar for rajuchacha007

Hi all, I am looking for an installer to install some application software (java based s/w programme) The installer should perform following actions: 1. License Terms: Accept/Reject selection by user 2. User must select installation folder, default is c:\......\...... 3. Run a bat file/script to install mysql, activemq. 4. Run …

0
71
Member Avatar for YingKang

This code outputs the result in console. I want to implement a Swing JFrame, producing output readable by user. Do I have to change all my code if I want to use JFrame? Can anyone help? I am not familiar with JFrame at all. Thanks : ) [code] import javax.swing.*; …

Member Avatar for masijade
0
198
Member Avatar for skiplatte

Pretty much what the title says!! Basically I want to store method generated Strings and then plug them into another method - would hashtable be a way to do this?? Thanks

Member Avatar for masijade
0
103
Member Avatar for kellybaz

Hello- I am pretty new to JSP I need some help with a GET method. Apparently IE has a URL length limitation.. IE0- "If you are using the GET method, you are limited to a maximum of 2,048 characters, minus the number of characters in the actual path." By sending …

Member Avatar for javaAddict
-1
84
Member Avatar for amitcs100

I am doing project on printing a passbook of bank in which i have 8 fields those are transactiondate, particulars,chequeno,debit,credit,balance,print and serialno and i wanted to print that in passbook and print is a boolian type if i mark on one row it must print the other rows present in …

Member Avatar for BestJewSinceJC
0
198
Member Avatar for gouredyyvenkat

Hi Everybody, I have an issue converting images from an image panel to a pdf .I am able to convert a single image to a pdf file but not multiple images.Can anyone help me in this. Below is the code which iam using now public void send(String fn){ BufferedImage oldimage=image; …

0
86
Member Avatar for ah124131

Alright, I posted earlier with help on compiling my method, now it compiles and now I am stuck again. Help would be great since this awful head cold is getting the best of me. Ok so, so far I have my method almost where I need it, I have my …

0
82
Member Avatar for torbecire

I have put an array list in a hash map, but the problem is the old values of the hash map are over written everytime. So the old values of the hashmap aren't stored. Could someone tell me what mistake I am making? [CODE] import java.util.*; public class Cain { …

Member Avatar for torbecire
0
148
Member Avatar for GoldMiner1849

I play poker online at PartyPoker, UltimateBet, et. al. During play various hand data is displayed. Can I write a Java program to read and process that data during live play? There is a program called Poker Indicator (not sure what platform) that does this, but I want to add …

0
87
Member Avatar for ah124131

After completing my code I got an error message at the second to last closing bracket that said I was missing a return statement, I looked in to it online and found that some said to put return 0; but that didn't work it just gave me a new error …

Member Avatar for ah124131
0
339
Member Avatar for ryno365

Hello again DW. Tomorrow I have an interview and I'm trying to make a jar of my latest project. Using netbeans, I've created a jar and everything looks fine. I can see all the card IconImages in the Jlabels and it looks fine. But when I repaint the frame, the …

Member Avatar for ryno365
0
126
Member Avatar for Samyx

I have this code, but instead of implementing class enumeration I want to create an anonymous class in the method getEnumeration that does the job right in the return, hwo do I do that? [code] // File: TestList.java (Module 10) // // Author: Rahul Simha // Created: Nov 2, 1998 …

Member Avatar for Samyx
0
92
Member Avatar for blindkilla

When my servlet creates a session, even if it is the first time running the servlet, the session.isNew() returns false. I checked to make sure the session ID's are different each time I run it and they are, yet isNew() still returns false. I'm trying to do the following in …

Member Avatar for peter_budo
0
467
Member Avatar for AccessFreak

I have a question about my java program. I'm new to Java, but I learn fast:P. I have the following problem. I need to communicatie between 2 mobile phones. The entered character will be checked by methode checkletter. After completing the check, the frame will be set. The first 7 …

1
81
Member Avatar for robertmacedonia

Hello to all, I would like to ask if someone knows any way to display a .swf file in a Java application. I found this link about an API that allows that - [url]http://www.jpackages.com/jflashplayer/[/url] , but it's for Windows only (including some way of converting, so Mac would not be …

0
108
Member Avatar for topest1

Hello All, I am developing Chat Application, But facing a problem in displaying Chat text [CODE] public void appendText(String text) { displayChats.replaceSelection("\n"+text); displayChats.setCaretPosition(displayChats.getDocument().getLength()); //Scroll to bottom } [/CODE] Works fine while i append the text to JEditorPane(displayChats). But when I use setEditable(false); (so that user cannot edit it). then I …

0
99
Member Avatar for GradStudent

I m newbie with Hibernate. I use Netbeans IDE for my Java projects. I wrote the *.hbm file and mapping.xml file. and when i try to create the POJO classes, It apparantly does not show the *.hbm and mappng files associated with the project... Any pointers to where I mite …

Member Avatar for peter_budo
0
90
Member Avatar for whiteyoh

Hi All, Im attempting to make a simple java menu system. the psueo code is as follows 1. user is presented with menu 2. selection is made 3. that action is ran, i.e make a new user (i have this code seperate, which works) 4. the user is returned to …

Member Avatar for whiteyoh
0
119
Member Avatar for bkafroboy69

public boolean addEvent(int year, int month, int day, int hour, int minute, int duration, String what); This will return true if the event was added and false otherwise. Only valid events will be added to the list. Also write: public CalendarEvent findNextEvent(int year, int month, int day, int hour, int …

Member Avatar for quuba
-1
146
Member Avatar for JRabbit2307

Help! The only thing I seem to not get is the initials from the substring........... any ideas? public class Name { //Data Members private String firstName; private String middleName; private String lastName; private String initials; //Default constructor Name() { firstName = null; middleName = null; lastName = null; } //Constructors …

Member Avatar for JRabbit2307
0
132
Member Avatar for whiteyoh

Hi All, Hoping you can help with the following. The psuedo code is: 1. Menu is displayed 2. User inputs a selection 3. That item is ran 4. on completion, the user is returned to 1 above. the code i have so far is as follows, but its still exiting …

Member Avatar for whiteyoh
0
125
Member Avatar for kulrik

Alright. Ive been at this problem for a few days know and cant figure out what's wrong with my coding. The Problem: Create a method called displayPerfectNumber in your own class named myMath. The method displayPerfectNumber asks a user to enter a integer number and displays every perfect number from …

Member Avatar for stevelg
0
541
Member Avatar for vinodgnkm
Member Avatar for jyoti.sarangi

Hi, I have a Jsp where am displaying around 300 records in a table.I am invoking javascript : print method to give print commnad to the printer. My problem is if am setting header and footer in the Jsp then header is coming in the first page and footer in …

0
60
Member Avatar for CuteCat

I don't know what to do... I've been trying for weeks to figure out the problem. You see, I'm supposed to make a game, as a project for school. Since it's going to be a rather large game, I decided not to flood the main file with a bunch of …

Member Avatar for CuteCat
0
192
Member Avatar for gsingh2011

I know some people are against converting jars to exes, but I needed to in this case. The jar worked fine but my exe gives me the error below. The code is just, [CODE]package mail; import java.net.*; import java.io.*; public class Mail { public static void main(String[] args) { System.out.println(args.length); …

Member Avatar for masijade
0
188
Member Avatar for sush27

hi... i am new to this community, lately i was looking for some help in my code and this website came to my rescue in many topic. i am just implementing the menubar in swing, can somebody help me in my code. [code] import java.lang.*; import java.awt.*; import java.io.*; import …

Member Avatar for peter_budo
0
164
Member Avatar for Tactical Fart

My current goal is to scan and parse an html page and get the attributes from the tags. Right now, I can take a page and scan everything token by token and save them to a String. What I want to so is pick out certain tags and strip them …

0
59
Member Avatar for JavaNoobie1

Hi everyone! I need a little help with while loops please. I tried to create a class within my CD class that repeats the input of the CD info and the output of the CDs value at maturity until the principle of 0 is entered. I think I did this …

Member Avatar for BestJewSinceJC
0
100
Member Avatar for COKEDUDE

Right now my code runs just the way I want it to. I would like the [CODE]Enter a sentence or phrase[/CODE] part to continue until the user enters "quit". I would like to use a while statement. Every way I have tried to enter phrase not equal to "quit" has …

Member Avatar for COKEDUDE
0
199
Member Avatar for torbecire

[CODE] /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package cs402; import java.util.*; public class Cain { static List values; /** * @param args the command line arguments */ private static String Board [][] = {{ " ", " …

Member Avatar for BestJewSinceJC
0
358
Member Avatar for weblover

hi all how are u? i have a problem and i need your help ..i have a code in java that connect to a mysql DB and update the rows of the table ...but i have a problem ...the new updated column called (original_text) contains the updated columnss from the …

Member Avatar for weblover
0
172
Member Avatar for Mykd

Hi The timer works fine when you run it alone, there is a set time befor it exits, 3seconds. But when you open it from the previous window, the timer doesn't start or exit. (The purpose of this is on the previous frame of GUI, the user clicks the exit …

Member Avatar for quuba
0
96
Member Avatar for eggmatters

Not really sure how to phrase the question. Essentially my issue is this: I have a Form that when the user clicks a button, it invokes a JFrame that populates a datatable with a sql query. The datable frame also has a button. The user can select a cell in …

Member Avatar for Ezzaral
1
138
Member Avatar for ronson

Ok I'm converting a program from Java to C# and currently stuck on a certain aspect of it. Ok I have; [code=Java]private Graphics g1; private Bitmap picture; picture = new Bitmap(x1, y1); g1 = Graphics.FromImage(picture); pbMand.Image = picture;[/code] pbMand is the name of my picture box, which I will use …

Member Avatar for ronson
0
247
Member Avatar for ~mesho~

Hello everybody, I'm biginner in J2ME prgramming. And I want to load model created by milkshape in J2ME. I do'nt know how to do that and what packages must be imported? And after the load how to control the model?

Member Avatar for quuba
0
74
Member Avatar for swinefish

Hey All I'm working on a graphics project at the moment, and although the details themselves are a little tedious (I won't bore you with them all) I am having some problems. My app was working beautifully, rendering my shapes with ease. But in an attempt to make it more …

Member Avatar for quuba
0
295
Member Avatar for Q8iEnG

Hi mates.. I'm trying to find a way in how to inputing or outputting from a file in Java. For my bad luck when I finished my Java course, our professor didn't talked about this thing. I searched in the internet, and found a way in inputing from a file …

Member Avatar for Q8iEnG
0
196
Member Avatar for Web_Sailor

Hi, I am working on creating a jradiobutton group using JTable. Here is a brief definition of the problem. My program gives an output like this:- [CODE] Questions Answers 1 radiobtn1 radiobtn2 radiobtn3 2 radiobtn1 radiobtn2 radiobtn3 3 radiobtn1 radiobtn2 radiobtn3 [/CODE] I am able to set horizontal control that …

Member Avatar for peter_budo
0
529
Member Avatar for en1gmat1c

ok so im a new programmer and im making a tic tac toe program and i got this error `"operator && cannot be applied to boolean,java.lang.String"` in the crazy long line in the winner method and am not sure how to fix it import java.util.Scanner; import java.util.Random; public class tictactoe …

Member Avatar for theStruggler
0
166
Member Avatar for kjiu

Hello, I have a problem which is this: [CODE]private void setupEditor() { QFont font = new QFont(); font.setFamily("Lucida Console"); font.setFixedPitch(true); font.setPointSize(10); textEdit = new QTextEdit(); textEdit.setLineWrapMode(QTextEdit.LineWrapMode.NoWrap); textEdit.setFont(font); new Highlighter(textEdit.document()); new CodeEditor(textEdit.document()); } public class CodeEditor extends QPlainTextEdit { public CodeEditor(QTextDocument textDocument) // public CodeEditor() { lineNumberArea = new LineNumberArea(this); blockCountChanged.connect(this, …

Member Avatar for kjiu
0
237
Member Avatar for obelisk

JSP is a new world for me, since 3 days ago. I am having a problem (or I have no idea) how does the inserting datas into database works. I have looked at some examples, but still, im having a hard time. I know PHP and ASP, but JSP is …

Member Avatar for javaAddict
1
1K
Member Avatar for Saara_N

I want to get control on web links,i mean i want my own dialogbox to be appear wen i click on any link,can i do this and how to do this? plzz tell me.

0
63
Member Avatar for Jamalygirl

// I keep getting an error when it come time to input the hourly //rate. My code seems correct....anyone see what's wrong?? I can't //compile the rest of the code then either, which if frustrating //because I just put in some loops, and I'm not sure if they are //correct …

Member Avatar for cgeier
0
129
Member Avatar for Andrew Docherty

Hi, I am new to jsp, and Beans. I have been working on this piece of code, for the past week and I am no further along :'( I am using Tomcat Apache 6.0 In the ROOT folder I have a simple page test1.jsp: [code=JSP]package user; <%@ page contentType="text/html; charset=utf-8" …

Member Avatar for peter_budo
0
116
Member Avatar for Jordan Sinclair

I really need help here. This is for a class assignment, yet I'm not getting any help from anyone, anywhere, including my instructor. This is an online class, and he is never available. Since this is for a class, I need to keep things the way they are. Meaning that …

Member Avatar for BestJewSinceJC
0
153
Member Avatar for M.Jama

Hi there, This afternoon, i have been studying how to read numbers using Scanner as you adviced me. However here I need some help because I can compile it: merci beaucoup. import java.util.Scanner; public class Exercise19 { public static void main(String [] args){ Scanner QueenOfDaimond = new Scanner(System.in); System.out.println("Enter firstnum: …

Member Avatar for javaAddict
-1
63
Member Avatar for TigerGirl

So, I just want to know how would I change a node to an int. In my public class I have a string, boolean, count, and a Map. I have to input a string in the class. So, in the int method I'm working on would I just call the …

Member Avatar for ryno365
0
88
Member Avatar for jakx12

Ok so im thinking of building a chat application like msn in java. Would JMF be the best option or has anyone got any other ideas. Also are there any tutorials or open source code at there that someone could point me to? Many thanks, jakx12

0
83
Member Avatar for knight604

Hi DaniWeb community, I'm trying to use the MultiCylinder class to instantiate and update the Cylinder objects that will print their radius and height. I also want to allow the user to input their own values for radius and height which will then calculate via the getVolume and getSurface area. …

Member Avatar for BestJewSinceJC
0
1K

The End.