32,204 Topics
| |
I have acode review checklist which I would like to automate, Could anyone suggest me how i could get started with this. I would like to create a tool which takes in java extensions and reviews based on custom review check. Would this be time consuming?? any insights on how … | |
Hi Everyone. I Really Need Urgent Help To Create A Paint Application In Java Using Applets Or The Swing. Its Really Urgent. I Have Been Trying To Code This For Like Week Now And I Am Just Left With Five Days To Submit It. Thsi Application Should Be Able To … | |
Hi recently while trying to solve a core Java algorithm question I got trapped into a problem. Let me explain the puzzle. > There is a series of numbers. where difference between any consecutive > numbers is either a or b. The 1st number of the series is 0. Our … | |
I need help with my constructor that should call for all the user inputs, for example their first name, and the information gets checked to make sure it's valid. For example the name is all letters, and the identifier is actually 9 digits, etc. I can set the default constructor, … | |
hello to all..., i am working on a project and there i am facing a problem of adding pictures to a label.In my project its like that.. i have a textfield ,a button and a label. When i write the file name in the textfield and then after clicking on … | |
Can anyone help me to write java program? I'm using BlueJ for this assignment. This assignment is to write a program to calculate loan repayments. Banks and/or finance companies loan customers money (usually called a mortgage) so they can make large purchases (such as a house or a car). Each … | |
import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.JFrame; import javax.swing.SwingUtilities; import javax.swing.Timer; @SuppressWarnings("serial") public class OnClickLesson extends JFrame { private int value = 0, clicked = 0, countdown = 1; private Timer timer = new Timer(1000, null); public OnClickLesson() { timer = new Timer(1000, new countDownTimer()); addMouseListener(new MouseAdapter() … | |
Hello below is my code for a program that reads in integers rom keyboard input and creates two polynomials from that input and then does some maths functions on them. I've got the addition working, having trouble with the multiplication though. Any help would be appreciated. thanks import java.util.*; import … | |
Apparently JavaFX is getting really into the game now as far as I see and I think its time I start getting to know it .. Just read a couple of articles and a few questions came up in my mind: - Do I need to use IDE (eclipse) for … | |
Hi i just export my project on ubuntu and when i run from terminal i have this error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver and in my project the mysql connector is located in the desktop.. any solution please | |
I was practising the past year question just now. I wanted the program to show this: > Continent name: Australia > Number of Countries: 1 > Country name: Australia > Population: 22118256 But my code makes the program to show the first 2 lines. package jan2012q5b; import java.util.*; class Continent … | |
I was doing the code as part of my lab tutorial. When I tried running the code, it doesn't work. Line 68 has an error. Can help? package t10; import java.util.*; class Employee { private String name; private String title; public void setName(String n) { name = n; } public … | |
Hi every one, Can any one tell me the major difference between JAVA and C++... | |
I have been looking for a solution to isolate markings and have not found anything on the internet that is close to for what I am looking. I am trying to isolate the markings in a series of pictures. I have one, unmarked image. I then have a series of … | |
Hi, My name is Micky. I have requirement, but i don't know how to start it, could anyone help me out. here is the requirement. In a class there are 10 Students with name , marks , Percentage and there rank should be in the below format Name Marks Percentage … | |
Hey guys im completely new to programming and im complete stuck and any help to comlete my assingment would be greatly appreciated. heres my assingment. Your task for this assignment is to define multiple classes via inheritance. Your classes should implement various "snacks" including "M&Ms", "Popcorn", etc. To begin, create … | |
After trying different things for about a week i have come to the conclusion i am lost. Can someone please show me how to do this. This assignment, based on Vending Machine we did in class, you are to now vend six different snacks. The Vending Machine has a capacity … | |
import java.io.*; class WriteFile { public static void main(String ss[]) { try { FileWriter fw=new FileWriter("output.txt"); PrintWriter pw=new PrintWriter(fw); String s1="Hello World"; String s2="I Am Learning Java"; pw.println(s1); pw.println(s2); pw.flush(); pw.close(); fw.close(); } catch(IOException e) { System.out.println(e); } } } in upper code println() is called with object of `PrintWriter` … | |
| |
I have this big problem with my code, here it is: https://www.dropbox.com/s/2lc6iygbx2gwlqj/Screenshot%202014-07-19%2011.24.20.png here is my ERROR: Exception in thread "Thread-0" java.lang.IllegalArgumentException: input == null! at javax.imageio.ImageIO.read(ImageIO.java:1348) at ca.gingerninja.game.gfx.SpriteSheet.<init>(SpriteSheet.java:19) at ca.gingerninja.game.Game.Screen(Game.java:55) at ca.gingerninja.game.Game.run(Game.java:78) at java.lang.Thread.run(Thread.java:745) Can someone please help, I would really like to continue with my game! | |
I am honestly baffled that there is almost NO help for anyone using JavaFX. For those of you who know Java like the Face on a clock, I encourage you to take some time to learn Java FX. The beginners need people like you. | |
Hi, I am using Java, Libgdx, box2d I main class I have created a body and I set player x and y position to 50. // main class public class main{ ... private void createPlayer() { BodyDef bdef = new BodyDef(); Body body; FixtureDef fdef = new FixtureDef(); PolygonShape shape … | |
hi all, I wanted to build a small and easy interface where I have some text and two buttons, one to increase the size of the text and one to decrease it. I haven't built anything as yet, I am still thinking what's the best way to go. In terms … | |
Exception message is not showing import java.util.*; class WrongException extends Exception{ public WrongException(String s){ super(s); } } public class UserDefinedException2{ public static void main(String s[]){ int a,b; a=b=0; Scanner ob=new Scanner(System.in); System.out.print("Enter your age = "); a=ob.nextInt(); try { if(a<=0) throw new WrongException("age cannot be zero or nagetive"); System.out.print("age = … | |
I have a method that sets the width and height of the treeview to its parent's width and height, for some reason this isn't working. I had it working with a listview, but I decided a treeview would work best in my case. Ill supply the full FXML, and it's … | |
How would you "lock" the position of a SplitPane Divider in JFX? I've tried google-ing around, and all I can find is ways to make it Transparent, which I believe would still make it movable... Any Ideas? | |
I cannot get the JFrame to display my JPanel. Either that, or my JPanel isn't displaying my JScrollPane. Here's my code: public class PokeBase extends JFrame { private static final long serialVersionUID = 1L; private static final int WIDTH = 1280; private static final int HEIGHT = 720; public static … | |
Hi All, I need some help with analysing a problem. I have a list of objects that are retreived as part of search results in my webapp page. From the list of these objects, one object is selected and the next screen is populated with the data from this object. … | |
I want to know if I would be able to replace different words all in one regex expression. For example if I wanted to replace the name John with Joe and Smith with Doe. Would I be able to do that with one expression? Here is a code that I … | |
Quite rare to see me post in the Java forum but have been picking it up as part of a long-distance university course I am doing. I am currently trying to read in an ASCII coded .txt file and output it but am seeing some funny characters showing up. The … |
The End.