31,001 Topics

Member Avatar for
Member Avatar for shroomiin

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 …

Member Avatar for cmackbrown
0
951
Member Avatar for harshi22

I need code in java for creating b+ tree whose nodes contain file for implementing insertion,deletion and searching. please help me out

Member Avatar for rubberman
0
136
Member Avatar for Ankit_8

I want to make a pothole detection app for my final year degree project. Can i get the code from somewhere??

Member Avatar for rubberman
0
198
Member Avatar for sk8ergirl

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 …

Member Avatar for sk8ergirl
0
137
Member Avatar for pekemp23

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 …

Member Avatar for stultuske
0
417
Member Avatar for Tomi1988

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 …

Member Avatar for JamesCherrill
0
168
Member Avatar for shiv_0013

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 …

0
125
Member Avatar for phoenix_2000

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 …

Member Avatar for phoenix_2000
0
265
Member Avatar for dlmagers

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 …

Member Avatar for JamesCherrill
0
190
Member Avatar for Doogledude123

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?

Member Avatar for jwenting
0
253
Member Avatar for arunkishorres

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 …

0
92
Member Avatar for arunkishorres

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 …

0
96
Member Avatar for murali2489

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 …

0
186
Member Avatar for Arturo32

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 …

Member Avatar for Arturo32
0
356
Member Avatar for murali2489

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 ?

Member Avatar for murali2489
0
95
Member Avatar for Builder_1

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

Member Avatar for Builder_1
0
226
Member Avatar for james.young.5015

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 …

Member Avatar for rubberman
0
128
Member Avatar for sciprog22

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. …

Member Avatar for sciprog22
0
190
Member Avatar for dany12

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 …

Member Avatar for stultuske
0
331
Member Avatar for ZaneDarklace

If anyone needs any help with the projects in the BluePelicanJava book. I am available to help with coding issues.

Member Avatar for stultuske
0
77
Member Avatar for ZaneDarklace

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 …

Member Avatar for ZaneDarklace
0
1K
Member Avatar for munchlaxxx

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> …

Member Avatar for JamesCherrill
0
323
Member Avatar for cool_zephyr

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 …

Member Avatar for cool_zephyr
0
371
Member Avatar for murali2489

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 …

Member Avatar for murali2489
0
5K
Member Avatar for sk8ergirl

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 …

Member Avatar for stultuske
0
100
Member Avatar for cleve23

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 …

Member Avatar for cleve23
0
236
Member Avatar for obspsalm22

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 …

Member Avatar for cgeier
0
334
Member Avatar for hodnee

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 …

Member Avatar for scudzilla
0
248
Member Avatar for ifeanyiben
Member Avatar for cool_zephyr

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 …

Member Avatar for cool_zephyr
0
343

The End.