35,618 Topics

Member Avatar for
Member Avatar for StephenopolousINC

Hello everyone, I am doing an assignment that requires me to create an application that manages a student records database. They gave me the option to use a GUI or console application so I am making it a console app. The task requires that we use the abstract class pattern. …

Member Avatar for StephenopolousINC
0
281
Member Avatar for deolalkar_pooja

Hello to all, I have following simple Applet program. import java.applet.*; import java.awt.*; public class myapp1 extends Applet { Label l1, l2, l3, l4; TextField t1; TextArea t2; Checkbox c1,c2,c3,c4,c5,c6; CheckboxGroup cg; Button b; public void init() { l1=new Label("Enter your name: ", Label.RIGHT); t1=new TextField(20); l4= new Label("Enter your …

Member Avatar for deolalkar_pooja
0
252
Member Avatar for Violet_82

Hello guys, I have built another small GUI: ![c91be0d75e981f9b7ed81b89898a1722](/attachments/large/2/c91be0d75e981f9b7ed81b89898a1722.png "c91be0d75e981f9b7ed81b89898a1722") Even before knowing whether the layout of the application I have built is right, I am facing another big problem. At compiling time I get the following error: Note: Dropdown.java uses unchecked or unsafe operation Note: Recompile with -Xlint:unchecked for …

Member Avatar for Violet_82
0
939
Member Avatar for faizlo

Hi all I am currently learning Java (and Fortran!) on my own. I have written the following code but for some reason it does not work as it should import javax.swing.JOptionPane; class evenOdd { public static void main(String[] args) { String number, ans; int num; do { number = JOptionPane.showInputDialog(null, …

Member Avatar for JamesCherrill
0
210
Member Avatar for ram_6
Member Avatar for sk8ergirl

I have person class with id , first name and last name I have get and set methods in main I wrote this when I try to search for something in array list I always use .equal when I tried .equal without the ! it give me nothing , but …

Member Avatar for stultuske
0
137
Member Avatar for Derek_4

I am working on a project in BlueJ which I have to add an "Event Post" to a simple social network project. I have created the project but I am unsure how to take a string, such as "message", from a subclass of the Class Post and print it the …

Member Avatar for Phaelax
0
225
Member Avatar for Violet_82

Hello guys, I hope you can help me with this. I have read a bit about GUI and now I am trying to do a few exercises to consolidate what I have read. In the first exercise I have to reproduce a simple GUI. Well I thought it was simple… …

Member Avatar for Phaelax
0
463
Member Avatar for gil.nickson

This code is working but i want my added words to show in vertical because its output is shown in horizontal if two or more words is inserted. Can you help me to improve my program? Here are the codes... /** * Write a description of class Stacks here. * …

Member Avatar for Phaelax
-1
260
Member Avatar for narlapavan

I want rich textbox control in java in nebeans, where i can able to paste content from documents. Here content means not only plain data but also tables from ms-word documents. I tried above feature using "jeditorpane" but i am unable to retain table structure. please suggest me how to …

Member Avatar for Phaelax
0
372
Member Avatar for alansoeric

hey i need help once i run it will proceed to next one it will show error message package test1; import javax.swing.JOptionPane; public class Test1 { public static void main(String[] args) { int counter; int counter1=0; int counter2=0; int counter3=0; int counter4=0; JOptionPane.showMessageDialog(null,"Welcome"); for(counter=0;counter<20;) { int num1; String firstinput = …

Member Avatar for stultuske
0
192
Member Avatar for ifybest

i need help on rsa encryption and decryption using digital signatures on text files only

Member Avatar for stultuske
0
56
Member Avatar for sk8ergirl

I have jList and DB the DB have first name , last name , id and email the jList will only display the first name , last name and id what I'm trying to do is when the user select item in the jList the email will appear in the …

Member Avatar for stultuske
0
383
Member Avatar for pspwxp fan

Hi, sorry for posting a second thread for the same project but as far as i can tell, the issue is completely different. My Netbeans project seems to be working with a "cache" of a certain class. It seems like this because I commented out all the code in that …

Member Avatar for pspwxp fan
0
264
Member Avatar for ZixCo

I'm making a messenger app and I need to know how to set up connections so that somebody could send messages to other via WI-FI.I googled a little and I find something at this page [Click Here](https://code.google.com/p/simple-android-instant-messaging-application/source/browse/trunk/src/com/mekya/communication/SocketOperator.java)but I don't understand it.Here is my main class/StartingPoint (all my code is just …

Member Avatar for cool_zephyr
0
400
Member Avatar for DamianFox

I'm doing an application in which I have to show a sequence of pictures: The sequence is the follow: A red X has to be shown for more or less 400 milliseconds; An image called "Screenshot" has to be shown for more or less 500 milliseconds; An image called "Noise" …

Member Avatar for DamianFox
0
2K
Member Avatar for Derek_4

I am working on a basic classified ad system that when used prompts the user with several questions. The user input answering those questions is then printed out when the user enters a show command. I am trying to figure out a way to store the previous input while still …

Member Avatar for Derek_4
0
294
Member Avatar for Dinesh_9

I am supposed to complete an java assignment which satisfies the following constraints 1)read an .html file which is given as input(This is not an weburl) just an file stored in hard-disk 2)Count the occurences of all the tags which are present in the html file but it must exclude …

Member Avatar for Dinesh_9
0
699
Member Avatar for aanders5

Hello, so I am trying to get a Netbeans application on the web, specifically in this location here: http://hellojar.elementfx.com/FunGame/index.html As you can see it loads, but then crashes as it cannot find "main". (my attempt at trying to find the right run location of my Main) Here is my HTML …

0
162
Member Avatar for dosedt

Write an application that finds the total and average of odd numbers from 1 to 15. Your program must use a counted loop to accomplish this task. So far all I have is > public class OddLoop { public static void main(String[] args) { { int total = 1; for …

Member Avatar for aanders5
0
179
Member Avatar for YumnaZia

I have tried every possible way of connecting the database to the program, but its just not happening! Help me please :( final static String fileName ="Netlync.mdb"; static{ try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String url = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ="+fileName; con = DriverManager.getConnection(url,"",""); }catch(Exception exx){ exx.printStackTrace(); }} private static Connection con;

Member Avatar for JamesCherrill
0
331
Member Avatar for aszhhtzz

Hey guys.. i am currently doing my java assignment can i dont get how to do this question. A) Using the for statement, write a Java program that reads 10 integer values from the user and prints the highest value entered. B) Using a relevant conditional loop, write a Java …

Member Avatar for Muni123
0
222
Member Avatar for Cherry Oo

Hello... everyone... I would like to get a small project for java. Help Me...

Member Avatar for peter_budo
0
53
Member Avatar for Anushree_1
Member Avatar for tingwong

Hello everyone, this is my first help post on daniweb so please excuse me if I have done something wrong. So as for my question, I have to shuffle an array of card objects. This is the code I have come up with so far. public void shuffleDeck(){ Random seed …

Member Avatar for cael13
0
1K
Member Avatar for asaidi

Hi just starting learning java .. is there drop and drag for objects in java like visual basic without importing a lot of modules and write a big code to show a window.. writing program for consol it is very good but gui a lot of code for small result.. …

Member Avatar for JamesCherrill
0
149
Member Avatar for ccyg

the codes running ok on NetBeans, and wih the error messages while I am running the jar file. Any helps with the following code would be very appreciated. Scanner file = null; while(file.hasNext()){ if (file.hasNextInt()) list.add(file.nextInt()); else file.next(); }

Member Avatar for hrishi_1
0
274
Member Avatar for XTMercenary

I'm currently creating a Java program in swing for my final year project simliar to something you'd find on codeacademy etc. i'm trying to compare the user input for example "System.outprintln(helloworld");" with a string of the stored answer for the question in this case the answer would be "System.outprintln(helloworld");" i've …

Member Avatar for JamesCherrill
0
149
Member Avatar for Dinesh_9

How can i get an users input in the format of `/home/filedirectory` and then list all the files in the path /home/filedirectory??

Member Avatar for JamesCherrill
0
226
Member Avatar for Ritesh_4

Hello I have a Java Agent which I need to maintain (dev was done by someone else), with the following code samples extracted: String type = (String) types.nextElement(); DemByDate dd = (DemByDate) client.typeDemande.get(type); Vector v = (Vector) dd.demandes; Calendar calendar = Calendar.getInstance(); calendar.set(dd.d2.getYear(), dd.d2.getMonth(), dd.d2.getDate()); int maxDay = calendar.getActualMaximum(Calendar.DAY_OF_MONTH); dd.d2 …

Member Avatar for Ritesh_4
0
3K

The End.