32,204 Topics

Member Avatar for
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
57
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
187
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
186
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
162
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
57
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
99
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
188
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
325
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
154
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
94
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
134
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
239
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
71
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
292
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
193
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
523
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
163
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
236
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
61
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
124
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
115
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
149
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
61
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
81
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
81
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
Member Avatar for sun26

Hi all, Can you show me the way to change postfix expression to infix expression by using binary tree? How to specifix the root of that tree?

Member Avatar for quuba
0
79
Member Avatar for Blondeamon

Greetings i have created the above class to create rooms and exits of the rooms. That way every room is linked to another room and i can move between them. Now what i want to do is to add an image to every room that is stored inside the class. …

Member Avatar for quuba
0
130
Member Avatar for Sandar Khin

Hi all, I have two programs.One is for scrolling text.Code is here [code] import java.awt.*; import java.awt.event.*; import javax.swing.*; class MarqueeTest { public static void main(String[] args) { MyFrame frame = new MyFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); } } class MyFrame extends JFrame implements ActionListener { private ActionListener listener; private Timer t1; …

Member Avatar for quuba
0
131

The End.