32,199 Topics
| |
hello every daniweb friend. i have a javascript code which check if a field is empty `onSubmit` it alert a error line 15 but i don't it to alert i want to tag this link to open this html link `<a href="#login-box" class="login-window">Login / Sign In</a>` and i don't have … | |
Hello good day. I have an idea for my program. I have a Table in my display. I want to add a Component to - let's say - the right of my screen. When I click this component it should display to me buttons and other components that I have … | |
Alright, so I am thinking about an idea of a useless application, however it is interesting me. A 3D "perspective" of color. I know, confusing. But think of it this way: Movement given an x, y, z coordinate. Color given r, b, g = x, y, z I was also … | |
ei can u please help me to do a program that accepts username and passaword using java JFrame... | |
Guys why is my image not loading on my JFrame?? BTW I am using eclipse on my mac. Code for Board : package ourgame; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Board extends JPanel implements ActionListener { Dude p; public Image img; Timer time; public Board() { p = … | |
I have an assignment for my cps class in which we have to create a program that will import a file from a server that has a bunch of numbers in it. The program is suppose to take those numbers, sort them, give the minimum and maximum value, average, median, … | |
dear all, I just want to know how can i open any jsp page of my project from swing button of jframe. Do i have to use URL class and its methods or i can directly pass localhost address and run it. please reply. Thank you. | |
| Hello, im trying to make a mulitple choice quiz in for android. Im a newbie at this and i am having some difficulites with the logic. As you can see what i have done below is create two arrays, questions and answers. The first option within each of arrays of … |
I had a technical interview last week for a Java Software Engineer position. They asked some pretty basic questions such as: 1) What's the difference between an abstract class and an interface? Which do you use more? 2) How does garbage collection work in Java? 3) What is the difference … | |
Dear all, I am making MS Access database connection with my java program. As i know that in Connection Following things are required: Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:DSNname","Username","password"); Now i have created System DSN in Odbc data connection and also i have attached database with that DSN. While creating DSN, … | |
Assignment is as follows: **Create a GUI-based program to accept name of donor, name of charity, and amount of pledge from the user. Display a list of entries in a JTextArea or JTable. Submit the .java source file or files for this program. Do not use any package statements in … | |
[code=Java] package newuser; import java.io.BufferedReader; import java.io.FileReader; public class Main implements ServerConstants { public static void main(String[] args) { BufferedReader lnr = null; String line = null; int N=1000; int totalRecords = 0; String [][] array = new String[N][]; try { lnr = new BufferedReader (new FileReader("LoginData.txt")); for (line = … | |
Hello guys would someone please help me fix my program. I have two classes the one is named GetValues and the other one is SampleReturn. The GetValues class has an error illegal start of expression in the line `public static String kuhaName()` . The code is below. GetValues class codes: … | |
I was tasked to make a program that took a string input, then reversed it using recursion. I'm getting a syntax error causing an exit code 1. Also, I'm sure there may be an error in the code as I'm not very strong with recursion. Any help with this (specifically … | |
Hello, I have to write a program that will solve polynomials by user input, my program compiles, but gets an exception error. Here is my code: import java.io.*; import java.util.Scanner; import java.util.LinkedList; public class PolynomialList { private Node first = new Node(0, 0); private Node last = first; private static … | |
An n x n matrix is a positive Markov matrix if all of its elements are positive and the values in each column sum to one. Write a program to check whether a 3 x 3 matrix is positive Markov. Your program should prompt the user to enter a 3 … | |
Hello! friends i am a beginner to java can someone tell me about the basics and its coding ,please. | |
I have a problem with creating UML diagrams. This is the first time. Here is the question below: ![95deb5f1a4dee1451aa7528c291781f8](/attachments/large/4/95deb5f1a4dee1451aa7528c291781f8.jpg "95deb5f1a4dee1451aa7528c291781f8") And here is my answer: ![22e4ba8767e9a4c011bd3c4e799e9c31](/attachments/large/4/22e4ba8767e9a4c011bd3c4e799e9c31.png "22e4ba8767e9a4c011bd3c4e799e9c31") Please check if there is anything wrong. | |
hello everyone. i have been attempting to make an if statement that calculates overtime hours for quite some time now and i cant seem to get it to work correctly. Is it possible to make this statement with 1 line? or am i missing somthing? this is what i thought … | |
I need code in java for creating b+ tree whose nodes contain file for implementing insertion,deletion and searching. please help me out | |
I want to make a pothole detection app for my final year degree project. Can i get the code from somewhere?? | |
I have two jPanel one contain three textField and the 2nd JPanel have doThis when I click the doButton the data grom the textField should be displaied I tired this but it didn't worked I made the three textField public static and then from the 2nd JPanle I did this … | |
I am trying to havea program give me the averages from the tests. If the number is over 100 it is to give me an excpetion code this is what i have thus far... having issues on line 36-38 and 40. any help would greatly appreciated. import java.lang.IllegalArgumentException; //declare and … | |
Hi! I'd like to create a simple table game by Swing. I have a JFrame and a JPanel variable. I want to add JButtons to this JPanel, but I'd like to create an own class. I made a class that extends JButton (inheritence): public class GameField extends JButton {...} So … | |
I am writing a java webservice which has two functions. One has to receive and save two string data and the other has to provide these two data.Suggest me what is the best to achieve this without using a db. I tried the below solution: I had a excel sheet … | |
Heya all, I'm working on a small 'file browser', where the list of files is printed in a console (for now), but where the user inserts the file's path in a GUI. My gui is rather simple: one frame and one panel containing a JTextField and a JButton. I want … | |
Ran across a blind spot in trying to figure this out. I want to pad a string with n characters to the left (at the beginning) of the String. This is the code I have come up with padRight and padLeft but when I go run the program it doesn't … | |
I've noticed when watching videos, usually people import everything. Such as `import javax.swing.*;`. So my question is, is it better to Import everything? Or only the things you need indiviually? I've heard it slows down your program if you import alot of things, is this true? | |
Hello, I am working on a project in Wireless sensor networks. I need to simulation output in Javis using JNS. This is done by creating a trace file in java under JNS then running it on JAVIS...but the thing is I am having the JNS folder downloaded from which i … | |
Hello, I am working on a project in Wireless sensor networks. I need simulation output in Javis using JNS. This is done by creating a trace file in java under JNS then running it on JAVIS...but the thing is I am having the JNS folder downloaded from which i extracted … |
The End.