pcboyyyy's Profile User Rating: -----

Reputation: 0 Apprentice
Active Members
Active Posts:
103 (0.05 per day)
29-August 10
Profile Views:
Last Active:
User is offline Mar 04 2015 09:40 PM

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Favorite Gaming Platform:
Your Car:
Dream Kudos:

Latest Visitors

Icon   pcboyyyy Help on my Calendar Event thread would be much appreciated.

Posts I've Made

  1. In Topic: Traversing, opening, reading and writing files

    Posted 3 Mar 2015

    I did read this and it didn't help me:

    Reading and Writing Files :the docs

    I don't want to edit a file. For now in the process, I want to open, read and close each file in a specific directory, reading them line by line.

    Once I can accomplish that task, I want to search for specific content in each file.

    Once I accomplish that, I want to use the specific searched content to create an XML file.

    Once I accomplish that, I want to import the XML file into an SQL database.

    Is it more clear now?
  2. In Topic: Java Calendar Applet

    Posted 28 Nov 2014

    Can someone toss me a bone here? I know some of you can help answer my latest question...
  3. In Topic: Java Calendar Applet

    Posted 26 Nov 2014

    Ok, I'm taking a different approach to my applet.

    I would like to call in the month and current year for the calendar header and I'm having an issue doing that.

    Here is my code right now:

    import java.awt.*;
    import java.util.GregorianCalendar;
    import javax.swing.*;
    	public class CalendarDisplayApplet extends JApplet {
    	    // Instance Variables
    	    GregorianCalendar calendar = new GregorianCalendar();
    	    int arrange = 7;
    	    int column = 7;
    	    String[] week = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
    	    String[] month = { "January", "Februrary", "March", "April", "May", "June", "July", "August",
    	    		"September", "October", "November", "December"};
    	    JLabel[][] grid = new JLabel[arrange][column];
    	   	JPanel jpnlCalendar = new JPanel(new GridLayout(7, 7));
    	    int today = calendar.get(GregorianCalendar.DAY_OF_MONTH);
    	    int daysInMonth = calendar.getActualMaximum(GregorianCalendar.DAY_OF_MONTH);
    	    int daysInWeek = calendar.get(GregorianCalendar.DAY_OF_WEEK);
    	    public void init() {
    	        // setting grid
    	        for (int i = 0; i < grid.length; i++) {
    	            for (int j = 0; j < grid[0].length; j++) {
    	                grid[i][j] = new JLabel();
    	        // grid layout
    	        Container contenu = getContentPane();
    	        for (int i = 0; i < arrange; i++) {
    	            for (int j = 0; j < column; j++) {
    	        // adding JPanels + positions
    	        // draw week days
    	        for (int i = 0; i < week.length; i++) {
    	        // draw name of month
    	        //for (int m = 0; m < month.length; m++) {
    	       // }
    	        //conditions for the calendar
    	        calendar.set(GregorianCalendar.DAY_OF_MONTH, 1);
    	        int daysInWeek = calendar.get(GregorianCalendar.DAY_OF_WEEK)- 1;
    	        if (daysInWeek == 0)
    	            daysInWeek = 7;
    	        calendar.set(GregorianCalendar.DAY_OF_MONTH, today);
    	        int days = 1;
    	        for (int k = daysInWeek; k < column; k++) {
    	            grid[1][k].setText(days + "");
    	            if (days == today)
    	                grid[1][k].setText(days + "*");
    	        // draw calendar
    	        for (int i = 2; i <= column; i++) {
    	            for (int j = 0; j < arrange; j++) {
    	                if (days <= daysInMonth) {
    	                    grid[i][j].setText(days + "");
    	                    if (days == today)
    	                        grid[i][j].setText(days + "*");
  4. In Topic: Java Calendar Applet

    Posted 25 Nov 2014

    My apologies. I just saw the latest reply.

    I'm still confused...
  5. In Topic: Java Calendar Applet

    Posted 25 Nov 2014

    View Postg00se, on 25 November 2014 - 10:24 AM, said:

    printCalendarMonthYear needs to be made to return String. That will solve your problem

    I see, but I don't fully understand what you mean? Are you talking about inside of the applet class or do I need to change something in my calc class as well?

    Can you provide an example for me?

    Thanks for the good piece of information.

My Information

Member Title:
D.I.C Head
Age Unknown
Birthday Unknown
Engineering, software, hardware, computers, reading, golf, e-commerce, business, networking, retail.
Years Programming:
Programming Languages:
VB.NET, C#, C++, C, Java, PHP, CSS, HTML.

Contact Information

Click here to e-mail me


pcboyyyy has no profile comments yet. Why not say hello?