36,051 Topics
![]() | |
hai everybody, i have a problem in jsp that i should access my application only by login. in my project when i give this url in my address bar "http://localhost:8080/jsp-examples/InvMgmt/test/stockrequisition.jsp". it directly goes to the stockrequisition page. i dont know how to use the session variable. here i am sending … | |
ok i need a to make two simple programs from The first program can be a while , for , switch, or a do while loop 1) Output This progeam allows you to enter a list of positive integers(terminated by a -1) then displays the largest value, smallest value, and … | |
I'm not sure if this is possible, but I was wondering how you might get something in the menu bar, to the top right, where current user, battery power, airport signal, sound level are displayed. I think it might only be possible with Cocoa applications or something... I know with … | |
Ok, I looked in the API and was able to create the scroll bars. Problem is, I can't make them scroll, even though the parameters I passed in explicitly said to have the bars around. What I'm trying to do is to create a scrollpane around a JComponent object that … | |
Hello everybody, I just want to ask if what is the error on creating a jar file.. I am trying a create a jar file on my command prompt but it always flag an error saying 'jar' is an unrecognizable command... How can I fix this problem.. YOUR HELP IS … | |
Suppose I have a week that begins with Sunday and ends with Saturday (so UMTWThFS). How do I get the date for each day of the week if, lets say, we use this month and year? I looked in the API but I wasn't sure what to extract to make … | |
Hi Guys, I was trying to build a library catalogue with GUI (Graphic User Interface) which consists of two text boxes and four buttons. I have actually created the layout, but I dont know how to add actions to the buttons. Could anyone help me please. the Question is: for … | |
Below is the code in Jsp out.println("<td>" + rset.getInt("Credit_Limit") + "</td>"); out.println("<td>" + rset.getInt("Curr_Os") + "</td>"); out.println("<td>" + rset.getInt("Per_Utilised") + "</td>"); I want to have "Credit_Limit" & "Curr_Os" dispalyed as 1,23,000 While "Per_Utilised" as 12% | |
Hi! I'm Neeraj & my computer also was infected but now it's free from viruses. I don't have that Hijackthis. I've run Vundofix. exe & combofix.exe. But I think after executing combofix.exe some files are missing and that's why some application is not running. Even I downloaded Java 6 but … | |
I have to somehow add a search function to my code. I have figured out how to add the search button and the text box next to it. The action event for the search button is currently the same as the event for the Next button. I need to change … | |
I attempt to create a string variable to a setter() that is used as query property What am I missing in the procedure to implement a simple query on the database? It stops here. [code] searchList1 = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : searchQuery1.getResultList(); [/code] [code] @Action public Task searchSplash() { if … | |
I already got this one... System.out.println("Hi!"); Thread.sleep(3000); System.out.println("How are you there!"); thnx for it!,... Although, I tried it using dialogbox., JOptionPane.showMessageDialog(null,"Hi!"); Thread.sleep(3000); JOptionPane.showMessageDialog(null,"How are you there!"); .,my question is... why Thread.sleep(3000); doesn't work during the proccess., is Thread.sleep(3000); limited only??? if not,how can I apply this one while using dialogbox.... … | |
can anyone help me with this one... System.out.println("Hi!"); System.out.println("How are you there!"); -can i display this one controlling the time! what i mean is.. display first the "Hi!" and then after 3 seconds it will display "How are you there!" Help me pls.. ANY HELP IS HIGHLY APPRECIATED -alpe | |
how can i write a program using JMF to perform video chat.That is people can see themselves while chatin on a LAN | |
hi......... i am having 13 jsp pages.in the first page i have to select any one radio button and then i have to go to the next page,there also i have to click any one radio and then i have to go to the next page,likewise i have to go … | |
I am doing one program which read serial port data (for bar code reader) using java application. y program is working well and reading serial data but it is not displaying special characters.When i read through hyperterminal i can see all special characters but when see data throught the output … | |
Dear all, Just got one more question. I tested in my java JMF program just now. I found that AVI and MOV format are supported by JMF. Whereas the WMA format is not supported at all. May I ask why it is so? Or is there anyother way to support … | |
I have several files and am receiving errors message when compiling and would appreciate any help. Thank you in advance. Model class file: [CODE]class Model extends Product5 { String genre; //add product to product inventory double restockFee; //fee for restocking //initialize constructor public Model( String genre, String name, int identificationNumber, … | |
there is a imformation when I write "javac Test.java" that is " Test.java uses or overrides a deprecated API. Recompile with -deprecation for details." yes,I want to see the detail,but how,how to do? for example ,I write like this:javac deprecation Test.java ,but fail,nothing display..... who can tell me how to … | |
Does java create an object in runtime or in compiletime ? Another Question : For embeded system [i.e. mobile phone] that have small memory, what happened if I created large number of objects ? Does JME [Java Micro Edition] uses Garbage Collector to free memory ? and how Virtual Machine … | |
Good day to all! I am glad to join this technical forum. I am very new to programming and I am here to learn many technical things from the group. I have been assigned a task of developing an application for a project I am in. I have sought help … | |
I was running my avast antivirus and it detected this trojan: Win 32: agent UEI [Trj]. I noticed my internet loading really slowly and websites that usually load in couple of seconds taking up to 30 seconds or more. Sometimes it doesn't even load and gets the error of "page … | |
Is there anything I can do to adj. searchList1 parameters? I noticed ?null: in the searchQuery1. What does this denote Thanks Steve query = java.beans.Beans.isDesignTime() ? null : entityManager.createQuery(resourceMap.getString("query.query")); // NOI18N list = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : org.jdesktop.observablecollections.ObservableCollections.observableList(query.getResultList()); searchList1 = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : searchQuery1.getResultList(); searchQuery1 = java.beans.Beans.isDesignTime() ? null … | |
Hi I have design a basic JFrame which displays three buttons in a frame. The code is given below: import java.awt.*; import javax.swing.*; public class PaymentFrame { public static void main(String[] args) { JFrame f = new JFrame("Payment Frame "); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setSize(800, 600); Container content = f.getContentPane(); content.setBackground(new Color(240,170,50)); content.setLayout(new … | |
haii friends... i have to highlight selected block in textarea in jsp..is any way to highlight the block.. thankzzz... | |
Hello friends, I want some help. If anybody can help me out for my problem. I am new to JSP. I am using NetBeans6.0 IDE , MySQL server for the database. I have differentiated my work between servlets,Javabeans and JSP. The logic of my project is stored in the servlet … | |
how to pass input to an java program through keyboard. If java programe is compiled at editplus. | |
.,'is anyone knows how to open a new frame in java?help me pls. :'( ...i got difficulties with this one!! | |
I'm trying to create a program that counts and displays the number of times a specified character appears in a file I made. The file name is Test.txt, and says "this is a file I made to test this program." Here's what I've come up with, but it's not counting … | |
I am having trouble setting a query property for searchQuery1 I must be a return from a getter() (getSearchQuery()) Is it possible to set this query property using a return from a method? init: deps-jar: compile: run: [TopLink Info]: 2008.05.06 07:54:48.192--ServerSession(17548445)--TopLink, version: Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007)) … | |
In my GUI class I am trying to make an instace of my ToolAction class, which extends AbstractAction. The compiler says [QUOTE]The constructor ToolAction(String, int, PowerPaintDrawingPanel, GeneralPath) is undefined PowerPaintGUI.java line 109[/QUOTE] which means my below attempt make an object of ToolAction does not work beacuse the arguments of my … | |
Hi, I would like to ask if anyone knows how can I delete empty lines from a file. I thought that I have to crate a loop like [code] FileInputStream fstream = new FileInputStream("input.txt"); DataInputStream in = new DataInputStream(fstream); BufferedReader br = new BufferedReader (new InputStreamReader(in)); String strLine; while(br.readline()!=null) { … | |
.,'is any knows the code to delete a directory in java... help me pls... YOUR ANSWER IS HIGHLY APPRECIATED!.. | |
Using java and netbeans to write a query How does the (:) colon change this String? [ICODE]String partial=("SELECT c FROM content c WHERE c.artist LIKE \"%" + like + "%\""); String partial=("SELECT c FROM content c WHERE c.artist LIKE \"%" + :like + "%\"");[/ICODE] | |
Hello all! I am trying to create a form like structure using Swing to enter data into MySQL database. I have a combo box that has a list of items to be chosen. If the user does not find the option that he needs, he can choose 'Other' as an … | |
Can someone help me figure out why this .form compiles yet the query to perform a search throws this error? I have one entity manager,at startup "query and list set the table with all data from [ICODE]<splashtemplateda.Content>[/ICODE] combobox and textfield and button(action) should config search specs and refresh table with … | |
Hi all, I am getting Null pointer exception while getting other applet in the same page, can guide what i am doing wrong here is demo code [code] // First applet import java.applet.Applet; public class Applet1 extends javax.swing.JApplet { Applet applet1 = null; public void init() { try { java.awt.EventQueue.invokeAndWait(new … | |
.,'is there any software in w/c we can simply creates a frame in java by just click and drop only???I still didn't know it????help me to know this pls....:) | |
Please can anyone tell me how to convert a string in a text field to an integer. im using [ String q = answerField.getText(); int n1 = Integer.parseInt(q);] in my programme but i get the errors: Exception in thread "main" java.lang.NumberFormatException: For input string: "Enter Answer here!" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at … | |
Hello everyone!!! I hope you could help me with this one... In VB.NET ...If you want to display the content of your database in a datagridview component what you just need to do is to call odbc.odbcDataAdapter so that it will display all the data in datagrid as exactly as … | |
I'm having a little trouble trying to nest two component classes (both extend JComponent) together. When I create the frame in my tester file, instantiate each class, and try to add both of them to the frame, it doesn't come out correctly. For instance, I want my frame to display … | |
can anybody tell me how to send login info to yahoo server? thanks........ | |
Create a class named Package with data field for weight in ounces, shipping method, and shipping costs. The shipping method is a character A for Air, T for Truck, or M for mail. The Package class contains a constructor that requires arguments for each weight and shipping method. The constructor … | |
hi all, i need javascript function to validate the Date of birth field...it should check,leap year condition and also the year should nt be the future one.. Thank u... | |
Can anyone tell me where I can get some tutorials regarding Socket programming over http. I want to make an application that enables the user to login to Yahoo IM. pls help me... Thanks... | |
Hi. First of all, I am new to java and I am having some problems in understanding arrays. I was asked to do the following program. [COLOR="red"]2[/COLOR] 5 9 8 7 3 [COLOR="red"]4[/COLOR] 8 5 3 7 6 [COLOR="red"]9[/COLOR] 6 3 8 9 5 [COLOR="red"]3 [/COLOR] 2 1 3 1 … | |
how to delete objects to free memory ????????????? and when did Garbage Collector work to delete unused objects ???????? | |
My program compiles and runs okay, but is not displaying my restocking fee and I am not sure why. Attached is my printout of how it displays. [CODE]//Product.java works with Inventory4.java file import java.util.Scanner; // program uses class Scanner public class Product4 { //Private Variables private String name; //Product name … | |
Dear all, I filter my query select with parameter from previous page. SQL = "select a.KodePenyanyi, p.NamaPenyanyi, p.WebSite, a.KodeAlbum, a.NamaAlbum, NamaLabel, Tahun, a.Kaset, a.CD, a.CDImport, a.DVD, DaftarLagu, ReviewAlbum FROM masterpenyanyi p inner join masteralbum a on a.KodePenyanyi=p.KodePenyanyi inner join masterlabel on masterlabel.KodeLabel = a.KodeLabel where a.KodeAlbum='" + kodeAlbum + "'"; … | |
I have a JButton with both an ActionListener and a MouseListener: [code=Java] b.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae){ performLeftClickAction((JButton)ae.getSource()); } }); b.addMouseListener(new MouseAdapter() { public void mouseReleased(MouseEvent me){ if(SwingUtilities.isRightMouseButton(me)){ performRightClickAction((JButton)me.getSource()); } } }); [/code] Here are the 2 actions for right clicking and left clicking: [code=Java] performLeftClickAction(JButton b){ //problem … |
The End.