- Upvotes Received
- 7
- Posts with Upvotes
- 7
- Upvoting Members
- 7
- Downvotes Received
- 7
- Posts with Downvotes
- 7
- Downvoting Members
- 5
54 Posted Topics
Re: good new for anyone with an ipod touch or iphone... but hopefully the free apps still remain illegal | |
Re: try this out [CODE] Icon icon = new ImageIcon(file path); JLabel label = new JLabel; label.setIcon(icon); [/CODE] | |
Re: try adsense its what i use [URL snipped] | |
Re: [QUOTE=l_savitha;1487059]Can any one suggest how to proceed with this. On clicking on print button it should start printing on the console while the other button end is clicked it should stop printing. When print button is clicked end button click is not recognised until process is print process is completed[/QUOTE] … | |
Re: [QUOTE=semccarthy;1484907]Hi, I'm currently designing a software application for teaching, it will have a large backend database, short animation videos(basic 2d of people talkin). I'm just looking for some advice in what is the best language to code this type of project in. I have done several projects in both java … | |
how can i get java to enter/type text into a textbox for me once i select it(click inside it) so the cursor is there. Also how would i get it to send the enter key or other "non-text" keys. | |
Re: if you want the string of the number its [CODE] String userNumber = "" + Usernum; [/CODE] | |
Re: not to be too helpful (not really possible) but here is the final code becuase its kinda hard to figure out where to put his code in the program [CODE] import java.util.Collections; import java.util.ArrayList; public class Lottery { public static void main(String[] args) { ArrayList<Integer> numbers = new ArrayList<Integer>(); for(int … | |
Re: for the button thing use this [CODE] enter = new JButton("Click here to calculate numeric palindrome."); enter.setActionCommand("enter"); enter.addActionListener(this); [/CODE] and for the action thing this [CODE] public void actionPerformed(ActionEvent e){ if("enter".equals(e.getActionCommand())){ //your code here } } [/CODE] | |
Re: whats with everyone expecting help for homework from "us" when they don't even have any code to start | |
Re: heres how i would do it [CODE] File ofile = fc.getSelectedFile(); file = new File(yourfilepath); FileInputStream fis = null; BufferedInputStream bis = null; DataInputStream dis = null; textArea.setText(null); try { fis = new FileInputStream(file); bis = new BufferedInputStream(fis); dis = new DataInputStream(bis); while (dis.available() != 0) { textArea.setText(textArea.getText() + dis.readLine()); … | |
I'm wondering if its possible to program using xcode for ios(I pod touch, I phone, I pad) on windows? | |
Re: [QUOTE=ztini;1486693]If I have this code: int a = 10; int b = 5; int c = a + b; System.out.println(c); You do not want to use the int c. Your code should model this: int a = 10; int b = 5; System.out.println(a + b); There are 2 fold reasons … | |
Re: input: [CODE] File ofile = fc.getSelectedFile(); file = new File(yourfilepath); FileInputStream fis = null; BufferedInputStream bis = null; DataInputStream dis = null; textArea.setText(null); try { fis = new FileInputStream(file); bis = new BufferedInputStream(fis); dis = new DataInputStream(bis); while (dis.available() != 0) { textArea.setText(textArea.getText() + dis.readLine()); } fis.close(); bis.close(); dis.close(); } … | |
Re: You need the latest JDK (1.6.0_24) [URL="https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jdk-6u24-oth-JPR@CDS-CDS_Developer"]here[/URL] and you should probably get an IDE (i suggest Eclipse) [URL="http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/heliossr2"]here[/URL] | |
Re: [QUOTE=Shizuo;1482155]it give an access denied<java.io.filepermission Item.txt write> error[/QUOTE] are you not admin trying to use a file on the c drive. it looks like you dont have permission to write there. | |
Re: when doing [CODE]System.out.println();[/CODE] its not supposed to put it in a text area if thats your thinking | |
Re: [QUOTE=shookees;1484282]Hello, I've been trying recently to find out how to print out text into the screen like from keyboard, that is printing into active window, just like from keyboard port. Is there a premade package/method for that or how do I use the keyboard port?[/QUOTE] what do you mean my … ![]() | |
![]() | |
Re: [QUOTE=royng;1484330]Can you please teach me that? And what is c# code? I am not very knowledgeable at the topic[/QUOTE] C# is a programming language that is intended to be a simple, modern, general-purpose, object-oriented programming language. its kinda a little like c. also next time just "wiki" it | |
Re: im not knew to java... but a jar bookmark what is that? | |
I noticed my JDK is 6u21(1.6.0_21) and the newest is 6u24(1.6.0_24) is there any way for me to update without re downloading, is there and reason to either? | |
Re: no it would be (true) not ("true") [QUOTE=niksinghania;1484550]I think It should be recordingActivation = new Boolean("true"); instead of recordingActivation = new Boolean(true);[/QUOTE] | |
are pictures displayed next to your post and your own title like "newbie" or java addicts "posting maven" only for admins or are they anyone above a certain number of posts, if so how many posts? | |
Re: [QUOTE=sangadala;1483156]java soo easy....................[/QUOTE] thats your first post here, did you come just to brag? | |
Re: [QUOTE=lohit kumar;1483522]Hello Everyone, i'm trying to convert a .jar file to .exe... first of all is it possible? If so then how?[/QUOTE] its possible but why would you ever want to do that? Java is so great becuase it works on any OS. | |
In my program when i close the save file chooser it opens another one ??? heres the code [CODE] import javax.swing.*; import javax.swing.filechooser.FileNameExtensionFilter; import java.awt.*; import java.awt.event.*; import java.io.*; public class JB extends JPanel implements ActionListener{ protected JTextArea textArea; public JB() { setLayout(new BorderLayout()); JTextArea textArea = new JTextArea(); textArea.setFont(new … | |
I am currently using eclipse but thinking of NetBeans because of gui. I don't want to download it yet because i dont want to have unused programs on my computer. so should i download it for gui? | |
i need to access the current text of a JTextField from another method but i get an error here is the code [CODE]public Calc(){ JTextField textBox1, textBox2; setLayout(new FlowLayout()); textBox1 = new JTextField(" Time "); textBox2 = new JTextField(" Exp "); JLabel lRate = new JLabel("Rate"); JButton calc = new … | |
I wanted to know if its possible to change the text of a JTextArea or JTextPanel from another method and if so how? | |
when ever i try to compile/run my game in eclipse it says this [QUOTE]Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at OurGame.Board.checkCollisions(Board.java:78) at OurGame.Board.actionPerformed(Board.java:40) at javax.swing.Timer.fireActionPerformed(Unknown Source) at javax.swing.Timer$DoPostEvent.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at … | |
Re: you definitely should not give up because you cant instantly figure out the steps | |
Re: here is the code fully fixed because your a newb p.s. im 12 lol [CODE]import java.text.*; public class Mortgage{ public static void main (String[] args){ DecimalFormat num=new DecimalFormat ("$,###.00"); double P= 100000; double I = 0.07; double T= 12*30; double MP = (P*(I/12)) / 1-Math.pow((1/(1+I/12)),(T)); System.out.println(num.format(MP)); System.out.println("The Monthly Mortgage Payment … | |
I'm trying to make a program where you enter the number you want to find primes up to which then lists all the primes up to that number... But I enter 100 then it just sits there... Here's my code so far: [CODE]#include <iostream> #include <cmath> int prime(int); int main() … | |
could someone please explain to me the differences of these languages (C, C++, C#) and when i would use them. (i know a little C++) | |
I was watching the java game tutorials by thenewboston on youtube but he stopped making them. Anyone know of any good tutorials for making java 2d or 3d games? | |
Re: DON'T download aim bots from other people most of them contain trojans or you have to do surveys to download which don't work and if they do its a fake.... just some helpful info | |
Re: the tags go like this [CODE] <?php ?> [/CODE] btw you might want an apache server i suggest xampp | |
Re: when you start out with mysql the username is root pass is null (there is no pass) ![]() | |
i need help drawing an image in an applet for some reason it doesn't show up but there are no errors [CODE]package Game; import java.applet.*; import java.awt.event.*; import java.awt.*; import javax.swing.ImageIcon; public class AppletOne extends Applet implements Runnable, KeyListener{ int x_pos = 10; int y_pos = 100; int x_speed = … | |
i want to make a 3D game in Java but the tutorials i was watching aren't being made and i don't know which 3D to use because j3d looks pretty bad... and i'm not new to Java just new to 3D. | |
Im making an applet that moves a red ball using the WASD keys but it doesnt work for some reason help? [CODE]package Game; import java.applet.*; import java.awt.event.*; import java.awt.*; public class AppletOne extends Applet implements Runnable, KeyListener{ int x_pos = 10; int y_pos = 100; int x_speed = 3; int … | |
Re: hope this helps [CODE]import java.sql.Date; private class Person{ private String firstName, lastName; private Date birthDate; public Person(String fN, String lN, int month, int day, int year) { firstName = fN; lastName = lN; birthDate = new Date(month, day, year); } public boolean equals(Person theOtherPerson) { return firstName.equals(theOtherPerson.firstName) && lastName.equals(theOtherPerson.lastName) && … | |
this is supposed to log the ip's of people connecting to my site but it wont work help? [CODE]<?php $username="****"; $password="*****"; $database="ipconnect"; $ip=@$REMOTE_ADDR; mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query = "INSERT INTO ip VALUES ('$ip')"; mysql_query($query); mysql_close(); ?>[/CODE] | |
im trying to make so one if has two outcomes ex: if(prime % chk == 0) prime++ (and) chk++; i want to know how to put (and) into code so it does both if prime % chk == 0 this is what i have for my prime finder [CODE]class Number … | |
i want to make a save button for images without having to open a save file dialog so i would specify the name and location to save in the code please help |
The End.