31,001 Topics
|
|
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 … |
|
Hi Team, This is my first Spring Code . I just followed the code provided in the book and tried to run the class , but it throws the below error. Please throw light on it. package spring.hello; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.xml.XmlBeanFactory; import org.springframework.core.io.FileSystemResource; public class Main{ public static void … |
|
|
Hi guys, I need to create a web application in my job using Java, so i started using Netbeans 7.4, and started a new project. Im trying to develop a web application that will be hosted in a server, so i selected Web Application from the Java Web folder. Is … |
Hi All, I have just completed studying Core Java and started to learn Spring Framework. I think its a silly question but still Im confused about this. Can i build a Dyanamic webpage / website using Spring Framework ? |
|
i have intalled jdk 7 update 51 and netbeans 7.0 .for the first time it works fine but later IDE netbeans does not start at all and dialogue box comes that JVM creation failed...kindly help |
|
if (cmd[0].equals("sz")) { if (player.isLocked() || player.getControlerManager().getControler() != null) { player.getPackets().sendGameMessage("You cannot tele anywhere from here."); return true;} { player.setNextWorldTile(new WorldTile(2667, 10396, 0)); return true;} } } } my error is closing the file. thats my problem i always get the error when i try to end the statement and … |
|
Hello, Thank you for the time! a) I have a Ball Object which implements the Runnable interface and traces the various positions of a ball. b) I then have a Ball_Bounce JPanel inside a JFrame which creates two instances of the Ball object and then paints them to the JPanel. … |
|
I would like to know what means Java Web UI with html5 knowledge,flex,javascript,css? Do you have to use plain jsp jsf servlet and then use a MVC pattern? If so the views are made with html5 flex? If anyone knows more about this please explain it to me because I … |
|
If anyone needs any help with the projects in the BluePelicanJava book. I am available to help with coding issues. |
|
I have figured out how to do this. All that is needed is the .useDelimeter error. help? `import java.io.*;` `import java.util.*;` `public class AddEmUp `{` `public static void main(String args[]) `{` `Scanner sc = new Scanner(System.in); `System.out.print("Enter something like 8 + 33 + 1,345 - 137 : "); `String s … |
|
So I'm trying to figure out why my get method doesn't pass its test. This is my attempt at the get method: public Value get(Object key) { //Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key. for (Pair<Key,Value> … |
|
could anyone please tell me what's the difference between getApplicationContext() and MyActivity.this.."MyActivity" being a class that extends Activity class..somethimes getApplicationContext() doesn't work and I need to use MyActivity.this when the constructur asks for a context... for example, if i use `ProgressDialog p=new ProgressDialog(getApplicationContext());` it gives an error however, if i … |
|
Dear All, In Java Swing, for all components there is a setSize method which takes int height and width as arguments. And we will pass parameters like 600,500 & 400,300 etc... My doubt is what is the unit of these height and width . I mean on what unit, the … |
|
I've created new JPanel from Swing GUI form called myNewPanel and I have one button in my JFrame it called btnClickMe when the button is clicked I want the panel in the Jframe to be removed and replaced by myNewPanel I've tried my code but it not working for me … |
|
Hi I just started learning on making gui on Java. I watched some youtube videos and i realise one of the them uses DefaultTableModel. At first i thought it was to allow access to the function of the table but i realise i can directly write and get value from … |
|
I having major issues trying to make a GUI for this program. How do I connect my program to my GUI? I don't get it?Can someone help me with this? I also can't get result to read on my GUI. ![e23b489d81b74c698e1f29a66ca236f6](/attachments/large/4/e23b489d81b74c698e1f29a66ca236f6.PNG "e23b489d81b74c698e1f29a66ca236f6") /* * To change this license header, choose … |
|
Hi, I have been trying to get my program to run for a few days now. I have gotten it almost completed I think, but keep getting "error: variable checkFee might not have been initialized" on line 37. import java.util.Scanner; // scanner class public class PROB3_CHAL15 { public static void … |
|
I'm packaging my java program as a jar..it includes mysql-connector.jar..it runs fine when i run it in eclipse..now i need to distriute the jar file..I packaged the jar file and when I run it through command line using java -jar myprogram.jar, it throws ClassNotFoundException: com.mysql.jdbc.Driver could anyone please tell me … |
The End.