There are multiple ways but I recommend these lines of code:
GraphicsEnvironment e = GraphicsEnvironment.getLocalGraphicsEnvironment();
Frame fr= new Frame();
fr.setMaximizedBounds(e.getMaximumWindowBounds());
fr.setExtendedState(main.getExtendedState() | JFrame.MAXIMIZED_BOTH);
fr.setVisible(true);
The code above will maximize your frame/window without hiding the taskbar (at the bottom part) in your screen except if you used undecorated frame. Any maximizing will hide your taskbar. This is according to my own experience but if you found ways to against it, please post it as a comment. Thanks :)
Wednesday, May 4, 2011
Sunday, April 17, 2011
Yahoo! Mail is upgrading
The new Yahoo! Mail interface
I just received a service announcement email from Yahoo! that asks me to upgrade to the newest version of Yahoo! Mail. For the past 8 years, I've been using the original version but I think it's time to move to the newest. There has been an invitation to upgrade last time but I did not continue because I kinda don't trust the version. It doesn't mean that I trust the version now, especially when I saw that it's still in Beta, but uh - the email said that all Yahoo! Mail users will be asked to upgrade. That means, they will eliminate the old versions, totally scrap them out. I just agreed to upgrade, thinking that there could be technical issues that they'd like to address. Like, maybe, the older version eats up a lot of space in their database, or they saw some security loopholes that they already fixed,etc.
Whichever the case, I already upgraded my account and there's no going back. Somehow I liked it. I just hope they're not going to mess up with my mails. XD
P.S. HOW TO CHANGE YOUR MAIL SKIN/ THEME
The upgrade comes with an ORANGE theme. To change this, just click OPTIONS on the upper left part of your page and click THEMES.
Select from a limited list of themes and click DONE.
I understand that there's not much to choose from for now but I expect that after the Beta version, there will be a variety and more exciting themes that we could try out.
P.S. HOW TO CHANGE YOUR MAIL SKIN/ THEME
The upgrade comes with an ORANGE theme. To change this, just click OPTIONS on the upper left part of your page and click THEMES.
Select from a limited list of themes and click DONE.
I understand that there's not much to choose from for now but I expect that after the Beta version, there will be a variety and more exciting themes that we could try out.
---
Sunday, April 10, 2011
How to arrange/ sort/ list words/ sentences alphabetically in MSWord 2007
1. Highlight the items whether in TABLE or in LIST.
2. Select Home from the menu tab then click SORT button
3. Select SORT options using your preference then click OK button.
2. Select Home from the menu tab then click SORT button
3. Select SORT options using your preference then click OK button.
- That should work - :D
Friday, March 25, 2011
How to enable Save and Quit Tabs in Firefox 4
I was more than excited to install a new version of firefox when I heard that they already released the community - driven development of the fourth version (firefox 4). After quite some time of enjoyment with the browser's graphics and ergonomics, I found out that they DID NOT enable the window prompt to SAVE TABS. When you close the browser, all you get is a notification to CONFIRM that you are really closing the tabs.For me this is a great BOO-HOO! I live with my tabs; When I close the browser I want to see them again the next time I open it. Good thing I found a relatively good (but not user - friendly) solution and it goes like this:
Step 1: Type about:config in the address bar. Click "I'll be careful, I promise!" button.
Step 2: Type browser.showQuitWarning in the filter tab that you will see. This will show you one row of result of browser.showQuitWarning set to false.
Sunday, August 22, 2010
How to remove events not used in NETBEANS
You might want to remove some events that are not used anymore in your NetBeans file project. You cannot just delete it from the code editor because NetBeans lock it, indicated by the gray color of the line of codes.
Here's how to remove those unused codes:
1. Go to the GUI builder, the Design view of your file.
2. Right click and select Properties. The default open tab is the Properties list. Select the Events tab.
3. You would see events list and what handlers these events are associated.
4. Choose the event you'd like to delete by selecting the [...] button.
5. A new dialog will pop up. Select the handler then click Remove button.
Here's how to remove those unused codes:
1. Go to the GUI builder, the Design view of your file.
2. Right click and select Properties. The default open tab is the Properties list. Select the Events tab.
3. You would see events list and what handlers these events are associated.
4. Choose the event you'd like to delete by selecting the [...] button.
5. A new dialog will pop up. Select the handler then click Remove button.
Monday, July 26, 2010
How to change any date format to DATE datatype in MySQL (Insert or Update)
----
Use this function: STR_TO_DATE('date', 'format')
This accepts two parameters: date and format where date is the input raw date you want to change and format is the corresponding format relative to date that you want to change.
For example:
INSERT INTO table(date_field) VALUES(STR_TO_DATE('December 8, 2010','%M %d,%Y'));
Note: table is the name of the table in database and date_field is the name of field in DATE datatype.
The statement above shows 2 parameters date as 'December 8, 2010' and format '%M %d, %Y'. The format is the exact format of the date, so that the mysql knows from what format will it convert the date to DATE datatype format which is '%y-%m-%d'.
Other valid examples are:
Use this function: STR_TO_DATE('date', 'format')
This accepts two parameters: date and format where date is the input raw date you want to change and format is the corresponding format relative to date that you want to change.
For example:
INSERT INTO table(date_field) VALUES(STR_TO_DATE('December 8, 2010','%M %d,%Y'));
Note: table is the name of the table in database and date_field is the name of field in DATE datatype.
The statement above shows 2 parameters date as 'December 8, 2010' and format '%M %d, %Y'. The format is the exact format of the date, so that the mysql knows from what format will it convert the date to DATE datatype format which is '%y-%m-%d'.
Other valid examples are:
INSERT INTO table(date_field) VALUES(STR_TO_DATE('12-31-2004', '%m-%d-%Y'));
INSERT INTO table(date_field) VALUES(STR_TO_DATE('12/31/2004', '%m/%d/%Y'));
UPDATE table SET date_field = STR_TO_DATE('Dec 31, 2004', '%b %d, %Y');
----
----
Thursday, July 15, 2010
How to disable edit cell in JTable (especially in NetBeans)
Put this in your code:
where table is the name of your JTable.
For NetBeans users:
1. select the table GUI, right click, select Customize Code
2. Your code should look like this:
table = new javax.swing.JTable(){
public boolean isCellEditable(int rowIndex, int colIndex) {
return false; //Disallow the editing of any cell
}
};
where table is the name of your JTable.
For NetBeans users:
1. select the table GUI, right click, select Customize Code
2. Your code should look like this:


