473,554 Members | 4,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Java Forum

Java programming language (Sun Microsystems) - Ask questions about java programming, OOP, JRE, SDK, Swing, Plugins, Java Virtual Machine(JVM), Java Libraries: Collection, XML Processing, Security, JDBC, JNDI, RMI, CORBA, AWT (GUI) and more.
0
1,230
thread by: swetha 255 | last post Sep 24 '11 by: swetha 255
hai friends. i got errors in generating a file.here is my codepublic class certificate{ public static void main(String args) throws Exception { CertificateFactory certFactory = CertificateFactory.getInstance("X.509"); FileInputStream fis = new FileInputStream("file");
0
1,129
thread by: chandrika | last post Sep 26 '11 by: chandrika
How can I change the size of the forms in my Windows application when the screen resolution the user has is lower than the one I developed the application in I have a customer that has a screen resolution of 1024x768,and I developed the application in a PC with 1366x768 resolution. Is it possible to decrease the forms sizes accordingly PC...
0
1,839
thread by: ssaraceni | last post Sep 28 '11 by: ssaraceni
Hello, I've a program with a JTree with JLayeredPane. During program execution I add a JPanel over the JTree on an higher layer. In this situation, when I change the content of JLabels over the JPanel, the JTree were repainted for corrisponding rows under the JLabel changed. How can I disable un-necessary repaint of JTree? EDIT: If I set...
0
1,193
thread by: Tassos Souris | last post Oct 1 '11 by: Tassos Souris
Hi! does the equals() method for every enum class i create behave as expected or must i override this method??
0
1,428
thread by: satya uppe | last post Oct 1 '11 by: satya uppe
Hi vidi, In your code you have build the calendar content using string buffer. I want to build calendar using ical4j API itself. For example Calendar calendar = new Calendar();
0
1,721
thread by: pinky41 | last post Oct 2 '11 by: pinky41
hi , We have the below code in our jsp <fmt : formatNumber MaxFraction Digits="1" MinFraction Digits="1" value=$variable > if the variable value is 6.650996 it prints 6.7 if the variable value is 6.652273 it prints 6.7 if the variable value is 6.65 it prints 6.6
0
1,882
thread by: vema reddy | last post Oct 3 '11 by: vema reddy
Hi all, I deployed exploded folder in jboss deploy folder,it recongises the file path like D:\Program Files\JBoss\jboss-4.0.5.GA\server\default\deploy\pdms\WEB-INF\ServletPath.xml but when i deploy the same application as pdms.war in deploy folder the file path like D:\Program...
0
1,513
thread by: catface | last post Oct 4 '11 by: catface
I am having problems running a JSP with a java class file on a Tomcat server. My files are located at: tomcat/webapps/ROOT/temp.jsp tomcat/webapps/ROOT/WEB-INF/classes/tempbeans/TempBean.class <%@ page import="tempbeans.*" %> <% TempBean bean = new TempBean(); %><%@ page import="tempbeans.*" %> <% TempBean bean = new TempBean(); %>
0
1,317
thread by: Shirley G | last post Oct 7 '11 by: Shirley G
This is working fine for us in the US but in another country all of their computers are showing two Oct 15th in popup. We are checking other countries but any idea why this would happen to others and not to US?
0
1,208
thread by: Katy Lee | last post Oct 8 '11 by: Katy Lee
I wrote java code to create different kinds of flags with different sizes and colors in public static void drawFlag(MyGrid grid, int countryCode). Nevertheless there is alot of color overlapping. Can you please help me with writing additional methods with private & static as specified in the assignment to eliminate duplicative code? Thank...
0
1,316
thread by: mitali dhawan | last post Oct 9 '11 by: mitali dhawan
i have tried to configure everything in textpad..stil when i try to save file.there is no block to save file name..it is automaticaly taking name as document1 or 2 etc.i am not able to run n compile file due to this.. plz help me.
0
1,319
thread by: Merin Lalu | last post Oct 9 '11 by: Merin Lalu
i have an html document as follows <html> <body> <h1>world</h1> <br> List </body> </html>
0
1,240
thread by: rotaryfreak | last post Oct 9 '11 by: rotaryfreak
Hi, i previously worked on a program, written in c#, and a library was used to parse html. If i remember correctly, the library did two things: 1) it removed all html tags from the document and 2) converted the input stream to a string. I would like to do the same with java but the few libraries i found online dont seem to remove html tags,...
0
1,638
thread by: Noah J | last post Oct 11 '11 by: Noah J
I need help with this error that i keep getting when i run my program. the error is the following: StockProg.java:15: cannot find symbol symbol : constructor Stock(java.lang.String,java.lang.String,double,double) location: class Stock Stock mystock = new Stock("wall", "street", 60.0, 65.0); ^
0
1,298
thread by: SWEETZYING | last post Oct 12 '11 by: SWEETZYING
Please I'm new to programming in Java Technology Standard Edition (SE). I'm working on a project and need some help. I created an application with a welcome message to the user. After animating the texts, I want it to bring out a button for the user to press on but it couldn't work. Please what will I do? Please if this question is not well...
0
1,187
thread by: Tassos Souris | last post Oct 13 '11 by: Tassos Souris
I have a from() method in a enumeration that converts one enumeration from another (using a map that is build statically from the values of the this enum). Let's say that the enumeration that I want to convert has more elements added to it (say that the API changes)... In this case, in the from() method, the get() method in the map will...
0
1,743
thread by: Totally Stumped | last post Oct 15 '11 by: Totally Stumped
I'm trying to sort an array of object by the name of the Artist. But I keep getting an error message. Why am I getting this message? //Program to Display Inventory /*Tiffany Walker IT215 Java Programming October 6, 2011*/ import java.util.Scanner; //allows user input import java.util.Arrays; //allows us to add to the array
0
1,183
thread by: Tassos Souris | last post Oct 15 '11 by: Tassos Souris
This is the hashCode() from the openjdk String class: public int hashCode() { int h = hash; if (h == 0) { int off = offset; char val = value; int len = count; for (int i = 0; i < len; i++) {
0
1,492
thread by: rotaryfreak | last post Oct 15 '11 by: rotaryfreak
Hi, I have two map lists //reads in a file which has a serialized object Map<String, List<Integer>> list1 = getListFromSerializedObjectFile(list); Map<String, List<Integer>> list2 = getListFromSerializedObjectFile(list);
0
1,276
thread by: Ankush Kumar | last post Oct 18 '11 by: Ankush Kumar
The UDP server is having two IP addresses: one for the ethernet and the other for the wifi. Now the UDP server is running on a single machine and listening on port 161 for SNMP query requests. When I send request for SNMP query using ethernet IP address: the reply comes from ethernet address. But when I send request for SNMP query using wifi IP...
0
1,647
thread by: AlwaysANovice | last post Oct 20 '11 by: AlwaysANovice
There is a DLL on a Windows (Intel, 32-bit) server that contains a functions called EntConvertInt which takes a Int16 and Int32 arguments and returns a double. I want to create a Java version of this, but cannot get the numbers to work. I think the Int16 is the exponent (including the sign bi) and the Int32 is the mantissa. I think what...
0
1,249
thread by: Akino877 | last post Oct 20 '11 by: Akino877
Hello, I have a simple Hello World portlet, which looks like the following : import java.io.*; import javax.portlet.*; public class HelloWorldPortlet extends GenericPortlet { public void doView(RenderRequest request, RenderResponse response) throws IOException, PortletException { response.setContentType("text/html");
0
1,334
thread by: Jason Hamilton | last post Oct 20 '11 by: Jason Hamilton
Hey all, I was kicking around the Oracle website recently, looking for exact dates for when each of the various updates and patch fixes were released and I found that, while I can get to the release notes for every single one of them, none of those documents are timestamped. I have found a few partial lists online, but I am having a hard...
0
1,013
thread by: rotaryfreak | last post Oct 21 '11 by: rotaryfreak
Hi, I've been trying to parse words like it's, can't, etc. so that all i'm left with is the root word i.e it for the word it's and can for the word can't. This is what i have tried so far: String regex = "('.*$)|('+)|('(\\w)+)"; sadly, nothing is working... what am i doing wrong?
0
1,114
thread by: aasheempahuja | last post Oct 23 '11 by: aasheempahuja
I have a form on admin page ,i want when i click on submit button value of text box should be posted on home page and remain there until admin remove it,how can i do this using jsp?? more precisely i want to post notice on home page through admin form

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.