35,618 Topics

Member Avatar for
Member Avatar for ManojGahlot

I am newbie in this forum & I have one issue as follow... I have created website in jsp & servlet. now when i click on button to save data in the database then it takes some time to save the data so in that time I want to show …

0
43
Member Avatar for dennysimon

hello all is there available code to remove line numbers in front of each line of a text file thank you denny

Member Avatar for adarshcu
0
147
Member Avatar for ali11

First i create simple claculator.but now I am trying to change it to RPN calculator by using stack.Can some one help me((especially where to use pop method) because I don't know alot about stack.here is my codes so far. import java.util.Stack; import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import …

Member Avatar for ali11
0
138
Member Avatar for some00001

Hello, if i want the computer to guess a number between 1 - 100 i'll do in java [CODE] int min = 1; int max = 100; [/CODE] I have already create a random number for the computer. so the first random number the computer will choose is 49 as …

Member Avatar for DarkLightning7
0
89
Member Avatar for jet101

Hi guys, it's been a while since the last time I post here... I'm currently learning JPA right now for my J2SE project, I dont have problems doing CRUD on a single table, now I want to try to retrieve data on JOIN tables. example if I have 2 entities …

0
70
Member Avatar for ashsailesh

hey guys i am developing a game... in which when i press a button it has to change its color... so , i created button, used action listener to it... [CODE] if(ae.getActionCommand().equals("b1")) // here b1 is the button { b1.setBackground(Color.black); frame.invalidate(); frame.validate(); System.out.println("button b1 pressed...!!!"); } [/CODE] i also used …

Member Avatar for hfx642
0
182
Member Avatar for baseballer

I have this project that I'm working on for my class, but I'm getting stuck with infinite loops and I'm not really sure what's wrong. I'm supposed to assume that at time 0, the ball is at height 0 and the velocity is input by the user. After each second …

Member Avatar for hfx642
0
116
Member Avatar for .Tyler

Hey guys. I need help with a program I'm trying to write. I need to read scores from an ASCII file and display them. I also need to display an error message for any score that falls outside of the range of 0 to 100. And after doing that, I …

Member Avatar for JeffGrigg
0
101
Member Avatar for lbgladson

I have an assignment to create Random Shapes by creating a method randomShape that randomly generates objects implementing the Shape interface. This is what I have so far and don't know where to go from here. [code] import javax.swing.JFrame; public class RandomShapeViewer { public static void main(String[] args) { JFrame …

Member Avatar for JamesCherrill
0
158
Member Avatar for AngelAmi
Member Avatar for stultuske
0
89
Member Avatar for selma_ter

I use this part to make transparent the JFrame: [CODE] GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice gd = ge.getDefaultScreenDevice(); boolean opacity_supported = gd.isWindowTranslucencySupported(java.awt.GraphicsDevice.WindowTranslucency.TRANSLUCENT); if( !opacity_supported ) { System.out.println("Your platform does not support opacity."); } else { setOpacity((float) 0.85); }[/CODE] It works perfect on Windows. On the same machine I use also …

Member Avatar for woodenduck
0
176
Member Avatar for kelvin924
Member Avatar for elkowalski

i am trying to load images for an applet using imageicon but i found out that it doesnt work so i was wondering if there is other way to load em. by the way i am trying to load them in another class that is not the main one. this …

Member Avatar for NormR1
0
152
Member Avatar for torkolort

Hi, I have a school assignment where I need to check if one string is a substring in another string. However, we are not allowed to do any string-based comparison, we are only allowed to compare the ASCII values. So the way I do it now is to call the …

Member Avatar for JamesCherrill
0
169
Member Avatar for lbgladson

I have a problem to Modify the Coin class to have it implement the Comparable interface. The following code is not working correctly and I don't know why. [code] public class Coin implements Comparable<Object> { private double value; private String name; public Coin(double aValue, String aName) { value = aValue; …

Member Avatar for lbgladson
0
137
Member Avatar for geekman89

I want to make a class that takes a String and checks if that String is found in a .txt File. If it is found, I want to store the words following that String in a String array. Here is what I have until now: [CODE]import java.io.File; import java.util.Scanner; public …

Member Avatar for geekman89
0
108
Member Avatar for Pravinrasal
Member Avatar for JeffGrigg
0
166
Member Avatar for kothaisaravan

I have created a .NET windows based application in c#. Find the attached screenshot of my application. Java web service is already created and maintained. Now I want to send the values from windows application grid view to java web service. Is this possible? If so how? Am newbie to …

Member Avatar for thines01
0
215
Member Avatar for Pravinrasal

When I run my program following is my program: public class JasperReportsDemoApp { String reportSource = "c://report1.jrxml"; String reportDest = "c://HelloReportWorld.html"; public JasperReportsDemoApp() { Map<String, Object> params = new HashMap<String, Object>(); params.put("reportTitle", "Hello Report World"); // params.put("author", "Craig Conover"); // params.put("startDate", (new java.util.Date()).toString()); // params.put("reportTitle", "Hello Report World"); // params.put("author", …

0
113
Member Avatar for Pravinrasal

Hi ,all Can anyone tell me how to use jasper report with ireport tool for desktop applications I want to print the report for that i installed plugin in netbeans 7 after that i dont know how to use report help me pls...

Member Avatar for ardi_lucy
0
95
Member Avatar for somannitin

Hi All, I am relatively new to the world of webservers and java, so please pardon me for any mistakes i make in conveying my problem. THe problem is as following: we have a sunone webserver 1(abc.com), and there is a sun one webserver2(def.com) there is a jsp application in …

0
99
Member Avatar for dennysimon

hello all how to create JTextArea with border look like standard jTextField 's border ? thankyou denny

0
67
Member Avatar for lenyjose

I dont know nothing about Java. Which is the best tutorial site to learn java and how it is easily learn.

Member Avatar for adarshcu
0
134
Member Avatar for anand01

Hi all, I know " String ".trim is used to remove the blank spaces but when i use the following string compare its shows some strange result [CODE]if(" String ".trim() == "String") System.out.println("Equal"); else System.out.println("Not Equal"); [/CODE] It produces the result of not equal. How it produces the result like …

Member Avatar for anand01
0
140
Member Avatar for bowmaster

I have a project made with jsp on a apache tomcat server. I also have intalled wamp server package for the purpose of using a data base made with phpmyadmin. I was wondering if i could also use php pages im my project. I learned that a posible way would …

Member Avatar for bowmaster
0
252
Member Avatar for herstein

Hey guys, I'm trying to program which finds the closest value stored in a sorted array using binary search. In other words, it should read the middle array and then move to the middle of the half where this value should be (unless the closest value is in the middle …

Member Avatar for herstein
0
113
Member Avatar for swoshromp

What my problem is I don't know how do I set it up so that when the entire word has been guessed I can stop the game and tell the user they won or lost. I tried adding in another if statement after maxTries--; where it says if (maxTries == …

Member Avatar for JeffGrigg
0
254
Member Avatar for DoubleGee

Hi guys, I'm new to Java and was wondering if you could help with one little problem with my code. [CODE]System.out.print("Enter title: "); String title = keyboard.next(); if (title.equals("Mrs") || title.equals("Miss") || title.equals("Mr") || title.equals("Ms")) { title = title; } else { System.out.println("Enter a valid title"); }[/CODE] If the title …

Member Avatar for thines01
0
233
Member Avatar for dennysimon

hello all I just learned about addActionListener there are many example about TextField.addActionListener for one TextField only ,but if there are more than one TextField,and all of them have been given Action Listener ,how to differentciate ,from which TextField the Event is come from ? Where can I find example …

Member Avatar for NormR1
0
86
Member Avatar for BuhRock

So I have to implement a checkout line using a priority queue. I'm really stuck. I have 3 classes, a Register class, Store class, and customer class. Each customer has a service time which is the time it takes to check out. There are ten registers. Reach register has a …

Member Avatar for BuhRock
0
152

The End.