- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
49 Posted Topics
Re: Maybe you are talking about the System.getProperty method, here is my aproach: [CODE] import java.io.BufferedReader; import java.io.InputStreamReader; public class CommandLine { public static void main(String[] args) { boolean active = true; String username = System.getProperty("user.name"); String os = System.getProperty("os.name").trim(); try{ while(active){ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.print(username + "@" … | |
Re: well you simply creat 5 textboxes dinamically, there is no big deal: [CODE] int user_input = getUserInput(); //your method to get this input int count = 0; while(count <= user_input){ JTextField dinamyc_textfield = new JTextField(); dinamyc_textfield.setVisible(true); dinamyc_textfield.setBounds(/*Do some math here to get the correct bounds*/); dinamyc_textfield.setName(String.valueOf(count)); next_frame.add(dinamyc_textfield); count++; } [/CODE] … | |
Re: have you tried reinstanciate the array [CODE] public void clear(JButton[][] myArray){ myArray = new JButton[i][j]; //whatever your dimensions are } [/CODE] can you be a little bit more specific? | |
Re: you can initialize it as null, and then when you know how long will it be, you can assign a new array. [CODE] int[] myArray = null; //somwhere else at your code myArray = new int[10]; //or whatever your lenght will be [/CODE] just be shure to access it after … | |
Re: your paint method seems prety static to me, where is the dynamic part? are this values coming somewhere?, also if you are overriding the paint method you will spend some hard time trying to do it dynamically. Instead I found this nice example from Rose India: [url]http://www.roseindia.net/java/example/java/swing/draw-pie-chart.shtml[/url] hope it helps | |
Re: Hello, this thread is 7 days old and maybe by now your problem is solved, but in case not, I'm guessing by the nature of your problem, that you are using some kind of OutputStream in the client side. Everytime you close the stream, you are automatically closing the socket … | |
Re: Hello, java is one of the most powerful programming languages today, if you look at the TIOBE ranking, its on first place: [url]http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html[/url] I'm developing an online course to java, its under development, but we will launch a blog soon with lots of great content. if you want to sing … | |
Re: I know how to do this in linux, but it might be similar in windows, so say you have your Tomcat shell script in your init.d directory, your command should be [CODE] service Tomcat {start|stop|restart} [/CODE] then to run it in java you might want something like: [CODE] String cmd … | |
Re: I recomend you to use [URL="http://www.graphviz.org/"]GraphViz[/URL], it is a really simple to use graph toolkit I used it to represent codeblocks withing thre address code in order to run some optimizations. then you run the tracert like: [CODE] Process p; p =Runtime.getRuntime().exec("tracert <options>"); readResult(p.getInputStream()); p.destroy(); [/CODE] where readResult is where … | |
Re: yes why not, you can implement comunications trough both via webservices. the hard part is to configure both in the same server. | |
Re: you mean like moving it to another jtextfield all components based elements in java should have a method [CODE]requestFocus(boolean temporary) [/CODE] So to move the cursor to another component when condition is acomplished, you simply set it to true [CODE] boolean yourCondition = true; yourJtextField.requestFocus(yourCondition); [/CODE] hope it helps. | |
Re: now lets try to do it with live microphone audio... :S | |
Hello all, So I just moved from mocahost (worst web hosting service ever) to HostSo wich I recomend as is cheap and surprisingly good :) so the question is, after I pointed my nameservers to HostSo, I get that mysite.com is live bur [url]www.mysite.com[/url] is down. Any idea on how … | |
Hello dear community, I have a problem which I have no idea how to walk around, see I have a really large database, with france zip codes, I imported this data from excel. the thing is that when it imported all the zip codes starting by 0 are not starting … | |
Re: use cakePHP, save the Hassle of programming querys by hand :) | |
Ok! Hello Daniwebbers, lets see if you can help me this time: I'm planning to do a bot, to login into a site, collect some data and then send a report to me. Problem is, I've done some web-scrapping data before, but I have no idea on how to do … | |
Re: what if you use separated threads for doing the conectinons...? | |
Re: How about this ones: [url]http://books.google.com/books?id=dpY4wQMIBl0C&lpg=PA16&dq=java%20GXT&hl=es&pg=PP1#v=onepage&q=java%20GXT&f=false[/url] [url]http://books.google.com/books?id=W63YTzab8gkC&lpg=PA1&dq=java%20xml&hl=es&pg=PA1#v=onepage&q&f=false[/url] | |
Hi I would like a crhon job to do the following: 1) copy a zip file, eg: [url]www.somesite.com/file.zip[/url] to [url]www.mysite.com/file.zip[/url] 2) unzip such file 3) move the unziped files to another directory, after reading one of those files. Please, I have no idea on how to do this... (my thing … | |
Re: awsome dude, you should place a reference so I can find a nice place to get one of these things. Thanks | |
So I writed a complete software, and I included one custom file in the installer to hold some settings the program will need to run. The thing is that the program will need to write to this file when the user changes settings. When I run the program from Visual … | |
Re: Also You may want to obfuscate your code using some free obfuscator... look at sourceforge, so that no one will understand your code if decomipled :D | |
Well first of all, I want to know if it is true, is Linq faster than default Collections methods like, contains(), size() etc... for example if I load a 3MB text list into a List<T> to find a specific string, will it be faster to use Linq or normal methos … | |
Hello, I have a problem, I'm interfacing C# with MySQL it seems to be that a lot of connections are left open even when the close() function and the dispose() functions are called. Also I've notice that the server only resists like 80 queryes at the time, then it halts … | |
Hi, Today I was reviewing traffic for one of my websites, I found out that someone linked a jpg image into a forum, and now its getting huge bandwith I mean a lost of hits even when the image was deleted, hits I could use, is there a way for … | |
Re: Check you connection string, trim database names, see if firewall is not blocking any MySQL port. If that dont work, use die statement and post the exception here, if you cant figure out. do like this: [CODE]$sql = "your_query"; $con = mysql_connect(your_connection_string) or die("error ".mysql_error()); if (!$con) { die('Could not … | |
Hello, can you guys please sugest a way to have today date substracted 7 days, and have al of this 7 days into one String array? thanks. | |
Can you please give me, or point somewhere, to find some sample code in FASM I'm trying to do a very simple program asking for a password, if the pass is correct display a message, if not exit program. Thank you very much :) | |
Re: also you want to download the C# express edition (since it is free) here: [url]http://www.microsoft.com/express/Downloads/#2010-Visual-CS[/url] then you want to design a nice looking GUI just imagine functionality of your project. and then you can get under the hood and start working, there are plenty of code tutorials to connect to … | |
Hello Dani Webbers, So I've been given this old-as-hell database, it was designed in 1993 under pick, and it isn't at all normalized, in a good effort I've migrated all the data into MSSQL 2008 server and I have some several to several relations between tables, on of these relations … | |
Hello internet marketers, So my situation is that I have 1 or 2 (second is not finished yet) internet sites, the first one have been very frustrating because I've spent money in adwords, link building, directory submitting, and some other stuff and the thing is that I cant get any … | |
Re: [QUOTE=shruthi512;1385903]how we can set the form size is equal to the screen sixe dynamically in C# .net.[/QUOTE] you want to use the WindowState property in the Load method of the form. also you want to change the FormBorder value to "none" | |
Hello, you'll see I'm a gamer as well as a web/desktop developer and I have built so many application in both technologies. But yesterday I was amused by something I saw. I like to play this Combat Arms game from Nexon a very well developed FPS online action game, scince … | |
Hi, I have a table which stores 2 values as follow REC_TEST Id_Customer Id_Apply Id_Apply can take 2 values, "YES" or "NO" if he passes the test I've designed or not. I want to know if there is a way to take all "YES" and all "NO" from the same … | |
Hello all, I'm having some problems, see I'm making an API in php to my web app comunicate to a desktop app. Anyways, when I try to post some data to the site I need a url to go in that data, example: name=product[B]&[/B]description=something[B]&[/B]site=mysite.com?name=a[B][I]&[/I][/B]desc=b this is how the post is … | |
Re: There are several ways to do this, I'll show you one: [B]Step 1:[/B] you have to import Sql Client libraries, otherwise this wont work [CODE] Imports System.Data.SqlClient [/CODE] [B]Step 2:[/B] Set a connection string to the DB, you can find several connection strings types at: [URL="http://www.connectionstrings.com/"]http://www.connectionstrings.com/[/URL] to set this use: … | |
Hello All: I'm not quite a assembler developer (C# is my manner), this time I've been asked to come out with a md5 file cypher, can someone please provide some source code? I've tried using asmutils but no luck, please give me suggestions. Thank you very much. P.D: it is … | |
Hello All, I'm currently developing an application to Map HTML/Javascript/CSS to C# Objects and code, and I have come to a point where I get to translate all de Javascript Code to C# and the HTML to C# GUI for example: [CODE]<Input type="Button" value="Button1" class="btn_java" onClick="javascript:MyFunction()" />[/CODE] I had no … | |
Hello all, can anyone tell me how to make a JFrame fixed, by not allowing user to drag it somewhere else in the window? like doking the JFrame in the screen, also disallow user to resize it. Thanks. | |
Re: Why not trying the Convert.ToDateTime() method, take a look: [url]http://msdn.microsoft.com/en-us/library/9xk1h71t.aspx[/url] | |
Hello people! I need a php application, client changed his mind in the middle, so I need it fast! Please recomend, php code generators, tools, IDE's Frameworks, everything that is easy to learn and use. (I've already trying symfony but I find it complex to use) | |
Re: No man! tenes que usar Threads definitivamente mira que es bien facil, hace lo siguiente: [CODE] Thread myThread = new Thread(new Runnable(){ public void run(){ //Las acciones del metodo aqui } }); //en otra seccion del programa ... myThread.interrupt(); //seria mas facil si haces myThread accesible a todos los metodos … | |
Re: ...or you can use .ShowDialog() function, then one of the buttons in the dialog form will need the DialogResult property set, so that way you can catch DialogResult OK, or CANCEL or whatever... I think this is safer, but of course user can only open one dialog at time. | |
Hi All, I have a small company which is studying the posibilty to create a freeware opensource Visual Basic IDE, built in QT/C++ for running under linux and generating object code and assembler code in a easy way. So to start, I was wondering if anyone have a Visual Basic … | |
Re: Maybe you should use a LinkedList of LinkedList, would be slower but more powerfull as LinkedList are dinamically Allocated. [CODE] public LinkedList<LinkedList<LevelNode>> ExistingXMLList; [/CODE] | |
Re: You need to go to the FileBrowse.Designer.cs file, search where the btnBrowse declaration is, and change it to public, anyways this would only grant you acces to the very button properties, as Size, text etc... if you want to execute button instructions, you need to place those instructions into one … | |
Re: [URL="http://faxdotnet.codeplex.com/"]http://faxdotnet.codeplex.com/[/URL] | |
Re: Try creating a method which contains instructions of button1, then invoke that method when clicking button1 and when clickin button2 also, like this:[CODE] private void button1_Click(object sender, EventArgs e) { webBrowser1.Navigate("http://xxx/login.aspx"); this.button2_Actions(); } private void button2_Click(object sender, EventArgs e) { this.button2_Actions(); } private void button2_Actions(){ webBrowser1.document.GetElementById("userlogin").InnerText = "xxxxx"; webBrowser1.document.GetElementById("passwd").InnerText = … | |
Hello, folks at Dani Web I'm a new to Dani Web and I hope to be helpful to a lot of people, but first I want to ask something. You see I have a huge problem, it begins with a desktop app I'm currently coding written in C# for a … |