32,204 Topics
| |
Howdy, First off, I should say that I am jumping on posting this issue much quicker than I normally would - but I'm not really in a patient mood now, and I'm far from being a fan of anything the W3 has done. Anyhow, I am in the process of … | |
guys me trying to use switch statement in this program but cant get to end... i tryed to convert string into char but dont knw why it still not getting right... please help me [code]import javax.swing.*; import java.io.*; class HappyBirthday { public static void main(String[] args) throws IOException { String … | |
Hi folks. I'm making a GUI. It contains multiple JPanels. I'm having trouble making contents of other JPanels (than the first/main JPanel; others are subclasses to the first one) visible... From the first JPanel, I call a draw method to a second JPanel. This second JPanel's draw method displays a … | |
I have been using java for some time, and can code back end stuff with ease. GUI's on the other hand I Find hard to deal with. So anyway, I'm making a game (text based), and would like to implement a console type GUI. I have already made a jframe … | |
Hey guys, I'm writting a program that reads a list of names from a file called name.txt and instert these names directly into a linked list in alphabetical order of [B]last[/B] names. For example, if the text file has these names: Henry Johns III, Albert Einstein, Henry Johns II, Mary … | |
I have to write a program that creates a text file that contains a power of two table in HTML format. Also the instruction are [COLOR="Red"]The file should start with something like: [/COLOR] <html><head> <title>Powers of Two</title> </head> <body> <table border cellpadding=5> <tr><th>Power of 2</th><th>Value</th></tr> [COLOR="red"]Each line of the table … | |
I need to code a program for my friend and it has been giving me some difficulties. This needs to have two classes, one called Tester and another called Game. And the data in the Game class needs to be pulled to the tester class after the calculations are finished. … | |
hi.....um reading killer game book.and when loading external models it imports ncsa portfolio package.....i dont know where i could find this package and whether this package is included in java3d api??thanks in advance for any help....... | |
CAN SOMEONE TELL ME HOW THE console eraser work in the below PROGRAM PART...............describe the LOGIC??????????? [code] //Creating and hiding password. ConsoleEraser consoleEraser = new ConsoleEraser(); System.out.println(); System.out.println("(Please enter the common Password)"); System.out.print("PASSWORD : "); BufferedReader passin = new BufferedReader(new InputStreamReader(System.in)); consoleEraser.start(); String passWord = passin.readLine(); consoleEraser.halt(); System.out.print("\b"); //Password matching. … | |
i have created a system for a library using java using input and output jframes but i need to access that project using a .exe file by just a double click...how can i do that | |
my i have wrote my code is like this but m not to get get proper out put here is my code [CODE] System.out.println("Enter Date of Birth dd/mm/yyyy"); DataInputStream in=new DataInputStream(System.in); String dob= in.readLine(); String[] dob1=dob.split("/"); int year=Integer.parseInt(dob1[2]); int month=Integer.parseInt(dob1[1]); int date=Integer.parseInt(dob1[0]); System.out.println("Date : "+date+ "Month : "+month+" year :"+year); … | |
I have tried to include a JavaScript asp file into a vbscript asp file, but I did work? I know because they are "incompatible", but I don't know how to solve it! | |
Hi, New to Java & hoping you can help me with an error message I am getting. The compiler says "Cannot find symbol - variable evt" for the first line of the below code. [CODE]if (evt.target==calc) { clickedCalc(); return true; } else return super.action(evt,obj); for(int i=0;i<12;i++) result[i].setText(" "); // clear … | |
[code] import java.util.Random; import java.util.Scanner; public class AssignmentMenu { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int loop = 0; String randomLetters[] = { "a", "b" , "c", "e" , "d" ,"f" , "g" , "h ", "i", "j" , "k" , "l" , "m" , … | |
Hi , i am new to this concept of OSGi and felix and ipogo please give me the solutions for my doubts 1> why we use OSGi -- where to use and how to use Osgi.? 2> what is felix and why to use that and how to use? 3> … | |
Hi all, i'm doing a AES encryption with a library found on sunjava. There is a small problem i hit while making a test. Firstly i used "nv3456789123456o" as my key to encrypt. However, for testing purpose, i'm trying to use a different key to decrypt the message to see … | |
Hey I'm supposed to make a program using the HSA application console I'm using Ready to Program 1.7.1 The program I'm supposed to make could be any kind of game/activity Some examples are connect4, poker, reactionTimeMeasurement, other card games I've seen source codes for these programs online, but I must … | |
Hello There is no error and no table. Could someone find the missing code needed to render the table? How do I Verify that outocommit is OFF? output: [code] in personalDataTable: Supports Scroll headers: ADMIN_UID headers: ADMIN_PASSWORD headers: ADMIN_LNAME headers: ADMIN_MNAME headers: ADMIN_FNAME headers: ADMIN_GENDER headers: ADMIN_AGE headers: ADMIN_START_DATE headers: … | |
I've looked over the forums but I can't find anything to help me. I've tried out some of the code but I still end up with a blank image. What I'm trying to do is allow the user to draw an image in a JPanel and then I want to … | |
Hello I am using : [icode] conn = ddf.getConnection(); setConn(conn); ps = (PreparedStatement) conn.prepareStatement( ModelUtils.getXMLResource("selectAdmin"),ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); ps.setString(1, thisUser); rs = ps.executeQuery(); [/icode] and [icode] public int getRowCount() { try { rs.last(); return rs.getRow(); } catch (SQLException ex) { Logger.getLogger(AdminPanel.class.getName()).log(Level.SEVERE, null, ex); ex.printStackTrace(); return 0; } } [/icode] and it is … | |
How to establish the connection between two hosts using TCP socket programming in java. | |
Hey everyone, I am writing a Java program and I want to present the user with a settings window when they run a function in the main GUI so they can set the parameters which are used in the function. Ideally what I would like to do in the main … | |
Hello, I am trying to build a gui with two textfields, a textarea, and a few buttons. The two textfields are for the user to enter in random numbers (one number in each textfield). I then want the person to be able to hit a button that will then take … | |
Hi all i am new in j2ee but have good experince in asp.net what is the best book or web to start java [U][/U] | |
[CODE]import java.util.Date; class House implements Cloneable,Comparable { private int id; private double area; private Date Whenbuilt; public House(int id,double area) { this.id=id; this.area=area; Whenbuilt=new Date(); } public String toString() { return id+" "+area+" "+Whenbuilt; } public int compareTo(Object o) { if(area>((House)o).area) return 1; else if(area<((House)o).area) return -1; return 0; } … | |
Need help with my chat program as it is not working. Right now, its supposed to be like a server-client "chatroom". But I have a problem with sending a message that one client sends to the server, to everyone. Here is what I have so far, can anyone point out … | |
I'm trying to convert a String that I've read from the first line of a text file to integer this is how: String="8 12 10" and this is what I'd like to have: int x=8 int y=12 int z=10 parseInt doesn't work because it gives me some other number (perhaps … | |
| Hello :) Suppose I input an int value with Scanner sc = new Scanner(System.in)... and I want to count how many divisors that value has, how would I proceed in "recognizing" a divisor? if ((input/2)%10 == 0)? I'd prefer doing this recursively somehow. Can someone help? :) Best Wishes! |
hey anyone.. do u know how to convert NFA to DFA in java? pleasee.. | |
i have been asked to make phone book console application in java using collections/data structure i have done some of it. i am having problem that i have to store firstname,lastname,cellnumber,emailaddress etc in such a way into collection so that if some one wants to search phone number from phonebook … |
The End.