- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Hi everyone, i'm trying to code a Clock with 2 7segment (commun anode) with 8051 microcontroller in assembly language. i use only two 7 segment led because i want just minutes and secondes for hours i will see later. So i tried to code and when i run it, it's … |
|
Hello, how can copy and save the console message to a file using logger. i try this :[Click Here](https://friendpaste.com/6FWNg0QIzY7DoPXisOyqpv) but it's only saving warning and info messages to my file. thank you |
|
Hello everyone, i have a NullPointerException error in my code at line4. Can someone guide me please. the code is here:[Click Here](https://friendpaste.com/21WFtusmIesUcgQ8erTzT9) Thank you very much NS |
|
Hi everyone, i want to set input verifier for a jspinner when the user click a value and if the value is out of range (0 to 10) it must display a message like "Please enter a value between 0 to 10" and it must validate until the correct value … |
|
Hi, i have two buttons: Add button and Clear button one Jlist 1- when i click on Add button, it will add some data in the jlist. 2- when i click on Clear Button, it will clear perfectly the jlist. but when i re-click on Add button, here it add … |
|
Re:
Hi folks.. I had a problem and looking for the answer..The exact question of mine is [this](http://webapps.stackexchange.com/questions/18959/can-i-form-a-direct-url-to-a-particular-gmail-account) Sorry that i dint typed the entire question here but i'm afraid that i may not able to explain well if I type that entire thing. But that was my exact question which … |
|
i'm trying to modify a java code. I have a jSpinner where the user have to choose a number like minimum 0 and after this step the user can continue by clicking the OK button and continue his steps... So here what i want is when the user didn't enter … |
|
Hi, i try to handle a Neagtive number exception in my code. i tried this but it shows "illegal start of type" why please? Here is my code: public class JPanelTemporal extends javax.swing.JPanel { public JPanelTemporal() { initComponents(); } public void setDuration(int duration){ this.jSpinnerDuration.setValue(duration); } public Time getTime(){ Time time … |
|
Hello, is it possible to display an Error message when we enter a number in jSpinner. I tried this, in Netbeans i right-clicked the jSpinner , then go to -Properties -tooltiptext and write Range 1 to 200 -Model i choose the spinnermodel/Spinner Model Editor/Model type = number model properties = … |
|
Re:
hi plz tell me the coding of exception handling in java.. |
|
HI, could someone explain me this line of code: public void createTextFile(Layer layer, String prcString, String arString) { File fileStatPercent = new File(fileName+layer.getName() + "Test.txt"); try { BufferedWriter out = new BufferedWriter(new FileWriter(fileName + layer.getName() + "Test.txt")); out.write("something"); out.newLine(); out.write(prctString); out.newLine(); out.write("something"); out.newLine(); out.write(arString); out.write("\n"); out.close(); Thank you, i don't … |
|
Hi, i have a JComboBox in a small java program. if i see the properties of the JComboBox i can see SelectedIndex = -1 SelectedItem = null But i can't the name of each item and i have 5 items normally. Where can i see them in the properties? Thank … |
|
Hi all, Here is what i found with google to Find and Replace word in Java: [CODE] public class ReplaceAll { public static void main(String[] args) { String str="We want replace replace word from this string"; str=str.replaceAll("replace", "Done"); System.out.println(str); } }[/CODE] It works well but how to do the same … |
|
Hello, i try the tutorial Get Attachment File Name from Java2s.com. What i'm doing is to read email from the Outlook Web Access Light. If i put the url address of the Outlook Web Access Light, i have the error: [CODE]Exception in thread "main" javax.mail.NoSuchProviderException: No provider for http at … |
|
Hi, i'm trying to write a batch file that that copy the 10 first lines from a text file (myfile.txt) and paste it to an existing file(target.txt) at the top of the text. So i tried this after searching in google but it doesn't work as i want. [CODE]@echo off … |
|
Hello, i would to import the last modified txt file from a directory (c:\Folder) using a macro in Excel. I have a folder which is incremented everyday by a new txt file. The goal is to import the last txt file added in the direrctory. I've already created a an … |
|
Hello, i'm beginner in eclipse and i try the helloWorld.java with Eclipse After creating the JAR file, if i click it, i have an error message: [CODE]Failed to load Main.Class manifest attribute from D:\Ecipse\workspace\HelloWorld\[/CODE] I don't understand why i can't launch my HelloWorld.jar My java version is 6.1.7.600 and i … |
|
Hello, i would like to know how to implement the FileNotFoundException in my code. my code concatenate files from a Folder, it's working well even if there is no file. So i want to throw a message something like 'There is no file in the folder" If there is no … |
|
hi, i try to run java program with ProcessBuilder but it works only with .exe file and with .jar or .java i use netbeans 6.9 why please? [CODE]import java.io.*; public class Mani { public static void main(String args[]) throws IOException, InterruptedException { try { Process p=Runtime.getRuntime().exec("javaw -jar D:\\NetBeansProjects\\GetIPAddress\\dist\\GetIPAddress.jar"); } catch(IOException … |
|
Hi, i have a text file containing data like temperatures, voltage... this file contains more than 2000 rows What i want is to import this text file with Excel using Java. because i don't to open excel then click on import then choose the file...etc If someone know a tutorial … |
|
Hi, i'm trying to copy and paste 12 last modified files from a folder to another one. my code is working but it gets every files in the folder with any dates. any help will be appreciated. Thank you very much [CODE]import java.io.*; import java.text.*; import java.util.*; class FileFilterDateIntervalUtils implements … |
|
Hi, i'm still beginner in java. Here is my simple question: if we have two java programs like: -test1.java which open a file for example. test2.java which move one file to another directory. Suppose these two programs are working well separately. if one day, we want to write just one … |
|
Hi, here i just try to delete the content in text file between S and e letter. but i don't know to write the ReplaceAll() methode after this [CODE]String[] paras = Pattern.compile("^(S)(.*)(e)$").split(inputText);[/CODE] How could i use ReplaceAll() here? Thank you |
|
Hi, i'm trying to use regex to delete lines which starts with a letter or a number. for example: if i have a text file with many lines and i want to delete every lines which starts with S and 2. What operator do i have to use? i tried … |
|
Hi everyone, i would like to extract data from text like the following one: [CODE]........... 2011/01/12 The thread 001 title should clearly describe 2011/01/12 This describe or discussion topic. General 2011/01/12 This desc 002 nor discussion topic. General 2011/01/12 titles is 003 as 'Help Me' or 'Urgent' 2011/01/12 This describe … |
|
Hello, in java, if we want to extract all values between 10 and 100, how could we express between in java. Is there any symbol like && || ..? Thank you |
|
Hello, here is a code for retrieving some lines from a text file. i'd like to extract data from line2 to line4 ---> this is working but in the same time i want to data from Line10 to line12 here is the code, my conditions is not working: Thank you … |
|
Hi, i know how to read specific line form a text file but if we want to delete lines by specifying the line number. here is the code, but it's not working: i want to delete line 1 and 2 of the text file. [CODE]import java.io.*; public class ReadSpecificLine { … |
|
Hello every one, is it possible to get files from a file list display with System.out.println. I mean for example if you code something like: System.out.println("file.getName"); Then you get a file list. After how could we use this file list to for example copy or move or anything else with … |
|
Hi, is it possible to get the list of last life added in a folder with java? i don't want to get the lastmodified file which return a date or time. i want to get the file name of last added in a folder. Thank you all |