32,199 Topics

Member Avatar for
Member Avatar for shashikant.v

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

Member Avatar for AndreiDMS
0
74
Member Avatar for llemes4011

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, …

Member Avatar for andreshani
1
2K
Member Avatar for musthafa.aj

how do open port on firewall using java programmatically... any upnp code ... plz help me its urgent.........

Member Avatar for musthafa.aj
0
226
Member Avatar for 3xc

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....

Member Avatar for jbennet
-2
56
Member Avatar for JasonDoyle

[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 …

Member Avatar for JasonDoyle
0
42
Member Avatar for NEMO_1990_2007

[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); …

Member Avatar for james chaco
0
91
Member Avatar for dentoo

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) { …

Member Avatar for james chaco
0
96
Member Avatar for gitech

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?

Member Avatar for masijade
0
62
Member Avatar for kool005

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. …

Member Avatar for masijade
0
1K
Member Avatar for f3rrari

[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 …

Member Avatar for masijade
0
99
Member Avatar for doodads

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 …

Member Avatar for doodads
0
199
Member Avatar for japhabelx

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 …

Member Avatar for Ezzaral
-1
126
Member Avatar for keicola

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 …

0
61
Member Avatar for jh9t

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; …

Member Avatar for mellowmike
0
112
Member Avatar for Web_Sailor

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 …

0
59
Member Avatar for Ghost

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?

Member Avatar for Clawsy
0
187
Member Avatar for Clawsy

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 …

Member Avatar for Clawsy
0
2K
Member Avatar for anurag143

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..

Member Avatar for peter_budo
-1
360
Member Avatar for Alex_is

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 …

Member Avatar for stevelg
0
403
Member Avatar for gunjannigam

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.

Member Avatar for james chaco
0
90
Member Avatar for rukshilag

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); } …

Member Avatar for gunjannigam
0
89
Member Avatar for ngoelnoi

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 …

0
47
Member Avatar for rs25

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 …

Member Avatar for rs25
0
138
Member Avatar for Pranesh_Ashrit

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 …

0
75
Member Avatar for sselwyn

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 …

Member Avatar for di2daer
0
119
Member Avatar for P00dle

I've found this online(Can't remember where) and I thought it might be usefull to other people as well:[CODE]package org.kodejava.example.text; import java.util.List; import java.util.ArrayList; import java.util.Locale; import java.util.Collections; import java.text.Collator; public class StringShortWithCollator { public static void main(String[] args) { List<String> fruits = new ArrayList<String>(); fruits.add("Guava"); fruits.add("Banana"); fruits.add("Orange"); fruits.add("Mango"); fruits.add("Apple"); // …

0
62
Member Avatar for ngnt4

[CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class TravelExpenses extends JPanel { private JTextField days; //declaring textfields and labels private JTextField lodging; private JTextField airfare; private JTextField taxiCost; private JTextField miles; private JTextField rental; private JTextField seminarFees; private JTextField parkingFees; private JLabel daysL; private JLabel lodgingL; private JLabel airfareL; private …

Member Avatar for ngnt4
0
111
Member Avatar for musthafa.aj
Member Avatar for parry_kulk
0
78
Member Avatar for ngoelnoi

Hi, I am facing a problem in JTextPane. Actually we are creating a editor like application in Java Swing. In JtextPane we type the matter and set some metter as heading1, heading2 so on as user required and some matter as simple story. My problem is that how can we …

Member Avatar for ngoelnoi
0
101
Member Avatar for sselwyn

Hello! I am supposed to write a recursive method for my assignment in my class but I'm not sure what is wrong with the code I wrote. The method should print all of the letters of the alphabet up to (including) the parameter value. Some examples of what it's supposed …

Member Avatar for sselwyn
0
81

The End.