35,618 Topics

Member Avatar for
Member Avatar for kalpanaSankhya

Hello All Im new to JSF, I want to pass Parameters to a method in <h:outputText> is it possible? If yes, how can i...? I dnt want to use CommandLink or CommandButton.

0
42
Member Avatar for stranger_on_way

The software developer of an object-oriented programming API wishes to design a Stackdata type by ‘adapting’ an underlying Listdata structure. Describe how the Adapter Design Patterncould achieve this via:- i.Inheritance ii.Composition Please reply as soon as possible. I have my exam.

Member Avatar for mKorbel
0
90
Member Avatar for khaled_jawaher

i am using tomcat7.0,jdk1.6,and i downloaded the jax-wsri jar files. first i created folder named ws in webapps in tomcat folder. then in ws folder i created WEB-INF folder and META-INF.and in WEB-INF i created folder classes&folder lib. then i created the web service class as follows [CODE]package hello; import …

0
83
Member Avatar for tultul

i have a problem. i don't know where i am making the mistake.... i need to refreshed my JPanels automatically with time..... i have used timers for this. i used in the constructor of the class... public class HoursPanel{ //.... //..... public HoursPanel(){ int delay = 60000; Timer timer = …

Member Avatar for tultul
0
130
Member Avatar for Iamthecheese

I have a program that runs a binary search tree and lists a menu of options. Two of the options are the only ones I can't seem to get to work which are saveToFile and buildFromFile. These methods include asking for a name to save as an output file (save) …

0
185
Member Avatar for paidinfull

I have an assignment below: 1. Create a class called Furniture with the following attributes: furnitureType – a String modelNumber – a String price – double quantitySold – int totalCharge - double. Provide the following: 1. A non-default constructor for Furniture 2. Settors and gettors for price and furnitureType (don’t …

Member Avatar for bibiki
0
999
Member Avatar for SCass2010

Hi everyone, As part of an assignment we have to develop a recursive backtracking solution in java to a sort of knapsack problem - you have a 150mm bar, a set of orders you have to cut and you need to come up with the best solution that gets the …

Member Avatar for bibiki
0
686
Member Avatar for Buffalo101

Hello, let's say I have these classes: [code=java] public class ClassA extends JFrame{ private JButton btn1; private JPanel panel; public JPanel getPanel(){ return this.panel; } ClassA(){ this.setSize(500,500); this.setVisible(true); panel=new JPanel(new FlowLayout()); btn1=new JButton("LALALA"); this.add(panel); panel.add(btn1); } } public class ClassB { ClassA a; ClassB(ClassA a){ this.a = a; JButton button2 …

Member Avatar for mKorbel
0
2K
Member Avatar for Iamthecheese

I'm having trouble formatting a binary tree. In my program, the tree format should print every output as such: 35 30 29 25 24 20 15 This is the code that I have thus far. [CODE]public void treeFormatTraversal(){//begin int level = 0; if(root !=null) treeFormatHelper(root, level); else System.out.println("\nTree is Empty\n"); …

Member Avatar for Iamthecheese
0
155
Member Avatar for shivarocks

hello sir, i am new to jsp and i have to use jsp mail in my project and i got a jsp mail script but unfortunately it is showing error like this one! 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 f10sm3473193anh.25 i am using smtp server:smtp.gmail.com and there …

Member Avatar for Phucok88
0
218
Member Avatar for kris0r

Hi all, I recently made a web crawler as part of a Uni team project building a small search engine. I've managed to incorporate it into our GUI, there is a button which starts the crawling process by creating the crawler in a thread. (I did this because otherwise the …

Member Avatar for JamesCherrill
0
160
Member Avatar for ronnieaka

i have a form, on which after i click submit, i want the existing elements to get cleared off , ie, all those form fields and button to be cleared, and the result i wanna display be displayed kind of like clrscr() in c++. is there anything in JSP or …

Member Avatar for javaAddict
0
1K
Member Avatar for Buffalo101

Hello, I'm making an application that supports sending text/files. It will use a server and 2+ clients. The clients won't communicate directly with each other, their messages will be forwarded by the server. My problem is this: in C++, after starting a client, I'd have 1 thread stuck on RECEIVE …

Member Avatar for JamesCherrill
0
240
Member Avatar for cwarn23

Hi everybody, I have a question about purchasing a product which I do not know the name of or where to buy from. I have the following requirements for a PDA but can somebody point me to a few links of where I can buy such a device. My requirements …

Member Avatar for cwarn23
0
226
Member Avatar for sirlink99

I am working if application and I cannot figure out how to make a box move forward one at a time when the spacebar is pressed. Here are my codes: [CODE] package DrawingInApplications; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.*; import javax.swing.JFrame; public class Program extends Drawing implements KeyListener{ Drawing d; …

Member Avatar for JamesCherrill
0
987
Member Avatar for arshi9464

I am working on a project that has 2 persons. The first person acts as a receptionist and the 2nd as the boss. Whenever there is someone to meet the boss, i want the request should directly go onto boss's system WITHOUT THE USE OF ANY database. What could be …

0
73
Member Avatar for MWE_QUE

Any help would be appreciated. I have a working command line program (trivia question) and decided to try to put it in a Gui. I got the user menu to print, but it gets to line 162 and blows up (going line by line) where I'm thinking it should do …

Member Avatar for MWE_QUE
0
317
Member Avatar for ceyesuma

Hello all. The Java Date and time classes are difficult. I think I have to use java.sql.Date which is a sub class of Date but is not a date unless the time is normalized to zero. so I've heard. I would like to work with my studentDOB first by collecting …

0
73
Member Avatar for tracieam

Hi Guys, I really need help with my checkbook. My functions seem to be working. However when I can deposit, balance, or withdraw from the userinterface it doesn't seem to store the updates. When I check my balance it always says the balance is 0.00. Can someone help me fix …

Member Avatar for tbone2sk
0
110
Member Avatar for harinath_2007

Hello I have a java program that sends mail to given gmail account. Now i need to attach some files to mail and send them. how can i do it??

Member Avatar for tbone2sk
0
92
Member Avatar for tultul

Sorry.... i have posted this question before in JavaRanch Forum but i did not get any satisfactory answer to my question. probably no one notices there. I am posting here with the hope that someone will come forward and give me some suggestion. i am using java swing and i …

Member Avatar for tultul
0
886
Member Avatar for Inevitable x7

I have a JList that becomes populated from click on buttons. My question that i need help with is, is it possible to use a function of the JList to get the string from a selected index and make a substring? thanks.

Member Avatar for javaAddict
0
355
Member Avatar for thebigbroski

I'm basically writing a bot for the game Bejeweled. Everything works, however it appears to be a bit slow.. and I'm guessing it has to do with the way I'm gathering data for the program to use. Essentially, I take a screenshot, open that file, and grab the RGB'S, add …

Member Avatar for JamesCherrill
0
108
Member Avatar for tracieam

I am trying to write the code for a face that winks. My code doesn't give me any errors however when I try to run it the window comes up as a blank window. It does have the corredt title but no face is drawn in it and I'm not …

Member Avatar for tracieam
0
104
Member Avatar for rdhiravani

Hi, My homepage of website contains periodic ajax requests, due to which the session does not time out. Referring to [URL="http://ajaxpatterns.org/Timeout"]http://ajaxpatterns.org/Timeout[/URL] I decided to use timer and event (like mousemovement etc.) to check whether user is active or not and thus invalidating session after inactivity for 'certain' time. To set …

Member Avatar for rdhiravani
0
59
Member Avatar for kalpanaSankhya

hello all, can any one please help me in iterationg and printing values in a map\ thanks in advance

0
43
Member Avatar for Nirmeen Ased

i have a as an array b also .. how can i find the summation of there content .. thank you ..

Member Avatar for Nirmeen Ased
0
103
Member Avatar for tracydo

Hi, I'm trying to create an array for converting Octal number from input to Binary later...print out for table look-up. Please help! [CODE] import java.util.*; // Scanner class public class check1 { public static void main(String [] args) { int i; String biArray[]={"000", "001", "010", "011", "100", "101", "110", "111"}; …

Member Avatar for JamesCherrill
0
166
Member Avatar for vanpersie

Hi I want to create an html report based on a table named inventory on sql server 2005 database. first code used to generate an output report [CODE] try { // TODO add your handling code here: String s = "<html> <body> <table border=1><caption> Inventory Report </caption>"; s += "<tr><td>Item_id<td>item_name<td>Existing …

0
66
Member Avatar for Dean_Grobler

Hi there, Can anyone point me to where I can find good tutorials (or even an online book) of how to connect to XML with Java (Reading/Writing to an XML file etc). I've tried to Google it but I just seem to find tutorials that are very confusing and vague. …

Member Avatar for mKorbel
0
142

The End.