35,618 Topics
![]() | |
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 … | |
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 = … | |
this is an interview question asked on 23rd april 2005 in mbt? | |
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 … | |
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 … | |
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 { … | |
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 … | |
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, … | |
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); … | |
hi how to develop customtag with methods like onload,onclik. can any one help. thanks | |
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 … | |
[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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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. | |
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 … | |
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?? | |
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. … | |
[B]how i can send file in j2me over bluetooth i cant use the protocol OBEX to do that any one help me...... [/B] | |
[icode]String str="<table border=\"0\" cellpadding=\"5\">";[/icode] I believe \ this is an escape caracter?Y,N, but what is * doing? Thanks -Steve | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.