Results 11 to 20 of 21
-
-
November 24th, 2003 09:14 PM #12
pajerokid,
BS Comp Sci ako nung first year hehe... tapos nag shift ako sa pre-med :D
-
November 24th, 2003 09:51 PM #13
aaah. ;) Another future doctor! At least i know im in good hands when i get all creaky and leaky hehehe
-
-
-
November 25th, 2003 01:34 AM #16
*pajerokid, 1.4 gamit ko.
MenuBarUI lumabas System.out.println(menuOBJ.getUIClassID());
error po dito:
BasicMenuBarUI myObject = newBasicMenuBarUI();
myObject.installDefaults();
JMenuBar menuObj.setUI(myObject);
cannot resolve symbol... BasicMenuBarUI
ano po kelangan ko import?
ano yung l&f object?
f is JFrame
salamat!!!
-
November 25th, 2003 01:38 AM #17
eto po yung object declaration.. haba kasi e, nde allowed, limited yung characters. salamat!! kelangan ko pa po bang sama yung canvas class(paper)??
public class RunQuill implements WindowListener, MouseListener, MouseMotionListener{
private JFrame f;
private JButton clear;
private Paper paper;
private JTextField mouseCoordinate;
//BUTTONS PANEL
private JPanel buttonsPanel;
private JPanel buttonsInnerPanel;
private ButtonGroup buttonGroup1;
private JToggleButton eraserB;
private JToggleButton circleB;
private JToggleButton lineB;
private JToggleButton penB;
private JToggleButton brushB;
private JToggleButton squareB;
//COLORS PANEL
private JPanel colorsPanel;
//MENU BAR
private JMenuBar menuBar;
//FILE MENU
private JMenu fileM;
private JMenuItem newMi;
private JMenuItem openMi;
private JMenuItem saveMi;
private JMenuItem saveAsMi;
private JSeparator fileSeparator1;
private JMenuItem printMi;
private JSeparator fileSeparator2;
private JMenuItem exitMi;
//EDIT MENU
private JMenu editM;
private JMenuItem redoMi;
private JMenuItem undoMi;
private JSeparator editSeparator1;
private JMenuItem cutMi;
private JMenuItem copyMi;
private JMenuItem pasteMi;
//VIEW MENU
private JMenu viewM;
private JCheckBoxMenuItem toolBoxCb;
private JCheckBoxMenuItem colorBoxCb;
private JSeparator viewSeparator1;
private JMenuItem viewBitmapMi;
//COLORS MENU
private JMenu colorsM;
private JMenuItem editColorsMi;
//HELP MENU
private JMenu helpM;
private JMenuItem aboutQuillMi;
private JSeparator helpSeparator1;
private JMenuItem helpTopicsMi;
public RunQuill(){
clear = new JButton("Clear");
f = new JFrame("QUILL");
paper = new Paper();
//BUTTONS
buttonGroup1 = new ButtonGroup();
buttonsPanel = new JPanel();
buttonsInnerPanel = new JPanel();
penB = new JToggleButton();
eraserB = new JToggleButton();
lineB = new JToggleButton();
squareB = new JToggleButton();
circleB = new JToggleButton();
brushB = new JToggleButton();
//PANEL FOR COLORS POSITION OF MOUSE
colorsPanel = new JPanel();
mouseCoordinate = new JTextField(30);
//MENUBAR OBJ
menuBar = new JMenuBar();
//FILE MENU OBJ
fileM = new JMenu("File");
newMi = new JMenuItem();
openMi = new JMenuItem();
saveMi = new JMenuItem();
saveAsMi = new JMenuItem();
fileSeparator1 = new JSeparator();
printMi = new JMenuItem();
fileSeparator2 = new JSeparator();
exitMi = new JMenuItem();
//EDIT MENU OBJ
editM = new JMenu("Edit");
undoMi = new JMenuItem();
redoMi = new JMenuItem();
editSeparator1 = new JSeparator();
cutMi = new JMenuItem();
copyMi = new JMenuItem();
pasteMi = new JMenuItem();
//VIEW MENU OBJ
viewM = new JMenu("View");
toolBoxCb = new JCheckBoxMenuItem();
colorBoxCb = new JCheckBoxMenuItem();
viewSeparator1 = new JSeparator();
viewBitmapMi = new JMenuItem();
//COLORS OBJ
colorsM = new JMenu("Colors");
editColorsMi = new JMenuItem();
//HELP MENU OBJ
helpM = new JMenu("Help");
helpTopicsMi = new JMenuItem();
helpSeparator1 = new JSeparator();
aboutQuillMi = new JMenuItem();
}
-
November 25th, 2003 02:34 AM #18
Grabe, ano yung Paper class? Ngayon ko lang nakita yan ah.
After 2 years with Java.. it still gives me surprises. Sorry flakes, im strictly a v1.3 guy, pero i'll try my best to help you.. anyway, sana hindi kasama yung classes na pinaguusapan natin sa version change.
Class MenuBarUI comes from the package javax.swing.plaf.*
Pare are you familiar with javadocs? looks like hindi tinuturo ng prof mo. This is actually the first stuff i teach my studes.... it makes them think and practice their research skills
click --> http://java.sun.com/j2se/1.4.1/docs/api/
you'll find all v1.4 classes, methods etc there.
email mo na lang kaya complete code sakin? mann2*i-manila.com.ph
i'll work on it in my spare time. Pero i cant give any assurances kung kelan coz im workng two jobs at the moment.
-
November 25th, 2003 12:21 PM #19
salamat po. yung paper class anop lang po yun, gawa lang namin... yun po yung canvas kung san ka magddrawing... don nangyayari lahat ng drawing....
salamat po sa lahat. email ko na lang yung package ng mga classes.
salamat ulit.
-
As expected, in response to Tesla’s entry into the Philippines market, Ford will be bringing in the...
Tesla Philippines