Hi,
The osgi R4 specification on 'initial provisioning page 231' talks about
'The result of the request must be a ZIP file(content type application/ZIP)'...'The zip file may contain only four types of dictionary entries: text, binary, bundle or bundle-url. The types are specified in the ZIP entry's extra field'
I don't know a ZIP fi...
I have been using the printComponent that was shown in another question. It works great for printing a JPanel if I first add that JPanel to a JFrame and draw that JFrame to screen. But if I don't do that before I print, I get a blank page printed. Why is this?
Thanks in advance for any help.
...
I am new to easymock.
I am trying to mock a service where one of the methods is a void method that will gets called an unknown and large amount of times. How to specify that any number of calls is allowed.
I know how to do it for other then void methods.
Thanks,
Hendrik
...
Hi,
How to focus the calender after selecting the date from calender..
I am selecting the date and calender is also closing but after that focus is missing.
Please help me on this issue..
Regards
Sk
...
Hi,
In HTML forms, if you press 'enter' while in a text field the form will generally submit.
I'm implementing a search panel in Java Swing, and I want to include the same functionality as I think users will be expecting this.
I know that it's possible to use setAction on a JTextField to accomplish this, however I was wondering if the...
Canon/Nikon/other cameras save raw output of their sensor in some of their proprietary formats (.CR2, whatever). Is there any Java library designed to read them and convert into manageable BufferedImages?
I don't reqlly care here about fully customizable conversion similar to ufraw or imagemagick, rather something simple that "just work...
This is a follow up question (and possibly should have been asked before it) to this question:
Subclasses of java.util.Calendar.
I'm internationalising a large Java app that uses dates fairly regularly since a lot of the data has dates associated with it. One of the first languages that it will be translated into is Arabic.
Currently...
I already know the differences between Java Edititions (ME, SE, EE), the ME Configurations (CDC and CLDC), Profiles (like MIDP), and additional APIs specified by JSRs.
But I am totally clueless about the differeces of the several Wireless Toolkits.
For example, Mobile Tools for Eclipse explicitly supports these ones, and states that o...
Related to my question about how to build a tree-like structure, the data I receive from the server are in arrays like this: {School Chair Table Chalk}
How can I loop through this so that:
School becomes parent of Chair
Chair becomes parent of Table
Table becomes parent of Chalk
...
this is my collection which I make:
Test<v> map = new Test<V>();
but when I call sort method which I override it in Test class and also map1 is one collection that I make it in the Test class which will keeps the elements that I add to the map collection,this exception will be thrown that it is for line 5:a[i] = map.get(new Integer(i)...
There's an abstract class:
public abstract class AbstractAny {
private long period;
public void doSomething() {
// blah blah blah
period = someHardcodedValue;
// blah blah blah
}
}
I don't want to change the source of the abstract class but need to add some flexibility on how the field period is being set. Is it pos...
I have a view-state that can return multiple events. For most of them, there is a common jave method I want to "evaluate." There are are few where I want to do something different. Each event, however, will transition to a different state. My web flow code now is repeating the evaluate of the method multiple times, once for each applicab...
Are there complementary mathematical functions used in java.lang.Math that fully utilize the capabilities of BigDecimal? In other words, is there a log function that takes and returns a BigDecimal similar to how there is a log function that takes and returns a double?
...
I have two JPanels (let's call these Panel1 and Panel2). These panels are of the same width, but varying heights.
I want to put these JPanels into one big JPanel (lets call it Panel0), and stack them on top of each other (I decided to set Panel0's layout as GridLayout(0,1)).
The problem, is that both nested panels (panels 1 and 2) end...
OK, I couldn't really find a decent example for a custom TreeModel in Swing that uses more than the basic features, so I wrote my own (code follows below) so I can ask questions about it, rather than about a more complicated application that's the one I really want to write when I understand how to write it. Apologies for the fact that t...
Can anyone tell me how to create doc files using java?
I know, there's a POI library, but it seems like it can save only simple documents. You can read anything you wish, but you can't save it all back again. Or may be i missed something? How can i save whole document with pictures, tables and styles?
...
i am a student and my final project in gaduate study of Computer engineering is design and development a map viewer web application that must be used for an AVL tracking system.
i am trying with applet in java.
first, map images formate are GIF/JPG with big/large amount size(100MB).
now, i want to find, how i break map images into small...
It looks like there are 2 default mechanisms to expand a folder node in a JTree. One is to click on the expanded/collapsed icon next to a node. The other way is to double-click on the node itself.
Is there a way to stop this 2nd mechanism? I would like to override the double-click on a node so it does something (updates another display ...
In Java is there a way to find out if first character of a string is a number?
One way is
string.startsWith("1")
and do the above all the way till 9, but that seems very inefficient.
Edit:
After the answer, I found out a regex way to do this as well:
s.substring(0,1).matches("[0-9]")
...
I'm writing a Java program which uses a lot of CPU because of the nature of what it does. However, lots of it can run in parallel. When I run it, it only seems to use one CPU until it needs more then it uses another CPU - is there anything I can do in Java to force different threads to run on different cores/CPUs?
...