I am trying to integrate ICEpdf viewer into an existing Java Swing application. The requirements are that I want to eliminate the top and bottom tool bars and the scroll bar, which I have already done. The problem is that I also don't want it to have that gray area around the pdf document. I want it to show up purely as a white page on...
im using Jtable and i filtered rows but i cant add aditional rows dynamically pls any one help me..Thank you.
...
I would like to activate my Swing application programatically. I mean that I would like to write code that cause the JFrame to be visible and focused (the window header should be highlighted).
I tried to use requestFocus(). It works only if application has at least 2 windows A and B: A is hidden, B is visible. Now if I call A.requestFoc...
I'm writing a text/code editing program for my own use in Java/Swing, and was wondering how I would go about setting up a built-in C compiler inside it. I would likely use GCC or TCC as the compiler. Anyway, my question is- how would I actually implement the compiler? Would I use a library that gives Java access to command line commands?...
Hello ,
My Swing Java application works fine on Mac OS X, but its title in Mac's title bar appears like this "org.classes.MainClass" which is the main class's path of my application.
Can i change this title through code or in the Manifest file of my java application ?
...
From SwingLabs Forum, it seems that there is no plan to make JXTreeTable sortable.
From the thread, another alternative is
"You could use JXTable & GlazedLists TreeList to make a TreeTable"
However, I prefer to have a API which is ready with sortable feature, instead of the need of building by hand.
I was wondering, is there any alte...
For a custom TableModel, I am overriding isCellEditable, which is returning true always.
I am also overriding setValueAt, but don't know how to use the method, so that, JTable reflects the changes done by editing.
Below is the modified code for PersonTableModel :-
class PersonTableModel extends AbstractTableModel{
public int getR...
I'm building an application with a form that I'd like to populate with questions from a database table.
Is it possible to do this in the Netbeans GUI designer so that each question is inserted into the label of a checkbox element?
My initial idea of how to do this would be to get a result set back from the database and loop it, however...
Using DJ Native Swing it is possible to show a web page within a java application. When you do this it is also possible to communicate from the browser to the java runtime environment using the "command" protocol. The documentation has a code snippet which demonstrates it's usage:
function sendCommand( command ){
var s = 'command:/...
For example, I have a window with a preference button.
I want to make it so that when user press the preference button and checks his/her appropriate options and press ok, it saves the preference, then when user presses run on the main window, it runs accordingly to preference the user changed on the preference window.
Thank you in adva...
Is there a library that makes it possible to write Swing based GUIs similar to the manner done by SwingBuilder in Groovy?
I am hoping to develop a Java GUI application without embedding Groovy or another complete programming language in Java, and I find the standard Java syntax rather tedious.
...
Hi, I have a small java GUI application with a text field on it. When the user clicks the text field an event is triggered and the JFileChooser is launched. It's restricted to directories only.
What I'm trying to do is to get the full path of the directory that was chosen and put it in the text field.
I have no idea how to do this, I...
I'm trying to modify a GUI. It is hosting a GLCanvas displaying JOGL content.
Here is the code to set it up:
private void setupWindow() {
this.frame = new JFrame(WINDOW_TITLE);
frame.setSize(width, height);
frame.setVisible(true);
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEve...
I have a jTextArea with a long string.
Let's usume:
String str = "this is a toooo long string";
Now i want to show this string in one swing jTextArea. But my textArea has limited size on the frame. So, i'm not be able to see the entire string.
For exemple, the text area only shows:
"this is a t"
It is possible to textarea avoid h...
Hi All
I need to customize the look and feel of jslider in swing in java.
I have an image of knob of jslider. I need to put this image of knob over jslider's knob which we used to select a value from the given range.
I dont want to use the default knob image of jslider. Instead i want to place my own knob's image over it.
Please help...
Hi All,
I need to customize the knob of JSlider. I need to put my own knob's image over default knob of Jslider.
The problem is that currently two knobs are coming in response. One my own knob and second the default knob. Please tell me how i can i hide the default knob or any other solution.
Below code is used to do so.
public class...
Hi, I have a JFrame which pops up when the event occurs. I am having a functionality which when the event occurs the JFrame pops up and if we click on that Frame it will open the corresponding frame, but the issue is when I am not clicking the popped up frame when the event occurs, if another event comes its displays the frame in the tas...
Hi, I am a little stuck. I can't figure out a much bigger problem than this, so I am going to the roots to eventually build my way up!
I can't print the selected item in the combo box, currently I have an ActionListener for it:
box.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt) {
myBox(...
Hi,
I want to position a JDialog box below a JTextField of a JFrame and when the dialog box opens my JFrame should not able to move -- that is, it should not be draggable. Any suggestions?
...
I've been trying to find a way to do this for a while now and can't quite seem to figure it out. I know you can change the orientation of a JSlider, using setOrientation(HORIZONTAL|VERTICAL), and that you can also invert the scale, using setInverted(true). My problem is as follows:
1) The JSlider needs to be horizontal;
2) The JSlider n...