32,199 Topics

Member Avatar for
Member Avatar for gacusana.aljan

how to create a window with label and button above the label. can you codes this label : MAIN MENU BUTTON : RECURSION BUTTON: EXIT PLEASE HELP ME ! ITS ALL ABOUT RECURSION

Member Avatar for stultuske
0
103
Member Avatar for jdseader

The following four classes are an attempt to set up three different JFrames and switch between them. The three frames are: MainView, DetailView, and FormView. The main class is MultipleFramesExample. The four source codes constitute a NetBeans project with a package called FrameViews. MainView, DetailView, and FormView are essentially identical …

Member Avatar for JamesCherrill
0
4K
Member Avatar for cmmmm

When i run a single number (1-9), it'll output as ONEONE or TWOTWO, etc.. As well with numbers 11-19, they'll show up as ONEELEVEN or TWOTWELVE, etc. 20-100 outputs fine whereas 101 becomes ONE HUNDRED TEN ONE ONE, etc.I have no idea what I've done any help would be greatly …

Member Avatar for stultuske
0
238
Member Avatar for bloodbender

Hello Daniweb! I have a .txt file on a URL and I'm able to read its contents and display them however and wherever I want in my applet without any issues with this simple code: URL url = new URL("http://blabla.com/something.txt"); BufferedReader input = new BufferedReader(new InputStreamReader(url.openStream())); String str; Boolean continueLoop …

Member Avatar for bloodbender
0
221
Member Avatar for Topiary
Member Avatar for Topiary
1
91
Member Avatar for soapyillusion

Hello all, I recently started working with java, and I have been in the process of creating a new game for use on Android operating systems. I have at least 90 percent of the game fully conceptulized and at least 30 percent of it already in actual code. However I …

Member Avatar for soapyillusion
0
105
Member Avatar for Tajinderpal

I have created a screen capture of the current screen ,but i want to capture the entire html page as image can any body help me. Here is the code of screen capture.. import java.io.*; import java.awt.*; import java.awt.image.*; import javax.imageio.*; class A { public static void main(String[] ar) throws …

Member Avatar for JamesCherrill
0
4K
Member Avatar for jab8288

I am trying to format my text firlds so that if the user inputs letters or somethings improper, it will display an error message and ask the user to retry entering the number. i am not quite sure where to start with this part. i have the calculator code working …

Member Avatar for JamesCherrill
0
192
Member Avatar for khaled_jawaher

I have a sample question,can i return a Jframe in a method defined in a jaxws webservice implementation class.if soo give me steps simple steps onlt or keywords, i ve tried for example: import java.awt.*; import javax.jws.WebService; import javax.jws.WebMethod; @WebService(serviceName="frameService", portName="framePort", name="frame",wsdlLocation = "WEB-INF/primary.wsdl") @BindingType(value=javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_MTOM_BINDING) public class frameserver implements Serializable{ …

Member Avatar for peter_budo
0
247
Member Avatar for atunio

i am new please guide me how can i take input from user in java. i did java from lot of time ago now i am starting learn again i did learn take input from user by this, there is a statement to write input from user first we initialize …

Member Avatar for stultuske
0
409
Member Avatar for rahman86

HI all in Daniweb. I have a problem here. I wanted to create a desktop database application using Java DB Embedded. What is the problem here i try creating a frame from scratch and want to connect to the database. I have create a connection to the database. it was …

Member Avatar for bloggernewbie
0
3K
Member Avatar for georger55

What is the importance of a counter in a linked list? what would happen if one left the counter out of the linked list?

Member Avatar for zeroliken
0
107
Member Avatar for amid88

hey all i have a table in my project which called tasktable it retrives data from database (oracle) how can i change the color of the row that has the color in the cell ex. (i,8) Automatically when i click in refresh butomn i have tried so many times to …

Member Avatar for JamesCherrill
0
899
Member Avatar for london-G

Hello, I have a JList which contains all data from mySQL table. I want the user to be able to select an item from the list and show it on the label. When I click on the first item it works, However when I click on the other items, the …

Member Avatar for london-G
0
258
Member Avatar for Jack5848

so basically for my uni work i have to create an applet that gives a word pattern for a particular sentence, ie '1 am a man' would give 2, 1, 1, because there are 2 1 letter words, 1 2 letter word and 1 3 letter word. the harder part …

Member Avatar for JamesCherrill
0
161
Member Avatar for adnan18

/** * @(#)password.java * * * @author * @version 1.00 2012/7/14 */ import javax.swing.JOptionPane; import javax.swing.*; import java.util.*; public class password { public static void main (String[] args) { String user; user=JOptionPane.showInputDialog("enter password to continue(letter only)"); if(user.compareTo("adnan")) { JOptionPane.showMessageDialog(null,"ACCES GRANTED","welcome", JOptionPane.INFORMATION_MESSAGE); } else { JOptionPane.showMessageDialog(null,"ACCES DENIED","error", JOptionPane.ERROR_MESSAGE); } } }

Member Avatar for adnan18
0
121
Member Avatar for adem87

hello ı want to develop some code in java but ı coudnt find the java programmer on internet please give me url or adres for downloandind java developer

Member Avatar for stultuske
0
244
Member Avatar for Tajinderpal

Hi I have java Enabled Nokia X2-01 I have made a game in java which is a executable jar file now i want to run it in my java enabled mobile phone.Please help

Member Avatar for peter_budo
0
237
Member Avatar for Viped

Hi how I can read md5 hash from textfile and compare it with other md5 hash. I know that MessageDigest.isEqual() is right method for me but how to get the hahs from file without changing it. I can read it to String but if I use getBytes() method it obviously …

Member Avatar for Majestics
0
192
Member Avatar for silvercats

Is that possible to decompile a C++(or Java) "exe" file enough to read a TEXT password,stored in the source? .......just a regular string or char. no encryption or stuff

Member Avatar for Ancient Dragon
0
339
Member Avatar for MrAppleseed

Hey all, I'm currently somewhat new to Java, but not to programming, so I appologize if there's an obvious way to do this. Anyway, I'm currently writing a peice of code that I hope will be a graphical front end to GDB because I hate all the other front-ends, it …

0
75
Member Avatar for scarletfire

As a practical joke for your birthday, your best friend gave you some single-dimensioned arrays, each full of boolean values. She didn’t tell you how many items are stored in these arrays. As if that weren't bad enough, your friend told you that each array is filled almost entirely with …

Member Avatar for JamesCherrill
0
422
Member Avatar for Viped

Hi, my codes if statement returns false for some reason. I tried different variation yesterday and today morning and nothing works. Could someone look my code. I got File file users.txt where the usernames are stored. public static void checkUser(String userName, char[] passWord) { FileInputStream fIn; DataInputStream dInput = null; …

Member Avatar for Viped
0
158
Member Avatar for nheshen

Eliza is a famous 1966 computer program written by Joseph Weizenbaum. It imitates a psychologist (more specifically, a Rogerian therapist) by rephrasing many of a patient's statements as questions and posing them to the patient. This type of therapy (sometimes called nondirectional) is often parodied in movies and television shows, …

Member Avatar for Schol-R-LEA
0
362
Member Avatar for annette_arpana3

any one have a graph coding for snmp using java..with the graph i can see the utilization of the network...would rely be helpfull. thank you

0
96
Member Avatar for bobytch

Good day to every one. First here is my code so far import java.io.*; public class Program2 { public static void main (String[]args) throws IOException{ BufferedReader bv = new BufferedReader (new InputStreamReader(System.in)); String a, b, c, x; Float d, e, f, g, h, i, j, k, l, m, ave; System.out.println("ENTER …

Member Avatar for bobytch
0
425
Member Avatar for chinee

i am doing a group project concerning graph my part is finding the minimal cost the teacher tried to help us out with the group work by putting up code for the parts for use to follow. i have errors when i compiled the code that the teacher give. the …

Member Avatar for chinee
0
193
Member Avatar for DarkMonarch

hey guys, i was looking into rewriting the php custom framework at work into java. i was going to download the J2EE but there is 2 versions. J2EE SDK (regular) and J2EE Web Profile SDK http://www.oracle.com/technetwork/java/javaee/downloads/index.html i've look at the descriptions and the includes and it look the same. whats …

Member Avatar for ~s.o.s~
0
129
Member Avatar for lj81

Hi, I'm currently creating a pool game which is nearly complete but I want to have it as a 2 player (human vs human) game. All that I want the program to perform is that when the game begins then the two players are asked to enter their names (I …

Member Avatar for Philippe.Lahaie
0
415
Member Avatar for wallet123

i want to create a program that would translate number to words from 1-1 billion this is how i started: package app.runner; import javax.swing.*; public class EnglishNumberToWords{ public static void main(String args[]){ int inputNumber=0; String oness[]={"one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"}; String tens[]={"ten","twenty","thirty","fourty","fifty","sixty","seventy","eighty","ninety"}; String answer=""; String calculate=""; inputNumber=Integer.parseInt(JOptionPane.showInputDialog(null,"PLease Enter a Number: ")); int billion=inputNumber/1000000; int …

Member Avatar for JamesCherrill
0
247

The End.