32,199 Topics

Member Avatar for
Member Avatar for Adrienne_1
Member Avatar for Phantess

I'm using JavaFX 8. Right now I keep getting a NullPointerException for my tables. I have initalized the data and it appears when I click on the button to bring it up. However, when I try to search or delete something from the table it keeps giving me the exception. …

Member Avatar for JamesCherrill
0
1K
Member Avatar for meili100

Is this book, <JAVA in a netshell> 4th ed, a good book? [url]http://www.amazon.com/Java-Nutshell-Fourth-David-Flanagan/dp/0596002831/[/url] Has anybody read it? I am a C++ programmer and just want to quickly get started with java for simple JAVA programming. Because I don't have time to read <Thinking in JAVA> at this moment, I just …

Member Avatar for jwenting
0
494
Member Avatar for GURPREET_6

class space { public static void main(String args[]) { int i; for(i=0;i<5;i++) { System.out.print("*"); System.out.print("_"); } } for(i=0;i<5;i++) { System.out.println("*"); } }

Member Avatar for Joris Claassen
0
401
Member Avatar for musa B

I'm a master's student preparing for my master thesis I'm interrsting to be software engineer I need help for topics that will reflect my dream goal as software engineer although my supervisor gave my task to write proposal in natural language processing I dont know if is a good area …

Member Avatar for Reverend Jim
0
405
Member Avatar for ItsAmi

Help- super stumped on my loop... I need to create a loop so the amount that you input for example 5 students inputted, will corrospond to a grade. I have done the code, I just don't understand how I can get the input to corrospond to the grades. Here is …

Member Avatar for ItsAmi
0
898
Member Avatar for Meghan_1

So I have the following code contained within a class labeled book. public void setPublication(int bookVersion, String bookISBN, double bookPrice) { bookVersion = pub.setVersion(bookVersion); bookISBN = pub.setISBN(bookISBN); bookPrice = pub.setPrice(bookPrice); It refers to the following class, called publication. //Getter method to get the book ISBN public String getISBN(String bookISBN){ return …

Member Avatar for JamesCherrill
0
766
Member Avatar for Curious Gorge

Hey so I am trying to finish up a lab that I did not finish during a class this summer. The goal is to have the computer navigate an ASCII maze on its own. We use left/right hand rule to find our way through the maze. IE. you have your …

Member Avatar for JamesCherrill
0
656
Member Avatar for John_165

I have multiple JSpinner which have items 1-10 , and one JTable. When the JSpinner is clicked, the value will be added to JTable. I want to get the row number so I can use it at setValueAt. But I get error when the JSpinner clicked more than once times. …

Member Avatar for JamesCherrill
0
1K
Member Avatar for patk570

Hey everyone, I got bored one day and created this little jem. There are no issues with it, but it may help somone out later on down the road if they have a simple project that needs to be completed. Everything is on one pages and includes elements …

Member Avatar for patk570
2
3K
Member Avatar for RAHEEL_3

Hi everyone, How to select already drawn **single or multiple shapes** . I want to select shapes when i draw rectangle around it and when i click on blank area it deletects it. I need selection for copy, pase, move and delete operation. I don't know where to start to …

Member Avatar for JamesCherrill
0
512
Member Avatar for abdu_4

Hi I'm trying to make a website. But I need to make a syntax highlighting program that Categorize commands based on what they do. For example, when i type a code in C/C++ or Java on my site, the colors will become highlighted instantly. One group would be I/O, another …

Member Avatar for pty
0
343
Member Avatar for moaz.amin.37

hello friends i have a problem with javafx AnchorPane. I have an anchorpane that contains a button i want to set the height and width of anchorpane to zero but it no apply. how to do this .... actually i am working on a sliding panel

Member Avatar for rproffitt
0
370
Member Avatar for skitband

/** * Help me to solve this one * * The input for input dialog should appear at right textfield * * ex. your firstname? >>> john * john should appear at the textfield label firstname */ import java.applet.*; import java.awt.*; import java.awt.event.*; import javax.swing.JOptionPane; public class Info extends Applet …

Member Avatar for JamesCherrill
0
555
Member Avatar for RAHEEL_3

Hi there, I want to implement undo logic which deletes the last drawn shape. To test this logic i had cleared shapes list and redrawn all shapes but still **last** shape does not delete. public void drawAllShapes(Graphics2D g) { //draw all triangles for (DrawTriangle t : newTriangles) { t.drawTriangle(g); } …

Member Avatar for JamesCherrill
0
1K
Member Avatar for RAHEEL_3

Hello eveyone, Please tell me why triangle shape is redrawing on mouse move. It want triangle shape draw only once until mouse release. Here is my code below. Thank you ! public class Triangle extends JFrame { Point startDrag, endDrag, midPoint; private java.util.List<Polygon> triangles = new LinkedList<Polygon>(); Polygon triangle; public …

Member Avatar for RAHEEL_3
0
849
Member Avatar for RAHEEL_3

Hi there, I want to draw a triangle using mouse events like mousePressed(), mouseReleased() and mouseDragged(). But triangle did not show until mouse release. Please tell me what i am doing wrong that triangle is not showing in mouseDrag event. And one thing more, triangle is drawing upside down. Please …

Member Avatar for RAHEEL_3
0
1K
Member Avatar for Gablin

import java.util.*; public class MainClass { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here Products p1 = new Products(100,"Genius Keyboard",450.50,10); Products p2 = new Products(200,"Genius Mouse",480.00,10); Products p3 = new Products(300,"Monitor",5000.00,50); ArrayList<Products> list = new ArrayList<Products>(); list.add(p1); …

Member Avatar for JamesCherrill
0
168
Member Avatar for Ryan_26

I am trying to create an HTML form which displays text from a text file, using a Java Servlet. I keep getting the following error: Error instantiating servlet class servlets.ReportServlet. Here is the HTML page: <html> <head> <title>TODO supply a title</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <form …

Member Avatar for Subraa_1
0
1K
Member Avatar for Ryan_26

I am trying to create an HTML form which displays text from a text file, using a Java Servlet. I keep getting the following error: Error instantiating servlet class servlets.ReportServlet. Here is the HTML page: <html> <head> <title>TODO supply a title</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <form …

Member Avatar for jwenting
0
1K
Member Avatar for pratik_6

Hey guys, I am having trouble with keypress event for a button that I have. This button is programmed to do logoff operation. Now what i want is the solution or sample program in which if user is scanning the barcode of logoff then logoff event should occur.Please suggest solution …

Member Avatar for rproffitt
0
331
Member Avatar for Ankur_8
Member Avatar for diafol
0
874
Member Avatar for catastrophe2

hi So i made a simple game app, and am implementing music now i have easy and hard mode, and game over, as well as home screen homesecreen now plays music1, loops fine and all...then once player selects to play i want to stop the current music1, and start music …

Member Avatar for Kubilay Doğukan
0
327
Member Avatar for Saboor880

Hello! I am developing a POS System. I have need to print Sales receipt. I have no physical printer to test my printing but i have print on xps document. I am facing a problem with indentation of my data on Sales receipt. Following is the code which i wrote …

Member Avatar for rproffitt
0
2K
Member Avatar for John_165

In my Food Tab, I wanted to achieve this [Click Here](https://sfault-image.b0.upaiyun.com/358/064/3580648794-597611aa1f701) But I only able to get this [Click Here](https://sfault-image.b0.upaiyun.com/779/111/779111227-5976120f6955a) How can I increase the width of the JTextField which are in Food Tab ? Below is my code public class FoodOrdering { static private JFrame frame; static private JTextField …

Member Avatar for JamesCherrill
0
910
Member Avatar for Jayanthi_1
Member Avatar for Navnath999

I want to crop an image manually using the mouse. Suppose the image has some text, and I want to select some text from an image, then for that purpose I want to crop that area by using the mouse.

Member Avatar for Sri_6
0
4K
Member Avatar for itian.kongu

Hi all few free tutorial sites for beginners are given below. C PROGRAMMING http://learnermode.com/c-tutorial/ C++ pROGRAMMING http://cplusplus.com Java https://docs.oracle.com/javase/tutorial/ C# https://msdn.microsoft.com/en-us/library/aa288436(v=vs.71).aspx Python https://www.tutorialspoint.com/python/ Java Applets http://learnermode.com/java-tutorial/applets/

Member Avatar for cahendi
2
389
Member Avatar for Talha_11
Member Avatar for sathish kumar_1
0
241
Member Avatar for tarun_6

Can anyone guide me to find a way to convert swing application to Android app. If we just create the gui using xml is it enough to take the working code from the previous swing application to run on Android

Member Avatar for tarun_6
0
2K

The End.