35,618 Topics

Member Avatar for
Member Avatar for sokolovic

I've already posted similar question at [URL="http://www.coderanch.com/t/511249/GUI/java/handle-JFrame-minimize-restore"]JavaRanch[/URL] but didn't get the solution. Here is the issue: I need to detect CAPS LOCK state after minimizing and restoring frame. This is what I did: Run application CAPS LOCK is off Minimize, restore and get message "Caps lock off" Then I minimize …

0
28
Member Avatar for cooolpunit

i would like to write a program regarding the give character is vovel or consants but i am able to input the character can any one tell with full netbeans program including jTextField and all...........

Member Avatar for stultuske
0
81
Member Avatar for JoonShen

Hi guys, i need some ideas for my final project title. This is the area that I am given : Mobile Intelligent (Multi-)Agents, Distributed/Parallel Computing, Static/Dynamic Algorithm Analyser, Embedded Applications, Component-based Technology. Thanks

Member Avatar for stultuske
0
80
Member Avatar for manjukdvg

in my application i have JSP and a Java class(not servlet) ,if user clicks on the JSP it has to pass the value to the Java class , how to get the values from JSP ?

Member Avatar for stultuske
0
386
Member Avatar for jlancaster954

hi everyone, i'm looking for some help please! i'm in an intro to java class and i cant figure out what i'm doing wrong.i am getting an error message that says: Ch3_PrExercise1.java:29: ';' expected String inData.; like i said i just starting out so any help or advice is greatly …

Member Avatar for Stefano Mtangoo
0
383
Member Avatar for Olliepop

Hey guys i have a real issue I want to do these 3 things from an applet: ________ 1) Load an URL into a frame inside the browser and 2) Insert data into a form which is inside a frame in the users browser, and then submit the form using …

Member Avatar for Olliepop
0
125
Member Avatar for dpirtle83

import java.util.Scanner; public class Compute{ public static void main(String[] args){ Scanner input = new Scanner(Scanner.in); System.out.println("Enter three numbers"); double.int= v0=5.5; double.int=v1=50.9; double.int = t= 4.5; System.out.println("5.5-50.9/(4.5)"); } } i am having trouble with writing this program, what am i missing to finding the average for this , or is it …

Member Avatar for brandonrunyon
0
131
Member Avatar for 47pirates

I want to display the data stored in my database(I'm using Ms Access) when i Clicked a View button in my GUI. Everything goes smoothly, as well as even the query is executed the the values are not visible in my panel where i've added the table. Suggest me what …

0
40
Member Avatar for SergeantJoKer

Hey everyone. I could use some serious help with a Java method that I have to construct for my CMIS class. Basically, I have to develop a static method that has two arrays in it, one a String array that has values of colors; the other, a Color array that …

Member Avatar for NormR1
0
183
Member Avatar for lse123
Member Avatar for NormR1
0
83
Member Avatar for ceyesuma

hello I need a temp fix for putting times into my form. I suspect that soon I will have to work with some kind of calender class that will send selected data in all the correct formats. I have no clue. BUT right now it stop me in the first …

0
65
Member Avatar for ceyesuma

MusicSys:unsolved: Hello Could someone tell me which (if any combination of code to use to put a date in a derby db using a JFormattedTextField? [code] createBooking ...etc ..., book_date DATE, ...., ... [/code] here are the many tries I have so far [code] if (i == 3) { //I …

Member Avatar for ceyesuma
0
623
Member Avatar for ceyesuma

MusicSys:unsolved JDesktop:JInternalFrame out of scope ///////////////////////////////////////// Hello; I Have a JDesktopPane that opens with a x frame (JInternalFrame)wit a JMenuBar and 11 JTabbedPanels .produced by x.class.I click the menuItem to produce z.frame using x.class a new JInternalFrame with 4 tabbedPanels on it again produced by x.class. Now I click on …

0
28
Member Avatar for usiyalla

hai all i recently install tomcat addon in my xampp and it installed rightly bt by putting [url]http://localhost:8080/index.html[/url] this i m getting nothing. this index.html is file come with tomcat to show that everything is working and it is in ROOT folder. i work in php with xampp so i …

Member Avatar for peter_budo
0
155
Member Avatar for plasticfood

[CODE]double wholeCost = kb.nextDouble(); double markupPercent = kb.nextDouble(); double markup = markupPercent/100.0; double retailT = calculateRetail(wholeCost, markup); System.out.println(retailT); public static double calculateRetail(double num1, double num2){ double markupPrice = ((num1 * num2)+ num1); return markupPrice;} [/CODE] i've been staring at this and can't figure what is wrong with it. the compiler …

Member Avatar for plasticfood
0
75
Member Avatar for rocky4everurs
Member Avatar for masijade
0
1K
Member Avatar for kezkez

Hi Everyone, I have to add a static method Account consolidate(Account acct1, Account acct2) to an existing Account class that creates a new account whose balance is the sum of the balances in acct1 and acct2 and closes acct1 and acct2. The new account should be returned. (only accounts with …

Member Avatar for vaibhav1983
0
1K
Member Avatar for Little Bunny

A question was asked to me which is as follow: There is a class Fruitlist which has a sub class apple and there is a class Fruit which has a sub class orange FruitList uses Fruit (* not sub classed, only uses it) and Apple uses Orange Is there something …

Member Avatar for vaibhav1983
0
123
Member Avatar for chintan_shah09

Hi, I have this scenario and I want to accomplish it using Servlet. I need to build an in-memory Dynmic HTML and pass it on as an InputStream to itext API to convert that XHTML to PDF. Data to be inserted in that in-memory HTML tags will come from a …

0
45
Member Avatar for packetpirate

I'm trying to draw a string at the center of an applet. The problem is that it's STARTING to draw at the center of the applet and going off to the right. I need for the center of the string to be centered. Here's my code so far: [CODE] /** …

Member Avatar for NormR1
0
1K
Member Avatar for jemimaloh

Hi everyone, does anyone know how i might implement a 2D Vote table? Would using a 2D array for it be possible? I'm trying to implement a voting system for the indexes into hash table arrays. Any ideas?

Member Avatar for jemimaloh
0
108
Member Avatar for hany-h

Hi guys, I have a file named DrawPanel and this class is supposed to draw different shapes which i declared before by using mousedrag. I am not able to draw more thatn one shape and put them in an array.It seems that i don't know where to change the value …

Member Avatar for NormR1
0
278
Member Avatar for newbie_java

Hi! I am just a newbie here! I just wanna ask how to do the file handling in java applet? Do I have to do the certain policy/permission to perform it? If so, how would I do it? And another one, how can I close the APPLET WINDOW once I …

Member Avatar for NormR1
0
471
Member Avatar for Jawahar prabhu

Here the code for get three digit value 'n' and calculate r=2^n+1 then find that value 'r' is a prie or not, here i like store the integer value 'r' without exponential function and big Integer, please make a great help to me. thanks in advance.. import java.*; import java.io.*; …

Member Avatar for stultuske
0
140
Member Avatar for osirion666

Okay Basically i want to put the contents of array called numbers into a MSSQL database i can connect to it no problem and select and display data so its not a connectivity issue here is what i have so far: [CODE] for (int i = 0; i < numbers.length; …

Member Avatar for javaAddict
0
452
Member Avatar for azrasiddiqui
Member Avatar for end3r

Hy, I have a .properties file with a key-value defined like this: [icode]my_property.value=text text text bla bla bla {0} qwerty {1}.[/icode] I need to know what class should I use if I want to read the value and insert parameters in {0} and {1}. In the past I used to …

Member Avatar for end3r
0
4K
Member Avatar for bops

Hello. When implementing a KeyListener in my application I have the following code. I have added the KeyListener to a JTextField control using addKeyListener(this) and the current class implements KeyListener. [CODE] @Override public void keyPressed(KeyEvent ev) { System.out.println("Pressed: "+ev.getKeyCode()); } @Override public void keyReleased(KeyEvent ev) { System.out.println("Released: "+ev.getKeyCode()); } @Override …

Member Avatar for bops
0
981
Member Avatar for Nidhi S.
Member Avatar for Eric Cute

Hi everyone. Im trying to upload a file to an ftp server. I found this code in the internet but its not working for me. Can anyone please tell me where the error is?? This is my code [code]import java.io.*; import org.apache.commons.io.FileUtils; import org.apache.commons.net.ftp.FTP; import org.apache.commons.net.ftp.FTPClient; import org.apache.commons.net.ftp.FTPFile; public class …

Member Avatar for Eric Cute
0
336

The End.