32,204 Topics

Member Avatar for
Member Avatar for sp85202

I'm completely stuck on how to organize the layout of this GUI assignment (see:attached picture) I've got the create panel part done, but I can't get anything to work properly for this panel. I've done the code up to the updatePanel method and it compiles but nothing displays. I've tried …

Member Avatar for hfx642
0
132
Member Avatar for aanders5

Okay so I am making a 2d array of JToggleButtons. I got the action listener up and going, but I have no way to tell which button is which. If I click one, all it returns is something like [quote]javax.swing.JToggleButton[,59,58,19x14,alignmentX=0.0,alignmentY=0.5,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@53343ed0,flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=false,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=] [/quote] Is there anyway to stick some sort of item …

Member Avatar for aanders5
0
189
Member Avatar for emclondon

Hello Guys, I'm trying to use a Thread Pool Executor in my application and I'm kinda stuck somewhere. My aim is to create a pool of fixed number of threads (say 10) waiting in the pool to be called for action (say to print hello); I'm still bad at java, …

Member Avatar for JamesCherrill
0
277
Member Avatar for Sanna.1

[CODE] import java.util.Random; import java.util.Scanner; class indexerad_variable { public static void main(String[] args) { Random generator = new Random(); Scanner scan = new Scanner(System.in); int Tries=0; int number = generator.nextInt(100) + 1; String igen; while(true) { System.out.print("\nNumber 1 - 100: "); Tries++; int guess = scan.nextInt(); if(guess < number) { …

Member Avatar for SasseMan
0
109
Member Avatar for syekimubeen

hi want to know how read date from a file and take the data into a 2D array and again convert it in 1D array and covert the data format like 15-02-2012 or 15 02 2012 or 15s02s2012 into 15/02/2012 format and write it to other file

Member Avatar for JamesCherrill
0
232
Member Avatar for baig772

hi all i am new to java i want to run java php bridge as described [URL="http://php-java-bridge.sourceforge.net/doc/tomcat6.php"]here[/URL] now i am getting the following error [CODE]HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Could …

Member Avatar for NormR1
0
705
Member Avatar for furqanishaq

hiya i am looking if someone can help me create this in java there is an attachments alongside this

Member Avatar for stultuske
0
166
Member Avatar for srikarreddyd

Can anyone help me out in giving connection between two different applets.I have done two separate applets in NetBeans.I need to display second applet once i click on the "next" button in 1st applet.

Member Avatar for NormR1
0
27
Member Avatar for 03hasnam

Hey Everyone, i cannot print the value of Username in the JSP. i am using a java bean, but i am instiating the bean object twice in two servlet, one for form data and one for username. the bean contains the respective setUsername and getUsername, but this is not printing …

0
62
Member Avatar for ravsau

Hi guys, I am doing a Java project. For now it's just a program but this program is to be used through the semester. I have hard time thinking what class to work. We need to create a class of anything like cheese, cars, rectangle etc that we will be …

Member Avatar for StephNicolaou
-2
256
Member Avatar for sjohnfernandas

hi all i have 2 systems connected in lan.i have to access the system 1 Database from system2 using mysql odbc connector.if i give localhost in the hostname then give username and password of system2 in the corressponding places now i can get the list of databases from system2 mysql …

Member Avatar for StephNicolaou
0
256
Member Avatar for jet101

guys, need help... Im currently working on a project with jasper report. it seems that the pdf file (report) runs on a browser succesfully without a subreport in Glassfish server but when there is a subreport the error occurs. ive been working with this problem since last week and im …

Member Avatar for tamseo
0
1K
Member Avatar for Joey_Brown

Hello; What would be the most efficient way to get all of the 2^24 network identifiers for the given A class IP address. I am aware it is a very stupid question, and a inpractical one for that matter but thank you for any input. Im trying to speed up …

Member Avatar for Joey_Brown
0
139
Member Avatar for pink_sapphire

hello, I am in the process of working on a design project for my fourth year of uni and am running into some trouble. At the moment, we have a serial communication coming from an Arduino and displays in the console box of Eclipse. Each lines displays. However while this …

Member Avatar for JamesCherrill
0
1K
Member Avatar for rezaieit

Hi I wanted to create a erdos-renyi random graphs with ErdosRenyiGenerator class in Jung. Please help me in fulfill the parameters of this class . Thanks.

0
32
Member Avatar for wonderlandslost

Hello! So I've been working on a 1D array that represents a school bus that can hold up to 10 children. The array needs to have names put into it in the first available 'seat'. I've constructed code to do so, but something seems to be wrong. The findFirstEmpty method …

Member Avatar for wonderlandslost
0
333
Member Avatar for Vampiricx3

I have an idea in mind. I want to create a Terminal (Windows Command Prompt) based completely in Java, capable of creating, compiling, editing, etc for Java files. I would like this to also resemble the look of Terminal/Command Prompt. Being the black background, and the text start like below. …

Member Avatar for DJSAN10
0
234
Member Avatar for Zaad

Hi; This is a code that I got from the examples in Oracle in using the javax.print When i try to compile and run a get an error saying javax.print.PrintException: java.lang.IllegalArgumentException: URI is not hierarchical [CODE]package printtry; /* * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved. * * This …

Member Avatar for Zaad
0
4K
Member Avatar for VIEBlitz

[CODE]package test; import java.util.Scanner; public class Test { public static void main(String[] args){ Scanner kbReader = new Scanner(System.in); System.out.print("Choose mode (\"words\" or \"symbols\"): "); String mode = kbReader.nextLine(); if ("words".equals(mode)) { String oa = " plus "; String os = " minus "; String om = " times "; String …

Member Avatar for VIEBlitz
0
163
Member Avatar for computerdude87

Can anyone help me put this code into seperate methods? [CODE] public static void Main(String[] args) { String num1String = JOptionPane.showInputDialog(null, "Please enter your first number"); String num2String = JOptionPane.showInputDialog(null,"Please enter your second number"); String num3String = JOptionPane.showInputDialog(null, "Please enter your third number"); Double num1 = Double.parseDouble(num1String); Double num2 = …

Member Avatar for NormR1
0
80
Member Avatar for computerdude87

Can anyone tell me why I keep getting a value of 0 returned? [CODE] public static void main(String[] args) { double getSum = 0; double getAverage = 0; String num1 = JOptionPane.showInputDialog(null, "Please enter your first number"); String num2 = JOptionPane.showInputDialog(null,"Please enter your second number"); String num3 = JOptionPane.showInputDialog(null, "Please …

Member Avatar for computerdude87
0
126
Member Avatar for kalcio

hello, I prepare an application uses the result of the command prompt (Runtime.getRuntime (). exec (cmd)) for a command already entered, and displays it in a Textarea, but I notice that if I use a modal box the problem persists, my problem is that this application is in frensh,if any …

Member Avatar for kalcio
0
339
Member Avatar for axymak

I want to make a simple game in java please help me to decide topic and selecting.

Member Avatar for uurcnyldrm
0
69
Member Avatar for rnlds.walfrets

Is it possible to optimalized Voice recognition using pronounciation and Voice Colour??

Member Avatar for Majestics
0
48
Member Avatar for mallikaalokam

[CODE]import java.io.*; import java.util.*; import java.lang.*; class Files { public static void main(String args[]) { char ch; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); FileOutputStream f=new FileOutputStream("yo.txt",true); while(ch=br.read()!='%') { f.write((int)ch); } f.close(); } }[/CODE] it shows an error at while(ch=br.read()!='%') saying incompatible type,though i tried typecasting.. please help

Member Avatar for stultuske
0
133
Member Avatar for aanshik

which one of best in java struts1.3 struts2 Regards [URL="http://www.supportcorporate.com/staff-augmentation.php"]Staff Augmentation Services[/URL]

Member Avatar for DavidKroukamp
0
83
Member Avatar for bloodbender

Hello Daniweb, I can't wrap my head around this minor issue. Maybe it's a known bug and I just can't find the right keywords to google it or maybe it's supposed to be like this. Let me know what you guys think. [CODE] public class TestPostfix { public static void …

Member Avatar for bloodbender
0
129
Member Avatar for tomtaila

Ok so my university has assigned me the task of creating a brick breaker game for android phones (full spec below). What I would simply like to know is[B] which design pattern I should be using to structure my program?[/B] If I should be using more than one which should …

Member Avatar for NormR1
0
515
Member Avatar for vijiraghs

Hello, The following is my requirement. The user writes a blog. It contains a heading, few keywords and the content. The user then submits the blog. Before getting stored, the content section of the blog must be scanned using [url]http://www.webconfs.com/keyword-density-checker.php[/url] There will be a **library containing the keywords related to …

Member Avatar for NormR1
0
109
Member Avatar for rushikesh jadha
Member Avatar for stultuske
0
290

The End.