32,199 Topics

Member Avatar for
Member Avatar for roshnal

I know j2se a good deal. i also know MySQL, Jasper reporting, Log4j. I'm currently searching for a not-too-hard and not-too-easy software to make. I've currently made a address book and a library management system and i don't want to make games. So can someone PLEASE help me?

Member Avatar for Salem
0
145
Member Avatar for dasatti

The scenerio is that I have different type of drawing components on drawing area. In menu I have some combo boxes which apply different properties on these objects. and also add a new UndoableEdit to the UndoManager. Anybody worked with the swing's undo package will get the idea. This way …

Member Avatar for designpattern
0
148
Member Avatar for rp_prasanna

i have a Struts jsp which creates a textbox dynamically using javascript. function addRow_msgField() { var id =0; var table = document.getElementById("msgfield"); var id = table.rows.length-1; var newRow = document.all("msgfield").insertRow(); var oCell = newRow.insertCell(); oCell.innerHTML = "<input type='text' name=alertFieldName"+id+" class='textBoxStyle' size='12' maxlength='50'/>"; oCell.style.verticalAlign = "top"; id++; } My table design …

Member Avatar for mamatachaudhari
0
109
Member Avatar for charliesindex

I decided to develop a java applet to transfer files to a ftp server. I have no java experience but using stuff from the web and using NetBeans IDE for development, I came resonably close. Here is the code I used. /* * To change this template, choose Tools | …

0
48
Member Avatar for ganesh.guddu

Hi all, I have two Java Classes as follows : [CODE]public class A { public int a =5; }[/CODE] and -- [CODE]public class B { public static void main(String[] args) { System.out.println(new A().a); } } [/CODE] Now i want to generate a log file (when the execution of main() method …

Member Avatar for ganesh.guddu
0
79
Member Avatar for nomemory

Hello, I am a python newbie and I am trying to accommodate to the basics. What's the python equivalent for the following Java snippet ? [B]Java:[/B] [CODE]public class Main { public static void main(String args[]){ int a,b,c; a= (int) (Math.random()*100); c=0; while((b=(int)(Math.random()*100))!=a){ c+=1; } System.out.println(c); } }[/CODE] I was trying …

Member Avatar for woooee
1
215
Member Avatar for MxDev

Hi guys, Visual studio contains alot of controls which facilitate the development of application using C#. Is there any workaround to use this controls in Netbeans IDE or any plugins to make Netbeans as reach as Visual studio in controls. Thanks in advance

Member Avatar for peter_budo
0
103
Member Avatar for jrosh

I created jar file and it can be run well through comand prompt.. (using java -jar <file name>) How can I make it run by clicking the the .jar file ?????

Member Avatar for peter_budo
0
82
Member Avatar for moyphus

[B]Is it possible calling struts from EJB (or) not[/B]. please I need an example for this...just calling Struts from EJB part is enough. How to call a DAO class from either Struts (or) EJB...I need an example for this too...Calling part and other configuration such as web.xml part

0
64
Member Avatar for narayanc1

Hai, I am developing an application to send and receive data via bluetooth for Symbian mobiles.We have a scanner with built in linux and some C++ program.A C++ Dll is given to communicate by using Windows Mobile 5 and Windows Mobile 6.When we worked using .Net application when the Serial …

Member Avatar for narayanc1
0
116
Member Avatar for jrosh

I created a jar file using cmd prompt. when i run it using : jar cvfm <filename>.jar manifest.txt *.class gives the error: java.io.IOException : invalid header field.... Please help me to solve this...

Member Avatar for jrosh
0
143
Member Avatar for jrosh

I managed to create a <filename>.bat file using a jar creator . It also creates <filename>.jar file but when i click .bat file it says unsupportedClassVersionError: bad version number in .class file .jar file says could not find the main class... how can I overcome this???

Member Avatar for masijade
0
107
Member Avatar for Nithya.G

Iam getting an equation as input in a string example: 3x^2+4x^2=0 I have to split the above equation and i have store numbers, symbols, and operators and power number separately ... am using java language... Plz Help me to solve... Thanx in Advance Nithya

Member Avatar for Nithya.G
0
82
Member Avatar for Rurik16

I'm creating a game where the goal is to roll two dice and if you get a 7 or 11 you win 10 points, otherwise you lose 5. You start with 100 points. I have everything set up so far but I don't know how to keep the program going …

Member Avatar for Rurik16
0
173
Member Avatar for KimJack

Hi all, I have a quick question. Is this a proper way of using blackbox testing to test the stringTokenizer class? If not, would you provide a proper example that displays the pass or fail. [code] string = "cat, dog"; StringTokenizer token = new StringTokenizer(string, ","); if (token.countTokens() == 2) …

Member Avatar for BestJewSinceJC
0
121
Member Avatar for TheWhite

I have 1 package that manages the main JFrame of my application. This JFrame needs to access an image (which is a resource) of another package. I was able to get it to work using: [CODE=JAVA]new ImageIcon(getClass().getResource("../"+packageName+"/icon.jpg"));[/CODE] But this does not work when using a runnable jar (getClass().getResource("../"+packageName+"/icon.jpg")) returns null). …

Member Avatar for majestic0110
0
115
Member Avatar for cssatheesh

Hi, Im working on a POC in velocity. Want to know whether using velocity can we populate a template based on records in a JDBC ResultSet instance?If so kindly provide the link that has document or example. Typically a resultset will be put in the VelocityContext. In vm file we …

0
47
Member Avatar for nope3d

I am having a problem in this program....can anybody help me create a BufferedReader out of this maze problem...then i have to create a text document entitled with maze.txt... well here is my program [code] import java.io.*; import java.util.*; public class Amazing{ public static void main(String[]args){ Scanner console=new Scanner(System.in); FileWriter …

Member Avatar for nope3d
0
126
Member Avatar for iclaat
Member Avatar for eamo27
0
66
Member Avatar for smitamutha

Hi All, I want to run a java command thru java program. Can any one tell me how can i do it. Thanks , Smita

Member Avatar for marutiskutre
0
152
Member Avatar for jrosh
Member Avatar for majestic0110
0
119
Member Avatar for beanboy

hi helper,.... i'm trying to implement meta search engine(java, jsp) for a website. trying to use carrot2 for organising search results and using yahoo search API. pls give me an idea of implementing a meta search engine.i googled but didnot find any material in net. thx beanboy.

0
81
Member Avatar for nicolek808

The program requires an integer input from a user at the command args and prints out the numbers backward. I have this so far, however, it only prints 1 number, which is the number entered into args. [code=java] public class KashiwabaraNicole7 { /******************************************************************************* * Initializes program * @ param commandlineArguments …

Member Avatar for nicolek808
0
122
Member Avatar for shahravi88

Write a Java Program that prompts the user to enter his/her first name and last name, then displays a message to welcome the user into the class CIS 226. If the user hits Cancel on either first or last name, show the error message: [code] import javax.swing.JOptionPane; public class Assign2 …

Member Avatar for javaAddict
0
114
Member Avatar for kahaj

I'm attempting to learn Java. I'm finding it to be frustrating and quite foreign from most other languages. I have something here typed exactly as the book has it. According to the book, it should be working, but it's not. Any tips would be SO great! I really feel like …

Member Avatar for javaAddict
0
119
Member Avatar for jrosh

How do I add a picture as a background to my Jpanel??? please let me knw the easiest way...

Member Avatar for peter_budo
0
48
Member Avatar for jrosh
Member Avatar for msi_333
0
112
Member Avatar for sbhavan

Hello All, I have developed a utility class for my own purpose to do some repeated task for my work. In that I want to do some routine task when ever I call any of the method of the class through its object. For Example, If my class is StringUtil.class …

0
102
Member Avatar for chitech

plaese i need help.I am trying to design a Fish farm diary using Java. Please i dont know how to go about it.It will have the following:- a) Diary Module This is basically a text editor embedded in the main window. The user should be able to select a date …

0
33
Member Avatar for ganesh5155

Input Output Less than 10 “Too Cold” 10-20 “Average” 21-30 “Hot” Bigger than 30 “Too Hot” (i) If the user enter 2, (ii) If the user enter 10 (iii) If the user enter 23, (iv) If the user enter 70, can anybody help me......... thanks......

Member Avatar for javaAddict
-1
87

The End.