35,618 Topics
![]() | |
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 … | |
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........... | |
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 | |
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 ? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[url]http://portals.apache.org/jetspeed-2/[/url] how can help built my towns web-index? | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
how to calculate columnwise total in excel sheet in java using HSSFworkbook | |
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 … | |
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 … | |
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 … | |
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] /** … | |
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? | |
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 … | |
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 … | |
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.*; … | |
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; … | |
i want code for my project on Online Voting System in Java | |
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 … | |
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 … | |
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 … |
The End.