35,618 Topics

Member Avatar for
Member Avatar for shweta797

Dear sir In my project i have to show amount of all the months i.e if user enter first due date and expiry date then it calculate the amount of all the months which are between first due date and expiry date in reports. in Jsp how a month can …

Member Avatar for masijade
0
305
Member Avatar for NycNessyness

How can I store variables in an array. With a mixture of strings, variables and information entered in textfields. With what I have below. If I wanted to store numbers, price, total, tax, and name in an array, how can I do it? Thanks in advance. [code=java] String[] numbers = …

Member Avatar for NycNessyness
0
79
Member Avatar for kiran kumar
Member Avatar for abhi287

Hi all, I've two questions- First In the j2me application suppose i've a list with no. of items. To select the item between 1 to 9, i can use 1 to 9 keys on keypad. Is thr any way such that i can select the list items after 9like 12 …

Member Avatar for abhi287
0
155
Member Avatar for Venks

hai, i want to hide task bar from my program, in c# user32.dll was used to hide the taskbar, iam using user32.dll in my program as follows import java.io.*; public class NativeMFCMsg{ static { try { //System.loadLibrary("user32"); System.load("C:\\WINDOWS\\system32\\user32.dll"); // System.out.println("Library user32 Loaded"); }catch(Exception e){ e.printStackTrace(); } } public native static …

0
50
Member Avatar for slayer10

ok im doing a tetris game and i want the piece to move left when i click 'a' and right when i click 'd' and turn clockwise when i click 'w' and turn counterclockwise when i click 's'. heres what i have public class Movement extends JPanel implements KeyListener { …

Member Avatar for Ezzaral
0
199
Member Avatar for BabyEyes

hi , i have a program which i am stock in , its about traffic light . i did the display part but i cant do the timeing and changing the color of the traffic signal . if one signale is green there should be a timer which has time …

Member Avatar for BabyEyes
0
143
Member Avatar for hezfast2

I'm writing a program creating a card game of war. I (think) that I have the majority of it done, but I cannot seem to figure out how to split a deck into two separate hands in a Hand class. My code is in components, I have a Deck, Card, …

Member Avatar for Ezzaral
0
828
Member Avatar for creativehacker

I wrote a program where I should draw some stuff whenever a key is pressed. The drawing is done whenever the key is pressed but can be seen only when i resize the window.. [CODE]public void keyPressed(KeyEvent e) { Graphics2D g2 = image.createGraphics(); if(e.getKeyCode()==37) { System.out.println("left is pressed"); key=LEFT; sp.SnakeMove(key); …

Member Avatar for Ezzaral
0
105
Member Avatar for luxmi_gee

hi how to develop customtag with methods like onload,onclik. can any one help. thanks

Member Avatar for jwenting
0
63
Member Avatar for greatfindsct

Hello everyone! I've worked on this program for about 8 hours so far. I've posted for help in my classroom, and no one has answered. I've passed it in although only one was compiled, but I'm determined to find out why the second did not compile. It's with the infamous …

Member Avatar for Ezzaral
0
97
Member Avatar for 9107you

[code] // The "DTfiveint" class. import java.io.*; public class DTfiveint { public static void main (String[] args) throws IOException { BufferedReader five = new BufferedReader (new FileReader ("five.txt")); int multiply[] = new int [5]; for (int i = 0 ; i < multiply.length ; i++) { multiply [i] = Integer.parseInt …

Member Avatar for 9107you
0
88
Member Avatar for Relegant

[CODE] aClass30_Sub2_Sub1_Sub4_1272.method389(false, true, c / 2 - 90, 0xfff00, "Port:" + port + ((anInt1216 == 3) & (anInt1105 % 40 < 20) ? "" : ""), j); j += 15;[/CODE] That code above, is not changeable, you cant change the port. But this code below is changable, so you can …

Member Avatar for javaAddict
0
84
Member Avatar for nadius

Hello everyone, I realise this may seem like a log winded way of doing it but I need to insert data from a JSP into a database, here is the set up. I have an HTML form, that passes it's data to a JSP. The JSP acts as a bridge …

Member Avatar for ~s.o.s~
0
110
Member Avatar for jrivera

This is more of a logistic question but I'm stuck. This is a homework project where we're asked to create a game. The way I'm doing it is starting of with a "settings" applet. The applet asks for number of players, then "dynamically" creates a row which displays a textbox …

0
67
Member Avatar for suriname0

Hello, I have been self-teaching myself Java for the past few weeks and I would like a little help. Without an instructor or ample code snippets that are readable to me, I've been finding it difficult to know if my coding lacks the polish and efficiency necessary. Here is the …

Member Avatar for suriname0
0
112
Member Avatar for C_E_H

hello I'm new at jsp , I want to use paging to display all of my data base table tecord but I didn't knew how... can any one help my?

Member Avatar for Thirusha
0
48
Member Avatar for dummbe

hi , i have this problem, which i cannot figure it out. This problem has been day now,and reached does not seem to help. How do u pass an integer value form one class to the other class. Here my code. The integer that summited by the user which is …

Member Avatar for orangehead911
0
284
Member Avatar for m.cliter

hello, I m working on a Ford-Fulkerson algorithm to get the Maximum flow in residual graph, and min-cost algorithm. My representation based on adjacency-lists approach, where I keep track of all the vertices connected to each vertex on a linked list that is associated with that vertex. So far I've …

0
60
Member Avatar for niteshkumar

Hi guys... Is it possible to stop opening multiple instance of a jar file... I'm using JWS for lunching my SWT application, I just want to open my application only one (only one instance) at a time on one machine.

Member Avatar for niteshkumar
0
38
Member Avatar for sktr4life

ive doing a homework which we need to provide buttons (GUI) for a vending machine. the vending machine takes dollars, quaters, dimes, and nickels, and the vending machine has drinks (60 cents) and snacks (45 cents). we done a code were it does work through "SCANNER", but now we have …

Member Avatar for peter_budo
0
2K
Member Avatar for CaptainCharisma

Hi, im new in java, im developing a program that produce a document in pdf format and to generate it im using abcPDF4. Can anyone advise whether abcPDF4 is compatible with java??

Member Avatar for peter_budo
0
88
Member Avatar for dantastik

Hi everybody - first post. I did look around a bit but couldn't find a relevant answer, if it's a duplicate post apologies! Anyway, using Ubuntu 7.10, NetBeans and MySQL libmysql-java 5.0.4+dfsg-2 installed ( JDBC drivers ) I also downloaded mysql-connector-java-5.1.6.tar.gz but not quite sure what to do with it. …

Member Avatar for peter_budo
0
172
Member Avatar for wad

[B]how i can send file in j2me over bluetooth i cant use the protocol OBEX to do that any one help me...... [/B]

Member Avatar for jasimp
0
108
Member Avatar for ceyesuma

[icode]String str="<table border=\"0\" cellpadding=\"5\">";[/icode] I believe \ this is an escape caracter?Y,N, but what is * doing? Thanks -Steve

Member Avatar for masijade
0
47
Member Avatar for afflictedd2

Hi everyone, I'm having a hard time trying to create an object only once in a JSP file that I know works already, except that it always creates the object again with each page reload or submit request. I've tried session, not sure how it works.. but haven't figured it …

Member Avatar for jwenting
0
79
Member Avatar for kooljoycie

the code for an elevator simulation refuses to compile and i cant see the problem, pls tell me the problem and how to correct it, thanks... here are the codes: package com.kooljoycie.elevator.event; import com.kooljoycie.elevator.model.*; public class ElevatorModelEvent { // Location where ElevatorModelEvent was generated private Location location; // source Object …

Member Avatar for jasimp
0
82
Member Avatar for acunlai

hi guys, i need to write a program about slide show in java, please help me with these wrong code : import javax.swing.*; import java.awt.*; import java.awt.event.*; class myframe extends JWindow { myframe() { setLocation(200,200); setSize(250,150); addKeyListener(new Listen()); show(); } class Listen extends KeyAdapter { public void keyPressed(KeyEvent e){ if …

Member Avatar for jasimp
0
343
Member Avatar for anbuhikaru

My JRadioButtons dont add, and i dont understand why i have 1. declared buttons 2. declared button group 3. added to actionlistener 4. added to buttongroup since i'm using a null layout 5. set size 6. set location 7. added JButtons help would be greatly appreciated! <code snipped and replace …

Member Avatar for jwenting
0
131
Member Avatar for ceyesuma

I recently deployed a program [icode]http://www.netbeans.org/kb/61/web/hibernate-vwp.html#01[/icode] in a pakage containing *.hbm.xml's and backing beans a HibernateUTIL.java class was created. in the IDE the table describes proper primatives that populate colm and rows. yet (deployed) a table displays column headers in browser with no data. an exception states HibernateUTIL [icode]System Messages …

Member Avatar for jwenting
0
178

The End.