32,204 Topics
| |
So this is the first time using a Spring Layout and I gotta say, it honestly seems like a very nice Layout to use, but I can't quite seem to get it working the way I want it to. Let me explain: I have a JList which should be inset … | |
I need a boolean to be stored with a String (or possibly a Path, not sure which one I want to use yet). I thought about using a Map, so I did some looking around and found out that LinkedHashMaps are the only type of Map that stay in Order … | |
Hi Dw. I have a question of how can one detect a program attempting execute/run and also most importantly how to allow/deny programs to execute/run. I'm sure we all have came across with UAC where it ask you to allow or deny that program from running, normally this for elevating … | |
i copied eclipse and its files of code into a new comp. i installed the latest version of java and went into eclipse. i ran the porgram and the code that worked just fine on my previous computer compiled but the applet was blank and it said "start: applet not … | |
public class Test { public static int f1( int m1 ) { return ( m1 + 1 ); } public static double f1( double m1 ) { return ( m1 * m1 ); } public static void main( String[] arg ) { double x1, x3; x1 = 2.0; x2 = … | |
I am little confused about @Repository in spring.does it define any class? suppose i've done @Repository("TryDao").. does it want to say class TryDao,i.e TryDao.java ??plz clear my confuse.. | |
this is a code for an input window that takes in data from users i tried to save whatever data the user put in in axml file but it is giving me errors...what is wrong with it...help /* * To change this license header, choose License Headers in Project Properties. … | |
I have followed all the tutorials, but still I have a problem that I can't get an object from a form to the controller using Spring MVC. What might be the case? I am using Thymeleaf to format my jsp pages. <!DOCTYPE HTML> <html xmlns:th="http://www.thymeleaf.org"> <head> <title>Getting Started: Handing Form … | |
Hello to all! I have learnt VB.net and used IDE Visual studio 2012. Know I have started learning java. But I have a confusion that can Java be used with .NET frame Work? If Yes then which IDE is required for this. As we know that for VB.Net, C#.Net and … | |
I have followed all the tutorials, but still I have a problem that I can't get an object from a form to the controller using Spring MVC. What might be the case? I am using Thymeleaf to format my jsp pages. <!DOCTYPE HTML> <html xmlns:th="http://www.thymeleaf.org"> <head> <title>Getting Started: Handing Form … | |
I am creating a couponing app where coupons are stored in a database and compared to local ads to let users know when to use the coupons. I have created a database that holds all of the coupons and also one for the user's personal library. I am having difficulty … | |
Hello, For some reason javac errors when I import any of the Apache-Spark classes. I've gone through a number of setup guides to see if there's some environment variable I'm missing, but most don't have a step where an environment variable is set. Anyone have a clue what I'm missing? … | |
Hi, I have to print the following pattern and I am having difficulty in figuring out how exactly should the looping work. The Following is the Pattern that I need * * * * * * * * * * * * * * * * * * * * … | |
import java.util.*; class occult { public static void main(String[] args){ int n = 2; for (int i = 0; ; i++){ if(Integer.toString(i).contains("666")){ if ( n == 1 ) System.out.println(i); n -= 1; } } } } I have written the above java code into c++ . i wanted to know … | |
i have a jtable calendar program and i want the user to be able to click on the dates and i wrote a mouse listener and added it to the jtable nut its not firing .....what should i do my deadline is tomorrow.... | |
i need to write a problem to store a information(Name,ID,GPA) about 10 students and print max gpa , min gpa by using array list | |
Hello Everyone, I am experiencing errors when trying to compile a project in Java 8. The errors are caused by swing components. The code I am using is the following: import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; public class Main2 { public Main2(){ JFrame f = new JFrame (); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setSize(100, … | |
Write a Javaâ„¢ application using NetBeansâ„¢ Integrated Development Environment (IDE) that calculates the total annual compensation of a salesperson. Consider the following factors: A salesperson will earn a fixed salary of 60,000 dollars. A salesperson will also receive a commission as a sales incentive. Commission is a percentage of the … | |
Hi i have an assigment that is giving me a hard time . I want to make a media player in java by using netbeans Can anyone give me an efficient way to do this assigment. please help me shoaib in java [Click Here](http://www.daniweb.com/software-development/java/9/contribute) | |
Is it possible to OCR an image using java? Any links to logic or examples or APIs would be appreciated. | |
I need to crearte pdf file from database table using java with multiple rows and column format design . | |
Hi , Can anyone point me to fillPolygon source code , In Graphics.java it is declared as abstract class . - Nataraja G | |
hi everyone system.out.println("thank you all for the birthday greeting!!!!!!!!! much appreciated.) hi james it has been quite a while. sorry that I had upset u the last time I was here. I am trying to build a payroll system for a community college in java. and the calculation is off. … | |
Hello guys, I'm trying to add an object called product into an ArrayList of orders. I'm getting an error: no suitable method found for add(Product). Did I miss anything? This is my addOrder method: public void addOrder(ArrayList<Order> orders, Product product){ orders.add(product); } I've passed the ArrayList of orders and the … | |
Square A square is a specific two-dimensional shape. Square should be implemented as a subclass of TwoDimensionalShape, a concrete class. A square has equal sides in both dimensions. This is how to create a square: public Square( int x, int y, int side ) /* use super constructor to set … | |
Could someone please look at my ose and let me know where I may be going wrong. The problem to solve is define a class Odometer that will be used to track fueland mileage for an automobile. The class should have member variables to track the miles driven and the … | |
Hello guys! I'm trying to call a method in main called "buyProduct" which displays all products to the user. I' a getting a NullPointerException though. Here's what I have: public static void main(String[] args) { OnlineShopping shop = new OnlineShopping(); ArrayList<Cart> carts = new ArrayList<Cart>(); ArrayList<Order> orders = new ArrayList<Order>(); … | |
i did a simple interface programme where one interface extends two interface.so,no error is showing,but no output is showing..here is the code.. interface a { int add(int x,int y); } interface b { int mul(int x,int y); } interface c extends a,b { int div(int x,int y); } class d … | |
I have a arraylist which i want to store in database.I am using preparedStatement so how can i pass my arraylist as parameter to store it in database. my code is: public void insertEnquiryRecord(StudentEnquiryEntity enquiryEntity) { // TODO Auto-generated method stub System.out.println(" hi from vivek.."); ConnectionFactory connectionFactory = null; connection=connectionFactory.getConnection(); … | |
Hello , When we do an XOR operation between two rectangles ( one is completly inside of the other ) output in GPC & Clipper is something like , exterior Rectangle + a Hole ( which is interior Rectangle ) for my application output has to be a set of … |
The End.