32,204 Topics
| |
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] | |
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 … | |
Hello guys. I'm having a bit of difficulty with adding totals. I know how it's suppose to work but I'm not seeing what I'm doing wrong. If I want to add my total each time I hit the total button how can I do it. When I try to add … | |
Hi all Can anybody help me how to set time in SuperWaba so that an action is done after some millisecond or sometime. Thank you. | |
I'm trying to add a KeyListener to my JFrame, but it doesn't seem to work when I have a JButton floating around [code=Java]import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.JFrame; import javax.swing.SwingUtilities; public class Testing extends JFrame implements KeyListener{ public static void main(String[] args){ SwingUtilities.invokeLater(new Runnable() { public void run(){ new Testing(); … | |
Please everyone i need some help here, why do i keep getting this error . i want the informations submited to the database. C:\RMI\Client>javac *.java CustomerInformation.java:121: ';' expected String insertDetails(cid, name, dob, cms, address, city, state , zcode , cnum, nod); ^ | |
hi guys, i have created a class which has a couple of buttons and each button calls a public class, class B4 is a button and it calls up the Printdata class, the Printdata class, then gets data from the database carpark and stores it into a file.txt as B4 … | |
Hi, friends I want to disable copy (Ctrl + C) in JEditorPane in Java.. I used text/html as our requirment so that right click of mouse is disable but it can't effect on Ctrl+c. So, Help me. | |
Hey All Me getting a frustating problem while making the webservice using Eclipse, jdk1.6.0_03,and Tomcat-5.0. The overall scenario is like this.There is a class “WsEpp” of which I have to make webservice.”WsEpp” class is using the object of another class “EppService”, and if certain conditions will be fullfill then “EppService” … | |
Hi folks, Today i noticed two strange behaviour in swing. [B][I]Case 1:[/I][/B] Normally for every key events we used to get one keyPress and one keyRelease events.But this is not of the case with [B][COLOR="Red"]PrintScreen[/COLOR][/B] key. I tested this behaviour on the JNLP file used in java tutorial at this … | |
..I just want to have some answers about it.. -is posible that we can put a windows media player in our java program?? if yes, can anyone give some info on how could I do it.. or even the bets site tutorial on how to do it... -tnx | |
Hi I have Borland Jbuilder 2006 Enterprise installed on a Microsoft Windows Vista Home Premium OS. I was trying to make the font bigger (in the preferences menu) but something happened and now the font is very small, too small to even click on a button. (I'm not talking about … | |
Hello once again everyone. I would like to know if anyone could assist me on how to insert text from a JFormattedTextField and an item from a JComboBox and place them into a JTextPane. If the user enters an item name like Shoe in the JFormattedTextField and then selects an … | |
why isnt my post being given an attemp, is there something wrong? | |
Hi all, there is a JTable and the cell in one column is set to button by set a customize cell render. However, the size of the button occupies the whole cell region that is not what I want. How can I set fix size to it? Thanks | |
Im developing a Issue Tracker Application in struts,I have one link 'view issue' which displays all the issues as a report, for each record one update link will be there, if we click on update link it has to go to that particular record page with details from the database. … | |
Question: Write a program that draws a clock face with a time that the user enters in two text fields (one for the hours, one for the minutes). I have Followed my example code, and come up with 3 classes. Clock, which sets the outines for drawing clock objects, ClockViewerFrame … | |
I was wondering if I can get some guidance on the following questions. ___________________________________________________________________________ Write a text menu-based program to allow a user to continually select from the following options: a. Store up to a maximum of 20 integers in an array. Enter numbers until the sentinel value - 99 … | |
Hello. I asked last week about how to allow the user to only enter in letters. I tried the mask formatter but that's too limited. How can I go about letting the user to enter in any kind of letters they want but restricted to only 25 letters for their … | |
Hi, in many sites i see scroller in flash, it scrolls without pressing a button or mouseover to any button. It scrolls inside in a box.With mouse movement it scrolls to left or right. It will scroll any div content.I searched all of internet but result is empty :(..Anybody have … | |
Please mail me the procedure for Java Oracle Connectivity. <snipped email> | |
[code] public class IamCanadian { public static void main (String[] args) { // create an object, and IamCanadian canEng = new IamCanadian (); // while the user does not enter "quit" as a sentence: // get a string from the user System.out.println ("enter a American English"); String ameEng = ReadLib.readString … | |
We are having an issue with Host-On-Demand crashing on certain computers, what will happen is you launch the program and it goes through all the load up but then just shuts itself off. I have run the program on other computers using the same windows image with SP3 and on … | |
I'm writing a program that takes an input string and gets the length and/or gets the number of vowels and consonants in the string. I've gotten it working except for consideration of spaces (which are allowed) and error checking for input other than letters. Here is what I've got so … | |
Hello all, im rather confused about what's wrong with my code.... it says non-static method add(E) cannot be referenced from a static context, yet i can't see any reference to a static context.... here is my code; thanks in advance! import java.util.*; public class person { public String name[]; public … |
The End.