35,618 Topics
![]() | |
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. … | |
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 … | |
Hello guys, I have built another small GUI:  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 … | |
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, … | |
| |
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 … | |
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 … | |
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⦠… | |
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. * … | |
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 … | |
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 = … | |
i need help on rsa encryption and decryption using digital signatures on text files only | |
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 … | |
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 … | |
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 … | |
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" … | |
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 … | |
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 … | |
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 … | |
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 … | |
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; | |
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 … | |
Hello... everyone... I would like to get a small project for java. Help Me... | |
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 … | |
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.. … | |
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(); } | |
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 … | |
How can i get an users input in the format of `/home/filedirectory` and then list all the files in the path /home/filedirectory?? | |
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 … |
The End.