36,051 Topics

Member Avatar for
Member Avatar for adityaagrawal

Sir, I have developed a few simple projects using Netbeans IDE.They contain JSPs,Servlets,Java Classes and i use Mysql as database.Please guide me how to place them on internet.how will the databse work.I have created (exported) a[B] .sql[/B] (dump file) of my databse. I Understand that i will have to register …

Member Avatar for adityaagrawal
0
208
Member Avatar for zhouli

I'm a Java beginner.I want to know that do you have good video or book allows me to know Java more as soon as possible!!

Member Avatar for masijade
-2
23
Member Avatar for mani_1991

hi, friends i have some doubt from many days.. please any one clarify it.. my doubt is, "IS IT POSSIBLE TO CHANGE JAVA FILE TO .EXE FILE ... :?::?::?::?:?" IF IT IS POSSIBLE HOW IT IS CONVERT...:icon_idea: THANKS IN ADVANCE.....

Member Avatar for amitbhanot
0
187
Member Avatar for morrock

I'm currently practicing algorithms and coding for my colleges programming team. The problem is, in High School I was almost purely C/C++, while my college team all work in Java. So, while not wildly different, learning Java is still pretty frustrating to me. My most recent problem is a Java.lang.NullPointerException …

Member Avatar for vasu d
0
196
Member Avatar for kkjava

Hi All, Need help!!!!! here is my problem. for example i have 20 records in a table, am able to make DB call to stored procedure and set those 20 records in to a java bean through resultset. here, i dont want to display all those 20 records, instead i …

0
49
Member Avatar for kkjava

Hi All, Really appreciate your help!!! I am new to java and this is my new project in java. for my application am trying to get DB results by calling a oracle procedure through JDBC.i was able to do that and was getting results back to the DAO class.am setting …

Member Avatar for kkjava
0
159
Member Avatar for sixdegreesunder

Hi all, I'm new in programing.I'm trying to assign random numbers which math.random will choose.Each time I run program Math.random must choose either 50,100 or 150 ie: 50*1 for 1, 50*2 for 2, 50*3 for 3. I hope my explanation makes sense. Thank you! [CODE] int width; width = (int)(Math.random() …

Member Avatar for sixdegreesunder
0
168
Member Avatar for Intrevix

Hello, I just started a computer science course and I'm having issues with one of the assignments. I think for the most part, I've got it done correctly (although, I'm a little shaky with the if/else if statements), but I'm having a syntax problem on lines 15 and 19 ("illegal …

Member Avatar for adams161
0
181
Member Avatar for pmark019

[QUOTE]I am trying to make my program look like the image I attached but I don't know how to. I can't make the JTextFields positioned like that.[/QUOTE] [QUOTE]I also want to make it a JScrollPane instead of JPanel[/QUOTE] [CODE]import java.awt.*; import javax.swing.*; import java.text.NumberFormat; import javax.swing.JFormattedTextField; import java.awt.event.*; import java.text.*; …

Member Avatar for NormR1
0
109
Member Avatar for wiggerboi95

hey everyone, i am a new developer using the bluej IDE on mac 10.6. Whenever i use the virtual terminal to execute, it works perfectly. the other day, i attempted to export the file to a JAR file through the programs basic functionality, as JAR files are natively run on …

Member Avatar for NormR1
0
235
Member Avatar for boos800

I'm beginning a program that needs to read a file given in the command line. My first question is, if my command line looks like: $java mysimulator 5 proc.txt And I want to use proc.txt, which args[i] is it? Right now I'm assuming that the class name is args[0] and …

Member Avatar for boos800
0
4K
Member Avatar for asian_al

I need to write a tic tac toe game that displays who's turn it is. It doesnt have to restart or have AI. Im not sure why everytime i click it repaints a different colors. I want every cell to be one solid color then depending on if its X's …

Member Avatar for NormR1
0
106
Member Avatar for drogba123

Hi guys, i am trying to implement elevator simulation but stuck in some ways. 1st. i would like to set the background of my elevator class area into yellow but when i tried to do so by typing app.setBackground(COLOR.YELLOW) under class Elevator, i unable to change it. 2nd. i tried …

Member Avatar for drogba123
0
903
Member Avatar for faisal6621
Member Avatar for faisal6621
0
154
Member Avatar for mahaboob Basha

Hi iam developing one application..in which i need to write code with port number and mobileno which shoul send a sms message to mobile.. here i connected my gprs mobile as a modem to my pc in nowsms gateay... now i want to write a program which should listen on …

Member Avatar for sandeepsrikanth
0
359
Member Avatar for loveu

PK   õS%=   META-INF/MANIFEST.MFþÊ óMÌËLK-.Ñ K-*ÎÌϳR0Ô3àårÎI,.Ö H,ɰRÐãåòMÌÌÓ‹Y)$è•æå¥é)^.^. PKKÓÏŒB G PK út$=  app/PK út$=  app/obj/PK   út$=  app/obj/User.classuQËNÂ@=Û:`Á ¾ßÄÄ&n5nL\AÝšG,ÁbÚâwi¢1qáøQÆ;CXëæ¾zî™sn¿¾?>`'‹v¿Õµ¯|ée‘b0»âIØ=ávìóVW¶†¢ n¥ܸƒ‡–ôʍ1¨xŽÛ9dÈ÷„Oñ Œ;Ç5™#Çu‚c†dm÷š!uÒ¿•’(päaä0Í@C‰#Œªf8²Ãj–#‡ ÃtÃqå™~þR´zRiè·EïZxŽêÃa*¸w|ܘ´EÚxG±<«¶ç€û¿P³µ¿ e §ŒžiHxO'¬üß}^ßaˆ-Ñ·f䐥Îß™Ñì¼¶<u”¡¼2°¯d`Î‘¤_—DB݉ª„º’Î9³„ ‹Rœ¢î‚ætYTëïàõrñ ¦Že­½X¡X!:E›¢l‘IDê«4åC Ìaž2ÃCz›²ú–®¿¢ü<"Ëè¡1±œ-/a9\>&tB¡ë{$h,ÅÐÓí5Ceˆ Tµ¢_`XbE…˜±BÖâ…XQ!3´cý#d=²ÏeF¹Ô•«ÿp¥C®ÍXSfÔÔ|¬©-ÚþPKñFpݽ á PK   út$=  app/obj/Book.class}”ÛNÛ@†ÿÍÁIÌÂÉÊ!„C@IKÏ!‘J•¢rĽn0Mcäl¨úV­TÔª}€>TÕÙµ ©Y÷fgwvæŸog,ÿúýã'€ìåbàÎåeÝo_Ô¾ÿ>‡ Cé¹rê]§×©µ/ÜSÁžèº ÍÛ»–¼^g—ÁpâÜLá §+uú “C¡‡=ávÜ€bͶ¼=¸r¼.%ö…#;ÓöƒÀÿèž5>µÄàÌ퉷ƒm—$=¯ç‰}†´]=aȼöÏ\iŒs1šÇ$ `˜æÈ»Ž s¸—Ã<Ãø Ž,2䮜îÀ=zÇ`Ù‡U ­T[æÈ£ w+f¸[å …

Member Avatar for NormR1
-1
172
Member Avatar for niketh90

Can anyone provide me with a small code to [B]retrieve[/B] value either from [B]oracle 10G XE[/B] database or [B]MySql[/B] database using Java applets....... I searchd the whole internet but none worked fine for me.. Regardds Niks

Member Avatar for niketh90
0
90
Member Avatar for Sunshineserene

Hi, I have a problem with my instance. I need to do a file read to extract all the numbers in the text file. However, when reading the file, I used String, and hence the file is read as a String. Later on I need to equate the output of …

Member Avatar for vasu d
0
428
Member Avatar for LianaN

Hi guys! I'm trying to access a remote database (MySQL) that is installed on my home computer. The code is: [CODE] public void initDB(String ipaddress, String databasename, String login, String pass) { try { Class.forName("com.mysql.jdbc.Driver"); db = (Connection) DriverManager.getConnection("jdbc:mysql://" + ipaddress + "/" + databasename, login, pass); statement = (Statement) …

Member Avatar for LianaN
0
4K
Member Avatar for ubi_ct83

hi all, i wanna ask some advice and suggestion from u guys about combination php and java application. i want to create a web base system.i wanna use php to communicate with database and my algorithm and calculation using java application.is it possible to do so?if yes,what should i have?such …

Member Avatar for ubi_ct83
0
84
Member Avatar for jalpesh_007

Please send me information/Source code on my e-mail ID that how can we implement BFS algo. in Java. Please tell me as soon as possible.

Member Avatar for JamesCherrill
-4
117
Member Avatar for nikk

I'm creating a website as my college project which consists of HTML pages and JSP. I've started writing JSP code, but don't know how to run it. Can you tell me how to proceed after creating JSP file. (i've created Login.jsp and login.html file. Gave <form method=post action="Login.jsp"> in login.html …

Member Avatar for rajmtech2010
-1
408
Member Avatar for kchadek

Hi, I'm brand new to the forum and am taking an intro to Java class and need tome help. I have never programmed before so go easy on me, lol. The problem is to get the exact change from a dollar amount that a user inputs. Example: $4.23 is 3 …

Member Avatar for kvass
0
2K
Member Avatar for Kasanda

Hi,i have a java assignment that prints out the number of occrances of words in an entere sentence by the user.

Member Avatar for Jawahar prabhu
0
147
Member Avatar for SeanC

Hi all, I've got a certain instance in my program where an integer variable, let's call it 'x', is initialised in one part of a class, however the value is not present when the integer is called in another class. To explain further, I've got 2 classes - 'class1' and …

Member Avatar for masijade
0
469
Member Avatar for smith345

I need to create a bank account class which consists of deposit and withdraw methods. I need to have classes that inherit from superclass, a current account and savings account and a test/driver class that calls all methods and operates the system? something like: public abstract class BankAccount { private …

Member Avatar for javaAddict
0
1K
Member Avatar for Sunshineserene

Hi, I need to do a file read and extract all the numbers in the text file to be used in my java program. However, I'm having some problem with the try and catch statement. Must the try and catch statement be in the main loop only? Can't I used …

Member Avatar for Sunshineserene
0
181
Member Avatar for sciprog1

Hello Members, My program consists of a JFrame, which opens a JDialog. At this point, the modal is "true" for the JFrame when the JDialog is opened. What I want is the following: Once the interaction with the JDialog is complete, the modal for the JFrame should be turned off …

Member Avatar for sciprog1
0
63
Member Avatar for BboyRodimus

Hey guys, I'm working on my first GUI assignment and I wanted to make sure I have the layouts finished and such before I move on to the coding for the calculations and such. Here's the instructions: (4 classes) [B]CreatePanel[/B] CreatePanel extends JPanel defined in the javax.swing package. It should …

Member Avatar for NormR1
0
133
Member Avatar for samuel17

Hi all, Having another problem with a program. I thought i had this one pretty good, i was confident about it, but no luck. The problem was with initializing a variable, i try to add in to output what the variable is and it says it needs to might not …

Member Avatar for samuel17
0
214
Member Avatar for RaigaX9

Hi, I'm having a small problem with the program that I'm doing. Here is the instructions for it: Write a program named ConvertDate that converts a date entered by the user into another form. The user’s input will have the form month day, year The month will be one of …

Member Avatar for RaigaX9
0
686
Member Avatar for Wootens

Hey guys, I've constructed this program and I have this error that I don't understand. What I'm trying to do is have a user type in a positive number and then it counts up to that number. If the number is divisible by 3 or by 5, it prints Beep …

Member Avatar for Wootens
0
176
Member Avatar for diyes05

How can i make a program that will accept a series of inputs named as inserts and arrange them in the form of binary search trees. Do you have any source codes what I can use as reference? Your help is very much appreciated! Thanks for the reply

Member Avatar for brandonrunyon
0
151
Member Avatar for kekekerush

Hi everyone, I'm just wondering in Java, if there was a way to just check once for a number in an array? [CODE]for (int i = 0; i < array.length; i++) { if (array[i]>0){ count++; } } [/CODE] This code will check for all positive numbers. Is there a way …

Member Avatar for stultuske
0
83
Member Avatar for NewOrder

2 things that i dont understand: [CODE]class BTree{ private Node head; public void add(int info){ Node node=new Node(info); if(head==null){ head=node; return; } Node current=head; while (true) { // what does this mean? where is the true value derived from? if(info<current.info){// to what number does the current.info refers to? if (current.left==null) …

Member Avatar for NewOrder
0
119
Member Avatar for javanewb101

So I'm making a smiley face. It' compiles just fine, and at the run time it says "process completed" but the applet doesn't pop up. I have absolutely no idea what's going on!! Here is the error message: java.lang.NoSuchMethodError: main Exception in thread "main" Process completed. Here is the beginning …

Member Avatar for javanewb101
0
237
Member Avatar for Juniorr

Hi, I am trying to add rows to different tables. I have found this code on the web. But this is only for one JTable. I have three tables in one JFrame. How will I modify this code to three different tables. Thanks for your help. [CODE] firstTable = new …

0
85
Member Avatar for diyes05

Hello. Does any body here has a working BST program or a tutorial on how to build one? Our prof didnt taught us how to to construct it, or even the concept of it. I am in need of a source code for our project. I badly need it by …

Member Avatar for JamesCherrill
0
97
Member Avatar for loveu
Member Avatar for JamesCherrill
0
91
Member Avatar for cretaros

if (source == loginbtn ) { JFrame frame = new JFrame ("AdministratorLogin"); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); frame.getContentPane().add (new AdministratorLogin()); frame.pack(); frame.setLocationRelativeTo(null); frame.toFront(); frame.setVisible (true); frame.setResizable(false); //the commented dispose code will give me an error of cannot find symbol // dispose(); }

Member Avatar for JamesCherrill
0
107
Member Avatar for gheorghe gardu

Hi, I have a problem with a java application which should use ArrayLists, and I would like to ask if you can help me. I have created a Person class, and 2 subclasses, Student and Employee. Data attributes common are Name, SSN (social security number), and Age. A student has …

Member Avatar for JamesCherrill
0
104
Member Avatar for benhowdle89

Hi i've been set this assignment to design a Craps game for Java, i know this has been done lots before but i seem to be going round and round with this code....very frustrating! This is the code i've written so far: [CODE] public class CrapsGame { public static void …

Member Avatar for benhowdle89
0
149
Member Avatar for Ray007

Any idea for this an example question..? Consider the following Student class specification: public Student() //CONSTRUCTOR Initialized the attributes public String name () This Student’s name public String address() This Student’s address public String matric () This Student’s matric number public int creditHours () Number of credit hours this Student …

Member Avatar for Ray007
0
110
Member Avatar for Jake2025

Can somebody help me, i want to save the output of this program in a .csv file but i don't know how. please i need help. import java.io.*; public class TestEmployee { public static void main(String args[]) throws IOException { Employee staff[] = new Employee[args.length]; // populating the array of …

Member Avatar for Jake2025
0
119
Member Avatar for PDB1982

How can I code to restrict the users input to 5 numbers and no more or less....I can't think of a good way to do it. [code] import java.io.*; public class Palindrome { public static void main(String [] args){ try{ BufferedReader object = new BufferedReader( new InputStreamReader(System.in)); System.out.println("Enter number"); int …

Member Avatar for tong1
0
110
Member Avatar for ceyesuma

Hello: I tried to create the jar of a project on C drive I have these command with the error. Could someone help with the creation of the jar? [b][/b] [b]command[/b] f [code] C:\Program Files\Java\jdk1.6.0_11\bin>jar -cvmf [/code] [b]path to manifest.txt[/b] [code] C:\Users\depot\Documents\ceyesumma\java_cache\my_projects\guitar_master_project\target_guitar_master\guitar_master\guitar_master\build\classes\view myManifest.txt [/code] [b]intended gm.jar denied on c: and …

Member Avatar for NormR1
0
1K
Member Avatar for nunos

Hi everyone. I have an homework assignment due next week. Since I am not that knowledgeable in Java, there are many times I get stuck and find myself goggling for answers which sometimes I can't get that fast. Therefore, I would like to use this thread to post several quick …

0
88
Member Avatar for sokolovic

I've already posted similar question at [URL="http://www.coderanch.com/t/511249/GUI/java/handle-JFrame-minimize-restore"]JavaRanch[/URL] but didn't get the solution. Here is the issue: I need to detect CAPS LOCK state after minimizing and restoring frame. This is what I did: Run application CAPS LOCK is off Minimize, restore and get message "Caps lock off" Then I minimize …

0
29
Member Avatar for cooolpunit

i would like to write a program regarding the give character is vovel or consants but i am able to input the character can any one tell with full netbeans program including jTextField and all...........

Member Avatar for stultuske
0
83
Member Avatar for JoonShen

Hi guys, i need some ideas for my final project title. This is the area that I am given : Mobile Intelligent (Multi-)Agents, Distributed/Parallel Computing, Static/Dynamic Algorithm Analyser, Embedded Applications, Component-based Technology. Thanks

Member Avatar for stultuske
0
82

The End.