36,051 Topics

Member Avatar for
Member Avatar for priyav

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 …

Member Avatar for peter_budo
0
130
Member Avatar for rh3883

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 …

Member Avatar for javaAddict
0
114
Member Avatar for chartreusesnot

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 …

Member Avatar for chartreusesnot
0
74
Member Avatar for degamer106

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 …

0
90
Member Avatar for jk_bscomp

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 …

Member Avatar for peter_budo
0
979
Member Avatar for degamer106

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 …

Member Avatar for masijade
0
275
Member Avatar for mo86uk

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 …

Member Avatar for jwenting
0
3K
Member Avatar for Sandeep_12in

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%

Member Avatar for jwenting
0
43
Member Avatar for neerajsharma

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 …

Member Avatar for gerbil
0
165
Member Avatar for mstarks67

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 …

0
59
Member Avatar for ceyesuma

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 …

0
74
Member Avatar for alpe gulay

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.... …

Member Avatar for javaAddict
0
89
Member Avatar for alpe gulay

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

Member Avatar for alpe gulay
0
137
Member Avatar for k.bhuwania

how can i write a program using JMF to perform video chat.That is people can see themselves while chatin on a LAN

Member Avatar for jasimp
0
34
Member Avatar for shytr

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 …

Member Avatar for masijade
0
118
Member Avatar for priyapratheep

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 …

0
60
Member Avatar for chatt

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 …

Member Avatar for jessen
0
654
Member Avatar for javauser215

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, …

Member Avatar for javauser215
0
123
Member Avatar for 1s2k3y4

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 …

Member Avatar for 1s2k3y4
0
173
Member Avatar for WalkmanXD

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 …

Member Avatar for majestic0110
0
178
Member Avatar for nadhi

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 …

Member Avatar for nadhi
0
80
Member Avatar for SwtAznStar

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 …

0
32
Member Avatar for ceyesuma

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 …

0
75
Member Avatar for monster597

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 …

Member Avatar for Ezzaral
0
127
Member Avatar for ajithraj

haii friends... i have to highlight selected block in textarea in jsp..is any way to highlight the block.. thankzzz...

Member Avatar for jwenting
0
43
Member Avatar for Dolly-Sweety

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 …

0
87
Member Avatar for push

how to pass input to an java program through keyboard. If java programe is compiled at editplus.

Member Avatar for sushil4U
0
214
Member Avatar for alpe gulay

.,'is anyone knows how to open a new frame in java?help me pls. :'( ...i got difficulties with this one!!

Member Avatar for TheWhite
0
97
Member Avatar for warjas816

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 …

Member Avatar for mukulbhave
0
185
Member Avatar for ceyesuma

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)) …

Member Avatar for ceyesuma
0
136
Member Avatar for mrynit

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 …

0
78
Member Avatar for katerinaaa

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) { …

Member Avatar for alpe gulay
0
5K
Member Avatar for alpe gulay

.,'is any knows the code to delete a directory in java... help me pls... YOUR ANSWER IS HIGHLY APPRECIATED!..

Member Avatar for alpe gulay
0
151
Member Avatar for ceyesuma

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]

0
69
Member Avatar for nadhi

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 …

Member Avatar for nadhi
0
94
Member Avatar for ceyesuma

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 …

Member Avatar for ceyesuma
0
175
Member Avatar for dayanandabv

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 …

Member Avatar for dayanandabv
0
154
Member Avatar for alpe gulay

.,'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....:)

Member Avatar for javaAddict
0
100
Member Avatar for puk

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 …

Member Avatar for javaAddict
0
186
Member Avatar for jk_bscomp

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 …

Member Avatar for jk_bscomp
0
150
Member Avatar for degamer106

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 …

Member Avatar for masijade
0
148
Member Avatar for squinx22
0
68
Member Avatar for mmdst11

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 …

Member Avatar for masijade
0
130
Member Avatar for Jahira

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...

Member Avatar for Jx_Man
0
51
Member Avatar for squinx22

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...

Member Avatar for jk_bscomp
0
64
Member Avatar for xandres

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 …

Member Avatar for xandres
0
487
Member Avatar for WalkmanXD

how to delete objects to free memory ????????????? and when did Garbage Collector work to delete unused objects ????????

Member Avatar for WalkmanXD
0
106
Member Avatar for javauser215

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 …

Member Avatar for javauser215
0
113
Member Avatar for Kusno

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 + "'"; …

Member Avatar for ~s.o.s~
0
109
Member Avatar for TheWhite

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 …

Member Avatar for TheWhite
0
1K

The End.