32,204 Topics
| |
Hi guys, I am trying to create an application to serve on the web which is an integration of a java application and some php for mostly presentation functionality. Has anybody here successfully done anything like this before, and if so how? Please help. In dire need here. Thanks in … | |
Hey, I have been using youtube to learn how to use the JPanel, as the prof has not given a lesson regarding that… The project was a game, which I have finished, but for bonus I can do some sweet sweet graphics. Anyhow the game saves the data in arraylists … | |
Hello, I build my java desktop application using NetBeans 6.7, visually. So I click on the Frame -> Events -> KeyTyped and I add a new handler. The problem is the key events are not detected! My components are Swing components. Why is this happening?? :( [CODE] private void formKeyTyped(java.awt.event.KeyEvent … | |
I finally got it in order for smooth compilation, but nothing gets converted [CODE] import java.util.Scanner; public class nizadi_Lab8 { public static void main(String[] args) { if(args.length > 0) { try { Integer.parseInt(args[0]); } catch(NumberFormatException f) { System.out.println("wrong format"); } } else { System.out.println("no arg"); } } public int printBin(int … | |
For synchronized block, an object has been passed.The question is,Why & when it is passed & what is the purpose of passing an object? -Thanks in advance | |
hi I have to create a help menu in my project for that i had made html pagesand my problem is I cannot connect that html pages from help menuitem. pls helpme and guide me for that. thanks for ur response shashikant.v | |
This is a very basic implementation of a Julia Set Fractal Generator. All of the variables are coded in, so feel free to change them to experiment with different results. I give an explanation of Complex Numbers and the Complex Plane, but you should look it up for your self, … | |
how do open port on firewall using java programmatically... any upnp code ... plz help me its urgent......... | |
im just worried about our quiz this week. My problem is to display from no.s 10-1000 w/c is divisible by 10 using for loop.while loop,do-while netbeans.... | |
[CODE] higher = new Button("Higher"); lower = new Button("Lower"); creditin = new Button("Enter Credit"); totalcredit = new TextField(10); stopsound = new Button("Stop Sounds"); startsound = new Button("Start Sounds"); add(higher); add(lower); add(creditin); add(totalcredit); add(stopsound); add(startsound);[/CODE] for the life of me I cant figure out how i can add coords to those … | |
[CODE]package javaapplication1; public class Main { public static void main(String[] args) { //display the table heading System.out.print(" Multiplication Table\n"); System.out.print("------------------------------\n"); //Display the number title System.out.print(" "); for(int j=1;j<=9;j++) System.out.print(" "+j); System.out.print("\n"); //Print the body of the table for(int i=1;i<=9;i++) { System.out.print(i+" | "); for (int j=1;j<=9;j++) { if(i*j<10) System.out.print(" "+i*j); … | |
this is the source code [url]http://www.bennychow.com/download/pacman_eclipse_project.zip[/url] works as an applet but I want to create tests (its due tomorrow :/) for this app and in order to do that I need to run it as an application so I created a main method: [CODE] public static void main(String[] args) { … | |
Hai friends, In synchronization block why we are passing this or object? public int getCount() { synchronized (this) { return count; } synchronized (obj) { } please clear by doubt? | |
Well, here i m trying store the some vertices(4) in an array. and trying to read them. But i m getting an error of "Array Index out of Bounds Exception. I know the error is in the line i have highlighted(red). And i have tried various methods. But not working. … | |
[CODE] import java.util.Scanner; public class Card { private boolean rankBad; private boolean suitBad; private boolean invalid; private boolean valid; private int value; private int altValue; private int suit; private int rank; private int numValue; private int status; private boolean isJack; private boolean isAce; private String card; public Card() { Scanner … | |
Alright I've pretty much exhausted all other sources of information and still can't seen to understand how to do this, so here is my question: I have a program that loads up a txt file, then displays a menu and allows people to choose options from that menu. If they … | |
does anyone here know how to create an electronic bandit game that has the following characteristics;add credit put money to play the game,reduce money from you credit when you loose,randomly spin pictures,when pictures match u get credit,when it ends you hav the choice of playin again,and you can login to … | |
Hi... I've been trying to edit and rewrite my code for quite a while now but no matter what I do the program only ever reads the last instance of a class that I declare. For example, [CODE]Fraction ni = new Fraction(3,4); System.out.println(Fraction.lcd(ni,new Fraction(3,2)));[/CODE] > This code is supposed to … | |
Hi, Daniweb I am stuck on my hangman game project, I don't know where to start with my last four methods [code] import java.util.*; import java.awt.*; import java.applet.*; import java.io.*; import java.net.*; public class Hangman() { final int maxTries = 5; final int maxWordLen = 20; char secretWord[]; int secretWordLen; … | |
Hi, I have a jRadiobuttongroup. I have 3 types of jradiobuttons in my group. [CODE]A B C 1 1 1 2 2 2 3 3 3 4 4 4[/CODE] Now the problem is that when I selected suppose A type of buttons some of the A type buttons get selected … | |
I have this code: [CODE]try { robot = new Robot(); robot.mouseMove(0,900); robot.mousePress(InputEvent.BUTTON1_DOWN_MASK); robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK); }catch(Exception e){}[/CODE] And I want it to click the "Start" button on Windows computers. The mouse moves to the correct location, but does not click. Advice? | |
Hi, I want to "click" with the mouse using a Robot object like this: [code] Robot bot = new Robot(); bot.mousePress(InputEvent.BUTTON1_DOWN_MASK); bot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK); [/code] This results in: [B]Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Invalid combination of button flags[/B] I even delayed the process before it starts clicking to have time to release … | |
Hello Friends, my name is Anurag.. am doing MSC(Comp. Science) I need a Project description mosty in JAVA(NETWORKING,Client/Server) Something which is of more developing technology from INDUSTRIAL POINT OF VIEW.. I would be very thankful.. | |
anyone enlighten me? i have to find the median...below i found the mean and read the question wrong. how do calculate the median? i have my text input file which has 7 ints, 1-7, so i kno #3 will show up for median...but i dont know how to code it...pls … | |
How to draw a circluar arc of given radius say 20 passing from two Given points. I have seen the function Arc2D.Float but can figure out how to find the required parameters for the contructor and also for QuadCurve2D cant figure out the control point. | |
Here is my code - i want b1 to close the window when i press it public class Main { public static void main(String[] args) { javax.swing.JFrame w1 = new javax.swing.JFrame(); javax.swing.JButton b1 = new javax.swing.JButton(); w1.setBounds(0,0,300,300); java.awt.Container c = w1.getContentPane(); c.setLayout(null); b1.setText("Exit"); b1.setBounds(100, 100, 100, 30); c.add(b1); w1.setVisible(true); } … | |
hi, I am facing a new problem when resizing the form. I have a JTextPane on the JInternalFrame which occupy all the form space at initial stage. we have a button to add a new JTextPane on the form at run time. The new JTextPane is to be added at … | |
Hello All, While Browsing thru some sites I visited a site [url]http://www.tattooart.pl/[/url] When you visit by links it work fine but when I delibrately omitted some text in url i can see the Directroy structure and can even access them [url]http://www.tattooart.pl/pliki/[/url] Can you People focus as how this can be … | |
I want to create a file in one of the application folder of tomcat. For.eg Assume that i have a web-app named Test, in that i want to create a file called as report which is generated based on some condition using jsp. If i give a file path as … | |
I am trying to write a recursive method to print an increment of a number of asterisks specified. triangle(5) would print this: * ** *** **** ***** However, the code I wrote seems to do the opposite and I'm not sure how to reverse it although I tried and it … |
The End.