- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Beginner programmer and gamer
- Interests
- Gaming and Coding (java,c#)
12 Posted Topics
Re: You declared a new File but you also have to declare an ObjectOutputStream (TextOutputStream) in order to save it on your desktop. Try that? | |
Re: Did you write some code by yourself? Try using a Class -> "Student" with getters and setters for your details If you filled in all information just print each student object with your filtered category system. like this: List<Student> studentList = new ArrayList<Student>(); for(Student student : studentList){ if(student.getGrade ... 90){ … | |
Re: Don't you need delegate void for this? like this: public delegate void ControlLocation(Control control, Location loc); public void SetLocation(Control control, Location loc) { if (control.InvokeRequired) { control.Invoke(new ControlLocation(SetLocation), new object[]{control, loc}); } else { control.Location=loc; } } Or am I mistaken? | |
Re: Chrome has a addon for this: WebFilter Pro | |
Re: Foreach element you take, you need to take the next element too. If the next element is bigger then your ArrayList Size you need to take first element again (reset to 0). To stop you can make an if statement to check if the counter reaches your argument of 5 … | |
Re: Google is your friend :) I found some solutions just entering this: "C# picturebox rotate" | |
Re: You can do this: String[] theArray = {"Bill", "Mary", "Lee", "Agnes", "Alfred", "Thomas", "Alvin", "Bernard", "Ezra", "Herman"}; List<String> ascendList = Arrays.asList(theArray); List<String> descendList = Arrays.asList(theArray); Collections.sort(ascendList); //ASCENDED Collections.sort(descendList, Collections.reverseOrder()); //DESCEND LIST To show the list: (same for descendList) for(String item : ascendList){ System.out.println(item); } Hope this helps. | |
Re: You need something like this in HomeScreenController Use this in your Button (ActionListener): // YOU CAN USE ANONYMOUS INNER ... public void ActionPerformed(ActionEvent e){ if(e.getSource() == but){ HomeScreenController h = new HomeScreenController(this); } } Use this in your HomeScreenController Class public class HomeScreenController{ public LoginScreenController main; public HomeScreenController(LoginScreenController login){ this.main … | |
Re: I think you forgot this: Class.ForName("com.mysql.jdbc.driver"); | |
Re: You can set the size of your button like this: this.setlayoutManager(null); //Where the button is placed on a panel / frame / ... Button but = new Button("Button"); but.setBounds(x,y,w,l); //xposition / uposition / width /length this.add(but); | |
Re: You can use serialization on this (implements Serialization) Use an ObjectOutputStream to save your data and ObjectInputStream to get it back. For creating more Person object's you can use this: private List<Person> variable = new ArrayList<Person>(); Person p = new Person(); p.setName(...); p.setAge(...); variable.add(p); //-> Add person object Every new … | |
While installing my iphone 4s I encountered a problem. I bought it today ... 1. I can't sign into my apple id on IMESSAGE TAB/SCREEN 2. I can't send SMS but I can receive them also I can call other mobile numbers (WIFI and 3G works for me so I … |
The End.