I made it work, thanks a lot. I will check HttpUrlConnection for more information.
Type: Posts; User: luisp88
I made it work, thanks a lot. I will check HttpUrlConnection for more information.
Ok I made a php script to edit the .conf file and it works fine giving apache the permissions. But the problem is sending the information from JAVA to PHP script.
JAVA:
URL url = new...
Thanks for the link, I am already trying to figure it out.
Its a good idea to use URL passing to edit a whole .conf file? I mean its a long string, there is no problem sending it to a php script via...
ok I understand, maybe I can make a php or perl script to do this. How do I give the information to the script? Is there any class in java to communicate with a server side script? thanks for your...
There is a server (Debian) that host the .jar files (in the public /www directory of Apache). I execute them thru java web start (it downloads the resources to the local machine) on Windows. I need...
I have tried some codes, but none of them work :(
Just as simple as trying to create and write a .txt in the server
// Open an output stream
URI uri = new...
I only need to modify one .conf file from /etc/asterisk , I have no problem giving rights to edit it. In fact, I made Apache to show me the file to the public and I can retrieve it from the server...
I am trying to modify a .conf file in the /etc/asterisk (a voice ip PBX) that gives permissions to callers. I dont know much about debian or linux, it would be easy to modify a file in the www...
Hi everyone!
This time I have a java SE web start application hosted in a Linux/Debian server
I need to edit a .conf file from the /etc directory folder in the Debian server but I have no idea how...
Problem solved! this post can be deleted
the problem was that I was importing the third-app libraries (.jars) from a folder outside all the projects, and they were supposed to be imported from the...
hi everyone
I am having a new problem which used to work perfectly
I have a java project that depends on another libraries (other netbeans projects)
I just changed my computer and imported all the...
Hi everyone, I need help with JPanel
I have a panel named "contentPanel" inside of a Main Frame and I am inserting to that panel another JPanel "MyPanel" from another class with add.()
What...
Hi everyone! I need some help
I have a jTable that uses a model for handling data
Then, in another class, depending of the class, I erase all the content of the model (and the columns)
ok I found out my mistake, I was leaving uncommented the main part that calls the constructor inside the new JDialog class, but as I was opening the JDialog from another window, I didn't need the...
I couldn't do it thru the constructor, so after I created the new JDialog instance and opened it, I sent the parameter thru a setMethod.
It also works, so thanks anyway
I want to send a parameter to the new JDialog opening window from the main JFrame window, ie a String.
Hello everyone, from my main window, I am opening a new JDialog window and I want to send a parameter from the main
Opening the new window
ExtensionUI extensionUI = new ExtensionUI(this, true);...
ok problem solved, use setColumnIdentifiers better than addColumn, it just replace columns, thanks copeg!
ok problem solved, the absolutepath was C: so I need to move my icon to C:\resources\icon.gif or put the full path
thanks!
hi everyone, I have a DefaultTableModel that I built with tableModel.addColumn("dasdasfasfs"), thereafter I fill it with addRow.
I want to reuse the tableModel, but before I want to clear it (rows...
how do I put the full path? like "C:\Users\user\Documents\NetBeansProjects\project\src\resources\img.png" ? I tried creating an Image object and thus, set the image to the frame but didnt work...
the java tutorials website is down :(
I changed imgUrl with "/resources/icon.png" but when I run it, it doesnt shows up, thought maybe png format wasnt supported but neither is gif, so I think there...
Hi everyone, I need to set an image to the window of my application
I've heard it is this way
frame.setIconImage(new ImageIcon(imgURL).getImage());
but not working, I know setIconImage needs...
how can I do this? for example, I have two clases
one called Main (a JFrame) where I want to put a menu bar, and another class called Elements (a JFrame) where my menubar with the menu items is...
Hi everyone, its my first time in this forum!
i am kind of new to java programming and iam about to start a project, a java web start application
for now, i need to know how can I develop a bar...