36,051 Topics

Member Avatar for
Member Avatar for llemes4011

Hello, for the project I'm working on, I need to be able to access say, a JPanel object that was created from the execution of a Jar file, and use it inside another class outside of the Jar file. Any ideas? Thanks

Member Avatar for llemes4011
0
174
Member Avatar for jooa

I am writing some code which already gets the pixel array from an image, I then alter the pixel values. How do I now display this new pixel array as an image? I hope someone can help. Thank you

Member Avatar for jooa
0
865
Member Avatar for sam_inquisitive

hi , i m looking for a project which contains some graphics,lots of functionalities, and most of all is something different from the normal management projects (online test,hote; or lib mgmt etc). I have thought of something related to "Stock exchange" or Artificial intelligence project(which can predict behavior of situations-"brainstorming" …

Member Avatar for mytime19
0
159
Member Avatar for nateuni

Hi, I am having issue with the Scanner class, it seems to fall through to the next line, depending on how I call it from my class. I cannot track find a pattern to this. Except it tend to happen more when calling the nextLine() from the Scanner class. Some …

Member Avatar for cgeier
0
345
Member Avatar for conan19870619

Hi, I have one question. You know some applications can be minimized to the lower right corner and with a hot key (e.g. ctrl+F1). Once the hot key is pressed, the application is activated or some event is activated. I wonder how to do that in java if there is …

Member Avatar for harsh2327
0
2K
Member Avatar for suretd

Good Day All, Not sure if I should post this request here or under the SQL Forum. I am studying JAVA and my code is for JAVA, but my query is regarding the SQL prepared statements to be used in my JAVA code. I have a program called SingleUser.java. The …

Member Avatar for CameronBevis
0
2K
Member Avatar for vijayflash5

hi all java application which is made of awt and threads can be call from jsp is possible or not . i am having one application which is in swings and i want to call that application from jsp so that i can run or use this swing application in …

Member Avatar for vijayflash5
0
56
Member Avatar for Master Piece

how can i print a triangle in java.Its shape is like this A B C D E F G H I J K L M N O i have to use ascii code for printing alphabets.

Member Avatar for JamesCherrill
0
163
Member Avatar for caierhui

package javaapplication1; import java.util.*; import java.io.*; public class GO { public static void main (String[] args) throws FileNotFoundException { Scanner inFile = new Scanner (new FileReader("grades.txt")); PrintWriter outFile = new PrintWriter ("output.txt"); int q1,q2,q3,q4,q5; double g = 0; int ctr = 0; double ave; String name; double cAve; String grade; …

Member Avatar for JamesCherrill
0
169
Member Avatar for mizzievie

I wrote a java class to connect to database (DBManager.class) and then use JSP to call the java class to get the output that is read from the database. Here, i use Apache tomcat. it gives me an error when i try in my browser here the message error: [QUOTE]org.apache.jasper.JasperException: …

Member Avatar for javaAddict
0
83
Member Avatar for beanboy

hi helper, i wanted to create web app without using any IDE and test in tomcat....where should i put my class files and jsp files and xml......what is manifest ? plz tell me directory tree structure thanks bean boy

Member Avatar for stephen84s
0
73
Member Avatar for low1988

This a portion of my code with 2 sets of 2d array [CODE] public class Form2 { public static void main(String[] args){ int[][] dayForm = { {25,15,28,17,19}, {31,21}, {23,24,19,18}, {15,19,22}, {14,17,13,18}, {8,12}}; int[][] boardForm = { {10,18,17,17,15}, {16,9}, {13,19,15,25}, {11,10,8}, {14,17,19,13}, {11,4}}; final int SIZE = 4; int[] totalday = …

Member Avatar for low1988
0
5K
Member Avatar for rdhiravani

Hi, I am using Weblogic 9.2 MP3, I want to find Programmatically IP, Port & Server State of Weblogic. Let say there is a page named index.jsp deployed on domain mydomain. So after weblogic is RUNNING, I can access that page by hitting URL [url]http://1.2.3.4:9876/mydomain/index.jsp[/url]. I want the IP(1.2.3.4), Port(9876) …

Member Avatar for rdhiravani
0
89
Member Avatar for alsoumhi

hi guys, I am doing online form project, I get problem with navigation. the user can forword and back the page . I need to prevent user from that. I mean that once user gets new page , he can't get the prevouis page , but it asks him to …

Member Avatar for alsoumhi
0
83
Member Avatar for momoh

Got a small detail problem that I cannot get to understand myself. The program, see attachments draws dots on the screen. There is a dot class for the details of the dots to be stored, that is size, colour, shape (square or round) Problem is with the colour...Cannot get other …

Member Avatar for momoh
0
168
Member Avatar for and12

Edit: Title - java access denied on graphic file Edit: I didn't realize i didn't finish typing the title before submitting. I put my applet on the web but it says not initialized and the error is complaining about my graphic. Am i not allowed to have graphics? How can …

Member Avatar for VernonDozier
0
221
Member Avatar for jooa

Hi I found a class ReadingPixels someone wrote on the net which given an image it dispays the x,y,r,g,b values as the mouse is over the image. I have a separate class I want to add the panel to. I can add the panel to my frame however I think …

Member Avatar for jooa
0
113
Member Avatar for coud_ren_26

Can somebody show me how to create a simple two column for strings? I need a sample code. Thank you for those who will help me.

Member Avatar for javaAddict
0
75
Member Avatar for arcticM

Hello everybody. I'm a [U]beginner[/U] and I need your help. I have a GUI programme and I need to make it run from an icon on the desktop. can you help me with an easy way to do so?

Member Avatar for JamesCherrill
0
84
Member Avatar for kelela

Please Help me!!! I know this is a stupid newbie error, but I am a newbie. My program compiles and runs, but I can't get the interestP and the principalP to pass to the other class to fill the graph. I have worked on this non-stop all day. [code] import …

Member Avatar for JamesCherrill
0
149
Member Avatar for and12

1. My code runs but the text panels won't display properly in the panel until i hide the frame and open it again or click min/max. 2. Can someone suggest the kind of layout i need to keep letters of each word together so it doesn't wrap to the next …

Member Avatar for and12
0
113
Member Avatar for nateuni

Hi Guys and Gals, I am new to programming and I decided to write my self a simple class to help me with my uni work. It is just to save me writing to screen then using the scanner class to read the input. It would be easier with a …

Member Avatar for nateuni
0
1K
Member Avatar for llemes4011

Hi, school started back up the other day, and our first assignment (as a group of eight) is to create a Server/Client project that is used to play network games. Before I go further, I want to say that I HAVE done work on this, quite a bit. I just …

0
71
Member Avatar for Andrieux

I can't run .exe's, so I can't install JRE 6u15, even though it's harmless. Can anyone zip their jre directory and upload it for me as a .zip (not a .rar) file? I'd really appreciate it.

Member Avatar for quuba
0
72
Member Avatar for Majestics

[code] import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.Robot; import java.awt.Event; import java.awt.AWTException; public class keyboard implements ActionListener { int i; String s[] = {"esc","F1","F2","F3","F4","F5", "F6","F7","F8","F9","F10","F11","F12", "psc","slk","pau","A","B","C","D","E", "F"}; String g = ""; Object b; JMenuBar m = new JMenuBar(); JMenu m1 = new JMenu("File"); JMenu m2 …

Member Avatar for Majestics
0
188
Member Avatar for kapmsd

Hi guys!! I am intended to develop a project in JSP. I am gonna use [I]NetbeansIDE6.5.1[/I] and [I]mysql[/I] in [I]Linux[/I]. I have few doubts: (i)[B]Uploading files[/B](eg:jsp,war et al) to the server. (ii)[B]Code to extract .war[/B] files to a folder in the server. (iii)Using [B]https[/B] for login forms. Thanks in advance …

Member Avatar for peter_budo
0
86
Member Avatar for hajjo
Member Avatar for shanakaprabath

[code]class AC { int ID; String name; int AcNo; Date ODate; double balance; double transaction; AC(int ID,String name,int AcNo,Date ODate,double balance,double transaction) { this.ID=ID; this.name=name; this.AcNo=AcNo; this.ODate=ODate; this.balance=balance; this.transaction=transaction; }[/code] this is my main class i want to write those data which are relevant to those variable variables in an …

Member Avatar for javaAddict
0
88
Member Avatar for TheWhite

Ok, this one is a little tough for me to explain. I have a runnable jar file that contains a .exe that I'm trying to exec in my program like a command line function. Usually to execute a .exe in a command line I would do: C:\"path to .exe" -option …

Member Avatar for TheWhite
0
2K
Member Avatar for moyphus

Hi To All, I have an equation in string like this ((BASIC+HRA)*(30/100)) Using replace function Now i replaced this into values... String formula = ((10000+3000)*(30/100)) whole thing as a string now 'Formula'... How can i calculate this formula float amt = formula; Now i have an error...type casting....i can't calculate …

Member Avatar for javaAddict
0
165
Member Avatar for meghaljani

I am learning openMP in C++ in Linux environment, and I am using Netbeans for programming. I want to test the parallelization of my program by multiplying two 1000*1000 matrices on a dual core processor. When I run the program, it terminates by segmentation fault for stack overflow. My program …

Member Avatar for vali82
0
111
Member Avatar for latinajoyce

i need to add this criteria to my program: "if the user enters a last name in small letters the program should display the surname with the first character in capitals" Can some1 please help me with some examples for this?? i really need it.. thank you guys :)

Member Avatar for JamesCherrill
0
195
Member Avatar for moonis.ahmed

Hi, I have the following jsp file which receives an audio file from the form. I am receiving the form data as Multipart and saving the uploaded file as temp.wav. The uploaded file is in uLaw audio format. I want to convert it to PCM format and save it as …

Member Avatar for peter_budo
0
136
Member Avatar for ganesh5155

hi all i need ur help to solve this problem 1. write an algorithm to find the average of there number called a,b,c 2. write an algorithm to add up all odd numbers between 0 and 100 3. what data type for (i) True ] if data type for 123 …

Member Avatar for ganesh5155
0
137
Member Avatar for namratakakkar84

Hi I have made a program in which a servlet page is called by html page. The problem is that whenevr control goes on to servlet page it shows that the servlet page does not exist. I am deploying my application on tomcat and I am using MS-ACCESS as database. …

0
59
Member Avatar for chuppy

hi guys..i need help with my assignment..hpoe u can help\ A credit card company charges its customers monthly interest for any unpaid balance. Assuming that you owe the credit card company some money, you have decided to stop using the card and to pay off the debt by making a …

Member Avatar for ithelp
0
70
Member Avatar for mithunthakkar

hey friends, im getting this error illegal state of expression plz help me wid this Connection db = DriverManager.getConnection(connectURL); Statement stmt = db.createStatement(); String c = request.getParameter("criteria"); String a = request.getParameter("value"); ResultSet rs; if(c.equals("BillNo")){ --error-- rs = stmt.executeQuery("select * from orders where billNo="+a+); }else if(c.equals("UserId")){ --error-- rs = stmt.executeQuery("select * …

Member Avatar for mithunthakkar
0
156
Member Avatar for alsoumhi

Hi experts, I have finished writing my servlets and web pages. all my servlets tested using tomcat in windows operating system. In other words , I have finished the development stage. Now I need to move all my servlets and web pages to web server for deployment. but my web …

Member Avatar for alsoumhi
0
157
Member Avatar for idgirl

on line 40 I have: public void start That is the only thing that is showing something wrong. I have addad, curly brackets with no luck and when I put a semi colon at the end everything after it shows an error. The programs opens the applet but does not …

Member Avatar for VernonDozier
0
115
Member Avatar for javaAddict

Hi here is another question: I searched the internet for information about the radio tag, and this is all I found so I put it in my code [CODE] <s:radio name="..." list="myArray" /> [/CODE] The above displays all the elements of the array with radio buttons. My problem is that …

Member Avatar for sangyl
0
3K
Member Avatar for tomo_uni

I am writing a seprate driver class for my programme, but I need to know how to add two panels to the jframe. Any one help?

Member Avatar for sneaker
0
214
Member Avatar for tomo_uni

How do i create a array of 100 JLabels (all of them being the colour blue) and then insert them ALL into a seperate JLabel? Tom

Member Avatar for Ezzaral
0
52
Member Avatar for latinajoyce

i have to code a program that ask for the user to enter a positive integer and then I have to find if the value that was enter is divisible by 11 (with no remainder) and display "yes" if it is divisible and "no" if it is not. <<My program …

Member Avatar for latinajoyce
0
96
Member Avatar for TheWhite

[CODE=JAVA] String line = "Extracting from E:\\Junk\\morejunk\\file.txt"; System.out.println(line); //prints: Extracting from E:\Junk\morejunk\file.txt String[] splitPath = line.split("\\"); //exception thrown here String folder = splitPath[splitPath.length-2]; System.out.println(folder); [/CODE] [QUOTE]Exception in thread "AWT-EventQueue-0" java.util.regex.PatternSyntaxException: Unexpected internal error near index 1[/QUOTE] My objective is to always print the folder containing the file being extracted (morejunk …

Member Avatar for quuba
0
1K
Member Avatar for stonkers

I did some JSP development a few jobs ago (7 years ago) and remember having the toughest time with jsp debugging especially. I used JBuilder back then. I'm getting some jsp stuff going again in this job and was wondering if you could give me opinions on the best tools …

Member Avatar for stonkers
0
305
Member Avatar for nonhlah

I need help , I want to save article in the database but i cant read the text from the file to the database where i have a body column for the content of that article Plz help my assignment is due on monday , by the way I am …

0
65
Member Avatar for jooa

Hi, I have written some code which when a mouse is clicked, a red circle is drawn at that position. The x,y coordinates are stored in an ArrayList. What I now want to do is enable the circles to be selected and then dragged. When the mouse is released the …

Member Avatar for jooa
0
2K
Member Avatar for jooa

I have written a program which allows the user to click on the screen which draws a circle and when the user clicks on the circle again they can drag it around. My code allows the circle to be dragged it still displays the original cirlce and draws the path …

Member Avatar for jooa
0
1K
Member Avatar for jooa

I am implementing an FFT class. I get the pixel data from an image then pass this to the FFT class. Once I apply the fast fourier transform to the array the result is an array of complex numbers. At the moment I convert the array of complex number to …

0
72
Member Avatar for idgirl

I am very green at writing Java, I am trying to go through our chapter examples and putting in data for a mortgage calculator with a GUI. This code is far from finished but the example says "Now save and compile" and this is where I am getting the error …

Member Avatar for idgirl
0
151

The End.