java equivalent of swfobject
looking for a javascript class like swfobject to embed java and have a simple fallback if the user doesn't have java or refuses the security prompt. thanks, Josh ...
looking for a javascript class like swfobject to embed java and have a simple fallback if the user doesn't have java or refuses the security prompt. thanks, Josh ...
I have a JSF validator that checks whether a Container Number string conforms to the ISO-6346 specficiation. It works fine, however I need to add some conditional processing in based on other values in the Bean where the Container Number comes from. This Bean can be of several different types. Is there any way to access the Bean in th...
I need a JSON, JS Array parser in Java and/or PHP. Do you know any parser ? regards, ...
Hi. I want to write some small program. It will run on my computer(laptop) with bluetooth adapter and then discover all the visible bluetooth adapters(phones, printers, other computers, etc.), but i've not worked with bluetooth in Java before... Help me to find starting point, pls. What SDKs or libraries i must download first? What liter...
I am refactoring some Spring JDBC code in which some of the costlier queries do "SELECT * FROM..." - and was about to start checking which columns were actually needed and just SELECT x , y FROM.. them. But reading through the ResultSet class is seemed that most data is lazily loaded. When you do a ResultSet.next() it moves the cursor ...
I have an interface interface x { A getValue(); } and the implementation class y implements x { public B getValue() { return new B();} } B is a subclass of A. This works because of covariant overriding, I guess. But if I rewrite the interface as interface x{ <T extends A> T getValue(); } I get a warning in the i...
Hi there, I am trying to use Jasper Reports (v3.5.2) to generate and print reports in PDF/HTML to the browser for a webapp. This webapp already uses JSF(Woodstock) for the front end and EJB 3 (with JPA and Hibernate as persistence provider to a MySQL db). My question is - where should the code for generating the Jasper based reports be...
I have a java app + SQL server database. DB operation use JDBC with dynamic SQL string. Example: Select Column from tab where column=StringParm StringParam is user input. if the stringParm include apostrophe, Java app will throw exception and said Can't execute the SQL. How to resolve this problem with no java code changing? ...
I'm running a J2ME Application and run into some serious memory problems. So I built in another step to clear the huge input string and process its data and clear it. But it didn't solve the problem until I set input = null and not input = "". Shouldn't it be the same in terms of memory management? Can somebody explain me the difference...
Java code: import javax.swing.Timer; class Main { public static void main(String args[]) { MyListener myListener = new MyListener(); Timer timer = new Timer(1000, myListener); timer.start(); while(timer.isRunning()) { System.out.print("."); } } } Scala code: import java.awt.event.A...
I seem to be having problems with my java gui code, and I have no idea why it's not working. What needs to happen is when the mouse is clicked on the panel or frame - for now lets just say panel; as this is just a test eventually this code will be implemented for another gui component, but I'd like to get this working first - the popup ...
I'm just starting to look into Futures and the ScheduledExecutorService in Java, and I'm wondering why my Callable isn't running on the schedule I've indicated. In this sample code, the callable runs once, but the app never completes, nor does the task run again, which is what I expected to happen (I'm sure the problem is with my expecta...
I have an app that uses 256-bit AES encryption which is not supported by Java out of the box. I know to get this to function correctly I install the JCE unlimited strength jars in the security folder. This is fine for me being the developer, I can install them. My question is since this app will be distributed, end users most likely wil...
How can I fetch large resultset in java? I have about 140,000 rows with 3 columns. ...
I'm trying a problem from sphere's online judge where I need to find a palindrome for a integer of up to a million digits, I thought about using java's functions for reversing strings, but would they allow for a string to be this long? ...
This is my solution for sphere's online judge palin problem. It runs fine on Netbeans, but the judge is rejecting my answer saying it gives a RuntimeError. I tried it on JCreator and it says: Exception in thread "main" java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberForma...
I dont find how to remove a column with the Apache POI API. I would appreciate a sample code or help on this point. Thank you ...
I'm currently trying to solve a problem where I need to find the position in a piece of text in a JEditorPane based on where the mouse was clicked. Basically, when the user right-clicks over a word I need to find out what the word is. To do this I need to find out which position in the text the user has clicked on. I know I can easily ...
Having used Java for some years already, we know what we are gaining by moving to Grails. The question is, what are we losing? Performance? Appreciate your input / ideas. Thanks. ...
I'm importing an existing source tree as an Eclipse Java project. When I do, I get errors in classes (such as mycompany.logging.LogEntry) along the following lines: The package mycompany.logging does not match the expected package "" The problem seems to be that Eclipse does not realize that the directory src/mycompany/logging is a pac...