36,051 Topics
![]() | |
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 … | |
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.*; … | |
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 | |
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 … | |
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 … | |
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; … | |
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 … | |
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 { … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
could you pls help me to select some project topics | |
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 … | |
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 … | |
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); … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 [][] = {{ " ", " … | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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. | |
// 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 … | |
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" … | |
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 … | |
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: … | |
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 … | |
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 | |
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. … |
The End.