35,618 Topics
![]() | |
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. | |
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. | |
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 … | |
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 = … | |
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) … | |
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 … | |
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 … | |
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 … | |
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"); … | |
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 … | |
![]() | 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 … |
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 … | |
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 … | |
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 … | |
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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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?? | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
hello all, can any one please help me in iterationg and printing values in a map\ thanks in advance | |
i have a as an array b also .. how can i find the summation of there content .. thank you .. | |
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"}; … | |
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 … | |
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. … |
The End.