//> using platform jvm
//> using jvm 17
import javax.swing._
import javax.swing.event._
import java.awt._
import java.awt.event._
object HarryPotterPart5App {
def main(args: Array[String]): Unit = {
SwingUtilities.invokeLater(new Runnable {
def run(): Unit = {
// 1. SECURITY VERIFICATION
val correctPassword = "Bixuu02_anime"
val userInput = JOptionPane.showInputDialog(
null,
"? HARRY POTTER SECURITY VERIFICATION (PART 5)\n\nPlease enter Password to access Harry Potter Part 5 Story:",
"Harry Potter Part 5 Access",
JOptionPane.QUESTION_MESSAGE
)
if (userInput == null || userInput != correctPassword) {
JOptionPane.showMessageDialog(
null,
"? Access Denied! Incorrect Password.",
"Error",
JOptionPane.ERROR_MESSAGE
)
sys.exit(0)
}
// 2. STORY DATA (HARRY POTTER PART 5 - EPISODES 1 TO 20 in Hindi & English)
val storyData: Map[String, String] = Map(
"Chapter 1: The Dementors in Little Whinging" ->
"""==================================================
|HARRY POTTER PART 5: THE ORDER OF THE PHOENIX
|Written & Adapted by Bixuu (Hindi & English Mix)
|==================================================
|
|MAIN CHARACTERS:
| - Harry Potter (The Chosen One)
| - Sirius Black & Professor Albus Dumbledore
| - Dolores Umbridge (The Ministry Spy)
| - Ron Weasley & Hermione Granger
|
|CHAPTER 1 STORY & DIALOGUES:
|Garmiyon ki chhuttiyon mein Privet Drive par achanak aasmaan kala pad jata hai aur do Dementors Harry aur Dudley par hamla kar dete hain. Harry apni jaan bachane ke liye apne cousin ke samne majboor hokar 'Expecto Patronum' spell ka istemal karta hai.
|
|Harry: "Dudley, jaldi se bhago! Andar jao!"
|===================================================""".stripMargin,
"Chapter 2: A Peck of Owls & Order HQ" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|CHAPTER 2 STORY_DIALOGUES:
|Magic ministry underage magic use karne ke jurm mein Harry ko Hogwarts se nikalne ka letter bhejti hai. Thodi der baad Order of ke members aate hain aur Harry ko secret headquarters le kar jate hain.
|
|Mrs. Figg: "Dementors wahan achanak kaise aa gaye?!"
|===================================================""".stripMargin,
"Chapter 3: Number 12, Grimmauld Place" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|CHAPTER 3 STORY & DIALOGUES:
|Harry ko London ke ek chhupe hue purane ghar?Number 12, Grimmauld Place?le jaya jata hai, jo Sirius Black ka pushtaini ghar aur Order of the Phoenix ka secret base hota hai. Wahan Ron aur Hermione se uska emotional reunion hota hai.
|
|Sirius: "Welcome to my family home, Harry."
|===================================================""".stripMargin,
"Chapter 4: The Ministry of Magic Hearing" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|CHAPTER 4 STORY & DIALOGUES:
|Ministry of Magic mein Harry ka trial shuru hota hai jahan Minister Cornelius Fudge aur saare judges use school se nikalna chahte hain. Theek waqt par Dumbledore wahan pahunchte hain aur Harry ke paksh mein gawaahi dekar use saza se bacha lete hain.
|
|Dumbledore: "The charges against the accused are... dismissed!"
|===================================================""".stripMargin,
"Chapter 5: Return to Hogwarts & Dolores Umbridge" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|CHAPTER 5 STORY & DIALOGUES:
|Hogwarts lautne par pata chalta hai ki Ministry ne school par control karne ke liye Dolores Umbridge ko naya Defense Against the Dark Arts teacher aur High Inquisitor bana kar bheja hai. Wo students ko practical magic sikhane se mana kar deti hai.
|
|Umbridge (Meethi aawaz mein): "Ahem, ahem! Apni books open karo page number 5."
|===================================================""".stripMargin,
"Chapter 6: The Dark Arts Detention" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|CHAPTER 6 STORY & DIALOGUES:
|Jab Harry class mein kehta hai ki Voldemort wapas aa chuka hai, toh Umbridge use punish karti hai aur ek aisi magic pen deti hai jisse likhte waqt wahi shabd Harry ke haath par khund (carve) hone lagte hain: "I must not tell lies."
|
|Harry (Dard se aanh bharte hue): "Aah..."
|===================================================""".stripMargin,
"Chapter 7: Dumbledore's Army Formation" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|CHAPTER 7 STORY & DIALOGUES:
|Umbridge ki taanashahi se tang akar Hermione aur Ron ek secret club banane ka sujhaav dete hain?'Dumbledore's Army' (DA). Isme Harry baaki students ko khud spells aur defence sikhata hai.
|
|Hermione: "Agar hum khud nahi seekhenge, toh Voldemort se kaise ladenge?"
|===================================================""".stripMargin,
"Chapter 8: Hagrid's Secret Return" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|CHAPTER 8 STORY & DIALOGUES:
|Hagrid school se gayab hone ke baad wapas aate hain aur batate hain ki wo giants ko Order ke sath jodne ke mission par gaye the. Umbridge aur ministry lagataar un par nazar rakh rahi hoti hai.
|
|Hagrid: "Rasta lamba aur mushkil tha, par maine koshish poori ki."
|===================================================""".stripMargin,
"Chapter 9: The Room of Requirement Practice" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|CHAPTER 9 STORY & DIALOGUES:
|DA ke liye ek aisi jagah milti hai jo jarurat padne par apne aap badal jati hai?'Room of Requirement'. Wahan sabhi students milkar powerful Patronus charms aur defensive spells ki practice karte hain.
|
|Harry: "Great job, Neville! Tumne achha Patronus banaya!"
|===================================================""".stripMargin,
"Chapter 10: Arthur Weasley's Attack at Ministry" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|CHAPTER 10 STORY & DIALOGUES:
|Ek raat sapne mein Harry dekhta hai ki Ministry ke Department of Mysteries mein ek bada sa snake (Nagini) Mr. Weasley par hamla kar raha hai. Dumbledore turant action lete hain aur Mr. Weasley ko St. Mungo's hospital bacha liya jata hai.
|
|Harry (Ghabraye hue): "Maine wo sab apni aankhon se dekha!"
|===================================================""".stripMargin,
"Chapter 11: Occlumency Lessons with Snape" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|CHAPTER 11 STORY & DIALOGUES:
|Kyunki Harry ka dimag Voldemort se juda hua lagta hai, isliye Dumbledore Severus Snape ko kehte hain ki wo Harry ko 'Occlumency' (apne dimaag ko band rakhna) sikhayein. Snape bina warning ke Harry ke mind par attack karta hai.
|
|Snape: "Clear your mind, Potter! Legilimens!"
|===================================================""".stripMargin,
"Chapter 12: Professor Trelawney's Sacking" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|CHAPTER 12 STORY & DIALOGUES:
|Umbridge Professor Trelawney ko school se nikalne ki koshish karti hai. Tabhi Dumbledore aakar unhe rok dete hain aur batate hain ki Trelawney castle ke andar hi reh sakti hain. Sath hi, Dumbledore ka dosto ke sath support aur strong hota hai.
|
|Dumbledore: "She is staying, Dolores."
|===================================================""".stripMargin,
"Chapter 13: O.W.L. Exams & Fireworks Chaos" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|CHAPTER 13 STORY & DIALOGUES:
|Exams ke dauran Fred aur George Weasley apni magic fireworks aur swamp se poore school mein dhamaka kar dete hain aur Umbridge ki naak mein dam karke apni broomsticks par baithakar flying karke school chhod kar chale jate hain.
|
|Fred: "Give 'em hell from us, Peeves!"
|===================================================""".stripMargin,
"Chapter 14: Vision of Sirius at the Department of Mysteries" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|CHAPTER 14 STORY & DIALOGUES:
|Ek exam ke beech Harry ko ek aur darawana vision aata hai ki Voldemort ne Sirius Black ko Department of Mysteries mein qaid karke torture kiya hai. Harry apne dosto ke sath wahan jane ka faisla karta hai.
|
|Hermione: "Harry, mujhe lagta hai ye koi trap ho sakta hai!"
|===================================================""".stripMargin,
"Chapter 15: Breaking into the Ministry" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|CHAPTER 15 STORY & DIALOGUES:
|Harry, Ron, Hermione, Ginny, Neville aur Luna Thestral par baithkar Ministry of Magic pahunchte hain. Wo chupke se Department of Mysteries ke andar us prophecy room mein enter hote hain jahan Sirius ko qaid bataya gaya tha.
|
|Harry: "Sirius? Kahan ho tum?" (Par wahan koi nahi hota.)
|===================================================""".stripMargin,
"Chapter 16: The Battle of the Department of Mysteries" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|CHAPTER 16 STORY & DIALOGUES:
|Wo ek jaal hota hai! Lucius Malfoy aur Death Eaters achanak aakar unhe gher lete hain aur Harry se wo glass prophecy maangte hain. Tabhi Order of the Phoenix ke members (Sirius, Lupin, Tonks aur Kingsley) wahan aakar unse bhayanak ladai shuru kar dete hain.
|
|Lucius: "Give me the prophecy, Potter, and no one gets hurt!"
|===================================================""".stripMargin,
"Chapter 17: Sirius Black's Fall" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|CHAPTER 17 STORY & DIALOGUES:
|Ladai ke dauran Bellatrix Lestrange ek killing spell (Avada Kedavra) Sirius par chala deti hai. Sirius veil ke peeche gir jata hai aur hamesha ke liye is duniya se chala jata hai. Harry gusse aur dukh se cheekh padta hai.
|
|Harry (Rote hue): "Sirius! SIRIUS!"
|===================================================""".stripMargin,
"Chapter 18: Dumbledore vs Voldemort Duel" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|CHAPTER 18 STORY & DIALOGUES:
|Voldemort khud wahan aa jata hai aur Harry par hamla karne ki koshish karta hai. Theek waqt par Albus Dumbledore wahan pahunchte hain aur Voldemort ke sath ek maha-muqabla (epic duel) shuru karte hain jismein poori ministry hil jati hai.
|
|Voldemort: "You cannot stop me, Dumbledore!"
|===================================================""".stripMargin,
"Chapter 19: The Prophecy Revealed" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|CHAPTER 19 STORY & DIALOGUES:
|Voldemort jab dekhta hai ki Ministry ke officials aane wale hain, toh wo gayab ho jata hai. Dumbledore baad mein Harry ko batate hain ki wo prophecy kya thi?"Neither can live while the other survives."
|
|Dumbledore: "Harry, ab samay aa gaya hai ki tum sach jano."
|===================================================""".stripMargin,
"Chapter 20: Part 5 Grand Finale & Epilogue" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|CHAPTER 20 STORY & DIALOGUES (PART 5 FINALE):
|Term khatam hone par sabhi wapas train se ghar lautte hain. Moody aur Order ke members Dursley family ko warning dete hain ki Harry ke sath accha bartan rakhein. Harry janta hai ki aage ki ladai bohot badi hai, par wo akela nahi hai.
|
|THE END - HARRY POTTER PART 5 WRITTEN & ADAPTED BY BIXUU.
|==================================================
|
|? ANNOUNCEMENT FROM CREATOR BIXUU:
|"BIXUU SUCCESSFULLY CREATED HARRY POTTER PART 5 (ORDER OF THE PHOENIX)!
|Stay tuned for Part 6!"
|===================================================""".stripMargin
)
// 3. GUI WINDOW CREATION
val frame = new JFrame("Harry Potter Viewer: HARRY POTTER PART 5 - By Bixuu")
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE)
frame.setSize(950, 650)
frame.setLocationRelativeTo(null)
// Header Theme Color (Wizarding Dark Maroon & Gold)
val headerLabel = new JLabel(" ? HARRY POTTER PART 5: THE ORDER OF THE PHOENIX (Adapted by Bixuu) ", SwingConstants.CENTER)
headerLabel.setFont(new Font("Arial", Font.BOLD, 14))
headerLabel.setOpaque(true)
headerLabel.setBackground(new Color(40, 10, 10))
headerLabel.setForeground(Color.WHITE)
headerLabel.setPreferredSize(new Dimension(950, 40))
// Chapter List
val chapterKeys = (1 to 20).map(i => storyData.keys.find(_.startsWith(s"Chapter $i:")).getOrElse(s"Chapter $i")).toArray
val listModel = new DefaultListModel[String]()
chapterKeys.foreach(listModel.addElement)
val chapterList = new JList[String](listModel)
chapterList.setFont(new Font("Arial", Font.PLAIN, 12))
chapterList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION)
chapterList.setSelectedIndex(0)
val listScrollPane = new JScrollPane(chapterList)
listScrollPane.setPreferredSize(new Dimension(320, 500))
// Story Text Area
val storyArea = new JTextArea()
storyArea.setFont(new Font("Monospaced", Font.PLAIN, 13))
storyArea.setEditable(false)
storyArea.setLineWrap(true)
storyArea.setWrapStyleWord(true)
storyArea.setBackground(new Color(20, 20, 20))
storyArea.setForeground(new Color(230, 230, 230))
storyArea.setText(storyData(chapterKeys(0)))
storyArea.setCaretPosition(0)
val textScrollPane = new JScrollPane(storyArea)
// Selection Listener
chapterList.addListSelectionListener(new ListSelectionListener {
def valueChanged(e: ListSelectionEvent): Unit = {
if (!e.getValueIsAdjusting) {
val selectedKey = chapterList.getSelectedValue
if (selectedKey != null && storyData.contains(selectedKey)) {
storyArea.setText(storyData(selectedKey))
storyArea.setCaretPosition(0)
}
}
}
})
// Layout Assembly
val mainPanel = new JPanel(new BorderLayout())
mainPanel.add(headerLabel, BorderLayout.NORTH)
mainPanel.add(listScrollPane, BorderLayout.WEST)
mainPanel.add(textScrollPane, BorderLayout.CENTER)
frame.add(mainPanel)
frame.setVisible(true)
}
})
}
}
HarryPotterPart5App.main(Array())